/*
Theme Name: CheeseLab2025
Theme URI: https://cheeselab420.com
Author: CheeseLab Team
Description: Tema WordPress custom basato su Bootstrap 5, ottimizzato per layout responsive e showcase di servizi, portfolio e magazine.
Version: 0.1.0
Text Domain: cheeselab420
*/

:root {
  --cl-primary: #d4ff47;
  --cl-dark: #080a10;
  --cl-muted: #7f8490;
  --cl-card: #0f121a;
  --cl-border: #171c26;
  --cl-highlight: #ffe066;
  --cl-yellow: #ffd200;
  --cl-aqua: #1ce9d4;
  --cl-black: #0a0a0a;
  --cl-shell-max: 960px;
  --cl-shell-pad: 24px;
  --cl-col-max: 420px;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #070910 0%, #0c1019 45%, #05060c 100%);
  color: #e0e5ec;
}

body.home {
  background: linear-gradient(160deg, #080a12 0%, #0f1320 55%, #06070c 100%);
  color: #e0e5ec;
}

body.page-template-page-servizi-pubblicitari > header {
  display: none;
}

.post-type-archive-portfolio > header {
  display: none;
}

.cl-shell {
  max-width: var(--cl-shell-max);
  margin: 0 auto;
  width: 100%;
  padding-left: var(--cl-shell-pad);
  padding-right: var(--cl-shell-pad);
  box-sizing: border-box;
}

a {
  color: var(--cl-primary);
  text-decoration: none;
}

a:hover {
  color: var(--cl-highlight);
  text-decoration: none;
}

.navbar-brand {
  font-weight: 700;
  letter-spacing: 0.04em;
}

.cl-hero {
  background: radial-gradient(circle at 20% 20%, rgba(212, 255, 71, 0.12), transparent 25%),
    radial-gradient(circle at 80% 0%, rgba(255, 224, 102, 0.16), transparent 30%),
    var(--cl-dark);
  border-bottom: 1px solid var(--cl-border);
}

.cl-section {
  padding: 72px 0;
}

.cl-section-title {
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

.cl-section-subtitle {
  color: var(--cl-muted);
  max-width: 640px;
}

.cl-card {
  background: var(--cl-card);
  border: 1px solid var(--cl-border);
  border-radius: 18px;
  padding: 24px;
  height: 100%;
}

.cl-card:hover {
  border-color: var(--cl-primary);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35);
}

.cl-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(212, 255, 71, 0.08);
  color: var(--cl-primary);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.cl-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--cl-border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--cl-muted);
}

.cl-grid {
  display: grid;
  gap: 18px;
}

.cl-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.cl-grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.cl-cta {
  border-radius: 18px;
  background: linear-gradient(135deg, #1a1a26, #0f0f17);
  border: 1px solid var(--cl-border);
  padding: 32px;
}

.cl-cta .btn {
  border-radius: 12px;
  padding: 12px 20px;
}

.cl-highlight {
  color: var(--cl-primary);
}

.cl-footer {
  border-top: none;
  color: #f7f7f7;
}

.cl-footer .cl-shell {
  max-width: 960px;
}

.home .cl-footer {
  margin-top: 0;
}

.cl-footer a {
  color: var(--cl-muted);
}

.cl-footer a:hover {
  color: var(--cl-primary);
}

.cl-footer .text-secondary {
  color: #f7f7f7 !important;
}

.cl-footer p {
  color: #f7f7f7;
  margin-bottom: 0.35rem;
}

.cl-footer-cta-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  margin-bottom: 12px;
}

.cl-footer-cta-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
}

.cl-footer-cta-sub {
  max-width: 560px;
}

.cl-footer-cta-btn {
  white-space: nowrap;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 22px;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.cl-footer-cta-action {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.cl-quote-actions { display: flex; gap: 12px; align-items: center; position: absolute; right: 20px; bottom: 20px; flex-wrap: nowrap; }
.cl-quote-actions .cl-footer-cta-btn,
.cl-quote-actions .cl-confetti-btn { height: 52px; padding: 0 22px; border-radius: 14px; font-size: 1rem; font-weight: 700; letter-spacing: 0.02em; }

.cl-quote-cta {
  flex: 1 1 auto;
}

.cl-quote-frame {
  position: relative;
  border-radius: 0;
  padding: 32px 30px 104px;
  background: none;
  box-shadow: none;
  overflow: hidden;
  min-height: 0;
  width: 100%;
  background-size: cover;
  background-position: center;
}

.cl-quote-slide {
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  position: relative;
  min-height: 0;
}

.cl-quote-slide.is-active {
  opacity: 1;
  display: block;
}

.cl-quote-frame {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.cl-quote-title {
  font-family: "Montserrat", "Inter", sans-serif;
  font-weight: 800;
  font-size: 25px;
  line-height: 1.1;
  color: #ffffff;
  margin: 0 0 14px;
}

.cl-quote-author {
  font-family: "Montserrat", "Inter", sans-serif;
  font-weight: 500;
  font-size: 1.1rem;
  color: #1c1c1c;
  margin: 0;
  max-width: 70%;
}

.cl-quote-mark {
  position: absolute;
  right: 18px;
  bottom: 26px;
  color: #ffffff;
  font-size: 52px;
  line-height: 1;
  opacity: 0.9;
}

@media (min-width: 701px) {
  .cl-quote-title {
    font-size: 35px;
  }
}

.cl-confetti-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 22px;
  border: none;
  background: transparent;
  color: #0f0f0f;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  outline: none;
  overflow: hidden;
  border-radius: 14px;
  isolation: isolate;
  box-shadow: none;
  animation: cl-confetti-pulse 2.6s ease-in-out infinite;
}

.cl-confetti-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--cl-primary);
  border-radius: inherit;
  box-shadow: none;
  transition: width 0.2s cubic-bezier(0.39, 1.86, 0.64, 1) 0.3s;
  z-index: -1;
}

@keyframes cl-confetti-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 210, 0, 0.4), 0 0 0 0 rgba(255, 210, 0, 0.25);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 0 0 10px rgba(255, 210, 0, 0), 0 0 18px 4px rgba(255, 210, 0, 0.35);
  }
}

.cl-footer-cta-action .cl-footer-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 22px;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.cl-confetti-btn .message {
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.cl-confetti-btn .message svg {
  display: none;
}

.cl-confetti-btn .button-text span {
  opacity: 1;
  position: static;
}

.cl-confetti-btn .submitMessage .button-text span {
  top: 8px;
  transition: all 0.2s ease var(--d);
}

.cl-confetti-btn .submitMessage svg {
  color: #0a0a0a;
  margin-left: -1px;
  opacity: 0;
  position: relative;
  top: 30px;
  transition: top 0.4s ease, opacity 0.3s linear;
  width: 14px;
}

.cl-confetti-btn .loadingMessage {
  opacity: 0;
  transition: opacity 0.3s linear 0.3s, top 0.4s cubic-bezier(0.22, 0, 0.41, -0.57);
}

.cl-confetti-btn .loadingMessage svg {
  fill: #0a0a0a;
  margin: 0;
  width: 22px;
}

.cl-confetti-btn .successMessage .button-text span {
  left: 5px;
  transition: all 0.2s ease var(--dr);
}

.cl-confetti-btn .successMessage svg {
  color: #57fb32;
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
  transition: stroke-dashoffset 0.3s ease-in-out;
  width: 14px;
}

.cl-confetti-btn.ready .submitMessage svg {
  opacity: 1;
  top: 1px;
  transition: top 0.4s ease 600ms, opacity 0.3s linear 600ms;
}

.cl-confetti-btn.ready .submitMessage .button-text span {
  top: 0;
  opacity: 1;
  transition: all 0.2s ease calc(var(--dr) + 600ms);
}

.cl-confetti-btn.loading::before {
  transition: width 0.3s ease;
  width: 80%;
}

.cl-confetti-btn.loading .loadingMessage {
  opacity: 1;
}

.cl-confetti-btn.loading .loadingCircle {
  animation: cl-confetti-loading 1s infinite;
  cy: 10;
}

.cl-confetti-btn.complete .submitMessage svg {
  top: -30px;
  transition: none;
}

.cl-confetti-btn.complete .submitMessage .button-text span {
  top: -8px;
  transition: none;
}

.cl-confetti-btn.complete .loadingMessage {
  top: 80px;
}

.cl-confetti-btn.complete .successMessage .button-text span {
  left: 0;
  opacity: 1;
  transition: all 0.2s ease calc(var(--d) + 1000ms);
}

.cl-confetti-btn.complete .successMessage svg {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.3s ease-in-out 1.4s;
}

#cl-confetti-canvas {
  height: 100vh;
  pointer-events: none;
  position: fixed;
  inset: 0;
  width: 100%;
  z-index: 4;
}

@keyframes cl-confetti-loading {
  0% { cy: 10; }
  25% { cy: 3; }
  50% { cy: 10; }
}

@media (max-width: 700px) {
  .cl-footer-cta-block { flex-direction: column; align-items: flex-start; gap: 12px; }
  .cl-quote-cta,
  .cl-quote-frame { width: 100%; }
  .cl-quote-frame { padding: 24px 18px 120px; }
  .cl-quote-actions { position: absolute; right: 16px; bottom: 16px; width: auto; }
  .cl-quote-actions .cl-confetti-btn,
  .cl-quote-actions .cl-footer-cta-btn { flex: 0 0 auto; }
  .cl-quote-mark { bottom: 32px; right: 14px; font-size: 48px; }
}

.cl-footer-bar {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 0;
}

.cl-footer-chip {
  flex: 1 1 200px;
  padding: 8px 10px;
  text-align: center;
  font-weight: 800;
  text-transform: uppercase;
  color: #0a0a0a;
  font-size: 0.9rem;
}

.cl-chip-magenta {
  background: #ff41c4;
}

.cl-chip-yellow {
  background: #ffd200;
}

.cl-chip-green {
  background: #57fb32;
}

.cl-chip-blue {
  background: #35d1fd;
}

.cl-chip-blue {
  background: #1fc3ff;
}

.cl-divider {
  border-color: var(--cl-border);
  opacity: 1;
}

.cl-mast {
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(212, 255, 71, 0.08), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--cl-border);
  padding: 32px;
}

.cl-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cl-muted);
  font-size: 0.9rem;
}

.cl-tag::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--cl-primary);
}

.cl-meta {
  color: var(--cl-muted);
  font-size: 0.9rem;
}

.cl-breadcrumb {
  color: var(--cl-muted);
}

.btn-cl {
  background: var(--cl-primary);
  color: #0f0f0f;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: none;
}

.btn-cl:hover {
  background: #f5ff9d;
  color: #0f0f0f;
}

.btn-outline-cl {
  border: 1px solid var(--cl-primary);
  color: var(--cl-primary);
}

.btn-outline-cl:hover {
  background: var(--cl-primary);
  color: #0f0f0f;
}

.cl-aside {
  background: var(--cl-card);
  border: 1px solid var(--cl-border);
  border-radius: 16px;
  padding: 20px;
}

.cl-form input,
.cl-form textarea {
  background: #111119;
  border: 1px solid var(--cl-border);
  color: #f2f2f5;
  border-radius: 12px;
}

.cl-form input:focus,
.cl-form textarea:focus {
  border-color: var(--cl-primary);
  box-shadow: none;
}

.cl-table th,
.cl-table td {
  border-color: var(--cl-border);
}

@media (max-width: 767px) {
  .cl-section {
    padding: 56px 0;
  }

  .cl-hero {
    padding: 56px 0 32px;
  }

  .navbar-brand {
    font-size: 1.05rem;
  }
}

/* Home hero */
body.home > header {
  display: none;
}

.cl-hero-cover {
  height: 500px;
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 0;
  border: none;
  border-radius: 0;
  background: #111;
}

.cl-hero-cover .container {
  position: relative;
  height: 100%;
  padding: 0;
}

.cl-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.05);
}

.cl-hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.cl-hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cl-hero-bg--fallback {
  background: radial-gradient(circle at 20% 30%, rgba(255, 210, 0, 0.35), transparent 40%),
    radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.15), transparent 35%),
    linear-gradient(135deg, #d63a52 0%, #b11226 50%, #0f0f15 100%);
}

.cl-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.45));
  z-index: 1;
}

.cl-hero-logo {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
}

.cl-hero-logo-img {
  max-height: 20px;
  width: auto;
  display: block;
}

.cl-hero-tagline {
  position: relative;
  z-index: 2;
  color: var(--cl-yellow);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1.5rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  transition: opacity 0.2s ease;
  display: flex;
  align-items: center;
  top: -10px;
}

.cl-hero-top-right {
  display: flex;
  gap: 12px;
  align-items: center;
}

.cl-hero-carousel.fade-out {
  opacity: 0.2;
}

.cl-hero-top {
  max-width: 960px;
  margin: 0 auto;
  padding-left: var(--cl-shell-pad);
  padding-right: var(--cl-shell-pad);
}

.cl-hero-title {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -32%);
  width: 100%;
  max-width: 960px;
  padding: 0 var(--cl-shell-pad);
  text-align: center;
}

.cl-hero-title h1 {
  font-size: 50px;
  font-weight: 800;
  color: var(--cl-aqua);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
  margin: 0;
  overflow: hidden;
  position: relative;
}

.cl-hero-title h1.fade-out {
  opacity: 0.2;
}

.cl-hero-title h1 .cl-marquee-inner {
  display: inline-block;
  white-space: nowrap;
}

.cl-hero-caret {
  display: inline-block;
  width: 3px;
  background: currentColor;
  height: 1.05em;
  margin-left: 6px;
  vertical-align: middle;
  animation: cl-caret 1s step-end infinite;
}

@keyframes cl-caret {
  0%, 100% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}

.cl-hero-title h1 .cl-marquee-segment {
  white-space: nowrap;
}

.cl-hero-title h1.cl-marquee .cl-marquee-inner {
  animation: cl-marquee var(--cl-marquee-duration, 28s) linear infinite;
}

@keyframes cl-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-1 * var(--cl-marquee-offset, 0px)));
  }
}

@media (max-width: 1024px) {
  :root {
    --cl-shell-pad: 20px;
  }

  .cl-hero-cover {
    height: 440px;
  }

  .cl-hero-title h1 {
    font-size: 50px;
  }

  .cl-intro {
    padding: 72px 0 28px;
  }
}

@media (max-width: 820px) {
  :root {
    --cl-shell-pad: 18px;
  }

  .cl-hero-cover {
    height: 400px;
  }

  .cl-hero-logo {
    font-size: 1.8rem;
  }

  .cl-hero-tagline {
    font-size: 1.1rem;
  }

  .cl-intro .lead-left {
    font-size: 2.4rem;
  }
}

@media (max-width: 576px) {
  :root {
    --cl-shell-pad: 14px;
  }

  .cl-hero-cover {
    height: 360px;
  }

  .cl-hero-menu-wrap .cl-shell {
    max-width: 100%;
  }

  .cl-intro {
    padding: 56px 0 24px;
  }

  .cl-intro .lead-box,
  .cl-intro .copy-box {
    max-width: 340px;
  }
}

.cl-hero-menu-wrap {
  position: absolute;
  z-index: 3;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  bottom: 0;
  top: auto;
  background: var(--cl-yellow);
  padding: 4px 0;
}

.cl-hero-menu-wrap .container {
  max-width: var(--cl-shell-max);
  width: 100%;
  padding-left: var(--cl-shell-pad);
  padding-right: var(--cl-shell-pad);
}

.cl-hero-menu-wrap .cl-shell {
  max-width: var(--cl-shell-max);
  padding-left: var(--cl-shell-pad);
  padding-right: var(--cl-shell-pad);
}

.cl-hero-menu {
  width: 100%;
  justify-content: space-evenly;
}

.cl-hero-menu .nav-item {
  flex: 1 1 0;
  text-align: center;
}

.cl-hero-menu .nav-link {
  width: 100%;
}

.cl-hero-menu .nav-link {
  color: var(--cl-black);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 0.92rem;
  padding: 8px 12px;
}

.cl-hero-menu .nav-link:hover,
.cl-hero-menu .nav-link:focus {
  color: #c0001a;
}

.cl-menu-toggle {
  width: 36px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: 6px;
  padding: 6px 10px;
  display: none;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--cl-yellow);
  font-size: 0.82rem;
  cursor: pointer;
}

/* Overlay menu (mobile) */
.cl-overlay-input {
  display: none;
}

#cl-overlay-button {
  position: fixed;
  top: 14px;
  right: 14px;
  padding: 18px 10px;
  z-index: 10001;
  cursor: pointer;
  background: transparent;
}

@media (min-width: 768px) {
  #cl-overlay-button {
    display: none;
  }
}

#cl-overlay-button span {
  height: 4px;
  width: 28px;
  border-radius: 2px;
  background-color: #ffd200;
  position: relative;
  display: block;
  transition: all 0.2s ease-in-out;
}

#cl-overlay-button span::before,
#cl-overlay-button span::after {
  content: "";
  position: absolute;
  left: 0;
  height: 4px;
  width: 28px;
  border-radius: 2px;
  background-color: #ffd200;
  transition: all 0.2s ease-in-out;
}

#cl-overlay-button span::before {
  top: -9px;
}

#cl-overlay-button span::after {
  top: 9px;
}

#cl-overlay-button:hover span,
#cl-overlay-button:hover span::before,
#cl-overlay-button:hover span::after {
  background: #ffe066;
}

.cl-overlay-input:checked + #cl-overlay-button span {
  background: transparent;
}

.cl-overlay-input:checked + #cl-overlay-button span::before {
  transform: rotate(45deg) translate(6px, 6px);
}

.cl-overlay-input:checked + #cl-overlay-button span::after {
  transform: rotate(-45deg) translate(6px, -6px);
}

body.cl-overlay-open {
  overflow: hidden;
}

#cl-overlay {
  height: 100vh;
  width: 100vw;
  background: #000;
  z-index: 9998;
  visibility: hidden;
  opacity: 0;
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.cl-overlay-input:checked ~ #cl-overlay {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

#cl-overlay .cl-overlay-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: center;
}

#cl-overlay .cl-overlay-nav li {
  list-style: none;
}

#cl-overlay .cl-overlay-nav li a,
#cl-overlay .cl-overlay-nav .nav-link {
  display: inline-block;
  color: #ffd200;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 1.4rem;
  padding: 8px 0;
}

#cl-overlay .cl-overlay-nav li a:hover,
#cl-overlay .cl-overlay-nav li a:focus,
#cl-overlay .cl-overlay-nav .nav-link:hover,
#cl-overlay .cl-overlay-nav .nav-link:focus {
  color: #fff;
}

@media (min-width: 768px) {
  #cl-overlay,
  #cl-overlay-button {
    display: none;
  }
}

@media (max-width: 767px) {
  .cl-hero-cover {
    margin-top: 0;
  }

  .cl-hero-cover .container {
    padding: 0;
  }

  .cl-hero-logo {
    font-size: 1.6rem;
  }

  .cl-hero-tagline {
    font-size: 1rem;
  }

  .cl-hero-title {
    transform: translate(-50%, -30%);
  }

  .cl-hero-title h1 {
    font-size: 35px;
  }

  .cl-hero-menu .nav-link {
    padding: 7px 8px;
    font-size: 0.82rem;
  }

  .cl-hero-tagline {
    display: none;
  }

  .cl-hero-menu {
    display: none;
  }

  .cl-menu-toggle {
    display: inline-flex;
  }

  /* Front-page: testi allineati a sinistra su mobile */
  .cl-hero-title {
    text-align: center;
    padding-left: var(--cl-shell-pad);
    padding-right: var(--cl-shell-pad);
  }

  .cl-hero-title h1 {
    text-align: center;
  }

  .cl-intro .lead-left,
  .cl-intro p {
    text-align: left;
  }
  .cl-intro .lead-left {
    font-size: 1.8rem;
    text-align: left;
  }
  .cl-intro .lead-left.mb-0 {
    text-align: left;
    font-size: 1.8rem;
  }

  .cl-service-accordion .bio h2,
  .cl-service-accordion .bio p {
    text-align: left;
  }

  .cl-team-header h2,
  .cl-team-header p,
  .cl-team-bio {
    text-align: left;
    margin-left: 0;
    margin-right: auto;
  }
  .cl-team-cols .cl-team-col:first-child .cl-team-bio {
    text-align: left;
  }
  .cl-team-col .cl-team-bio,
  .cl-team-col .cl-team-bio p {
    text-align: left;
    margin-left: 0;
    margin-right: auto;
  }
}

.cl-mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.96);
  color: #fff;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.cl-mobile-menu.is-open {
  display: flex;
}

.cl-mobile-menu__inner {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

.cl-mobile-menu__close {
  align-self: flex-end;
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
  padding: 10px 14px;
  border-radius: 6px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.cl-mobile-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  text-align: center;
}

.cl-mobile-nav .nav-link {
  display: block;
  width: 100%;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1.2rem;
  padding: 10px 0;
}

.cl-mobile-nav .nav-link:hover,
.cl-mobile-nav .nav-link:focus {
  color: var(--cl-yellow);
}

/* Intro + accordion blocco servizi */
.cl-intro {
  color: #f7f7f7;
  padding: 88px 0 32px;
}

.cl-intro .lead-left {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.25;
  color: #ffd200;
  text-align: right;
}

.cl-intro .lead-box,
.cl-intro .copy-box {
  max-width: 420px;
  width: 100%;
  display: flex;
  align-items: flex-start;
}

.cl-intro p {
  margin: 0;
  text-align: left;
}

.cl-service-reveal {
  padding: 32px 0 12px;
}

.cl-service-reveal-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.cl-service-reveal-line {
  position: relative;
  margin: 0;
  width: 100%;
  font-size: clamp(3.6rem, 10vw, 100px);
  letter-spacing: -0.01em;
  line-height: 1.15;
  text-transform: uppercase;
  font-weight: 800;
  color: rgba(231, 231, 237, 0.18);
  background: linear-gradient(to right, var(--cat-accent, #ffd200), var(--cat-accent, #ffd200)) no-repeat;
  background-size: 0% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  transition: background-size cubic-bezier(0.1, 0.5, 0.5, 1) 0.5s;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cl-service-reveal-line__base {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: rgba(231, 231, 237, 0.18);
}

.cl-service-reveal-line__fill {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  font-weight: 800;
  background-color: var(--cat-accent, #ffd200);
  color: #0d0d0d;
  clip-path: polygon(0 50%, 100% 50%, 100% 50%, 0 50%);
  transform-origin: center;
  transition: clip-path cubic-bezier(0.1, 0.5, 0.5, 1) 0.4s;
}

.cl-service-reveal-line__fill a {
  color: inherit;
  text-decoration: none;
  font-weight: 800;
}

.cl-service-reveal-line:hover .cl-service-reveal-line__fill,
.cl-service-reveal-line:focus-within .cl-service-reveal-line__fill {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

@media (max-width: 768px) {
  .cl-service-reveal {
    padding: 24px 0 8px;
  }

  .cl-service-reveal-line {
    font-size: clamp(2.6rem, 12vw, 100px);
  }
}

.cl-service-accordion {
  margin-top: 56px;
  position: relative;
  overflow: hidden;
}

.cl-service-accordion::before {
  display: none;
}

.cl-service-accordion .cl-shell {
  position: relative;
  z-index: 2;
  max-width: var(--cl-shell-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--cl-shell-pad);
  padding-right: var(--cl-shell-pad);
}

.cl-service-accordion .cl-service-panels-list {
  display: flex;
  height: 500px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  list-style-type: none;
  width: 100%;
  min-width: 100%;
  flex-direction: column;
}

@media only screen and (min-width: 768px) {
  .cl-service-accordion .cl-service-panels-list {
    flex-direction: row;
  }
}

@media (max-width: 767px) {
  .cl-service-accordion .cl-service-panels-list li.active .section-content .inner {
    min-height: 400px;
  }
}

.cl-service-accordion .cl-service-panels-list li {
  --accent: var(--cl-primary);
  flex: 1;
  display: flex;
  align-items: stretch;
  cursor: pointer;
  transition: all 0.35s ease;
  position: relative;
  background-color: var(--panel-color, var(--accent));
  background-image: none;
  overflow: hidden;
  color: #0a0a0a;
}

.cl-service-accordion .cl-service-panels-list li::before {
  content: "";
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: none;
  transition: background 0.35s ease;
}

.cl-service-accordion .cl-service-panels-list li.active {
  flex: 6;
  cursor: default;
  background-image: var(--panel-bg, linear-gradient(135deg, #111 0%, #050505 100%));
  background-size: cover;
  background-repeat: no-repeat;
  background-position: top center;
  color: #f2f2f7;
}

.cl-service-accordion .cl-service-panels-list li.active::before {
  background: linear-gradient(180deg, rgba(15, 15, 15, 0) 0%, #111111 100%);
}

.cl-service-accordion .cl-color-1 {
  --panel-color: #57fb32;
}

.cl-service-accordion .cl-color-2 {
  --panel-color: #fddb35;
}

.cl-service-accordion .cl-color-3 {
  --panel-color: #35d1fd;
}

.cl-service-accordion .cl-color-4 {
  --panel-color: #fd35d8;
}

.cl-service-accordion .cl-color-5 {
  --panel-color: #ffffff;
}

.cl-service-accordion .cl-color-5 {
  color: #0a0a0a;
}

.cl-service-accordion .cl-color-5.active {
  color: #0a0a0a;
}

.cl-service-accordion .cl-color-5 .cl-panel-link,
.cl-service-accordion .cl-color-5 .cl-panel-link:hover,
.cl-service-accordion .cl-color-5 .cl-panel-link:focus {
  color: #0a0a0a;
}

.cl-service-accordion .cl-service-panels-list h3 {
  font-weight: 800;
  white-space: nowrap;
  position: absolute;
  z-index: 30;
  opacity: 1;
  top: 50%;
  left: 50%;
  transition: top 0.35s, opacity 0.15s;
  transform-origin: 0 0;
  font-size: 24px;
  text-transform: uppercase;
  transform: translate(-50%, -50%) rotate(0deg);
}

@media only screen and (min-width: 768px) {
  .cl-service-accordion .cl-service-panels-list h3 {
    top: 100%;
    left: 50%;
    font-size: 32px;
    transform: translate(-20px, -50%) rotate(-90deg);
  }
}

.cl-service-accordion .cl-service-panels-list li.active h3 {
  opacity: 0;
  top: 200%;
}

@media (max-width: 767px) {
  .cl-service-accordion .cl-service-panels-list h3 {
    display: none;
  }
}

.cl-service-accordion .section-content {
  position: relative;
  z-index: 30;
  opacity: 0;
  align-self: flex-end;
  width: 100%;
  transition: all 0.35s 0.1s ease-out;
}

.cl-service-accordion .cl-service-panels-list li.active .section-content {
  opacity: 1;
}

.cl-service-accordion .section-content .inner {
  position: absolute;
  display: grid;
  grid-auto-flow: row;
  grid-template-columns: 1fr;
  grid-column-gap: 20px;
  align-items: flex-end;
  left: 0;
  bottom: 0;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.25s ease-out;
}

@media only screen and (min-width: 768px) {
  .cl-service-accordion .section-content .inner {
    grid-auto-flow: column;
    grid-template-columns: calc(100% - 340px) 300px;
    grid-column-gap: 40px;
    padding: 40px;
  }
}

@media only screen and (min-width: 1280px) {
  .cl-service-accordion .section-content .inner {
    grid-auto-flow: column;
    grid-template-columns: 460px 200px;
    grid-column-gap: 48px;
    padding: 40px;
  }
}

.cl-service-accordion .cl-service-panels-list li.active .section-content .inner {
  opacity: 1;
}

@media (max-width: 767px) {
  .cl-service-accordion .section-content {
    opacity: 1;
    align-self: stretch;
  }

  .cl-service-accordion .section-content .inner {
    position: static;
    opacity: 1;
    padding: 24px;
    align-items: flex-start;
    min-height: 0;
  }
}

.cl-acc-emoji {
  display: none;
  margin-left: auto;
  font-size: 1.4rem;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.2s ease;
}

@media (max-width: 450px) {
  .cl-service-accordion .cl-service-panels-list li.active .cl-acc-emoji {
    display: inline-flex;
    opacity: 1;
  }

  .cl-service-accordion .cl-service-panels-list li:not(.active) .cl-acc-emoji {
    display: none;
    opacity: 0;
  }

  .cl-service-accordion .cl-service-panels-list li .cl-panel-link {
    display: none !important;
  }
}

.cl-service-cards {
  padding: 64px 0 80px;
}

.cl-service-cards .cards-list {
  z-index: 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 600px) {
  .cl-service-cards .cards-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 600px) and (max-width: 991.98px) {
  .cl-service-cards .cards-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .cl-service-cards .cards-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.cl-service-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cl-service-card__link {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
}

.cl-service-card__media {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  box-shadow: 3px 3px 18px 4px rgba(0, 0, 0, 0.25), -3px -3px 18px 4px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
  position: relative;
  background: #0e0e0e;
}

.cl-service-card__image {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  z-index: 1;
}

.cl-service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.cl-service-card--video .cl-service-card__image {
  display: none;
}

.cl-service-card__video {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 20px;
  z-index: 1;
}

.cl-service-card__video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cl-service-card__title {
  padding: 4px 0 0;
  text-align: center;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  position: static;
  background: none;
}

.cl-service-card__title p {
  margin: 0;
  line-height: 1.2;
}

.cl-service-card:hover .cl-service-card__media {
  transform: scale(0.97);
  box-shadow: 4px 4px 20px 10px rgba(0, 0, 0, 0.25), -4px -4px 20px 10px rgba(0, 0, 0, 0.18);
}

.cl-service-accordion .bio {
  display: grid;
  grid-auto-flow: row;
  grid-template-rows: min-content;
  grid-gap: 24px;
  max-width: 100%;
  width: 100%;
  position: relative;
  z-index: 5;
}

.cl-service-accordion .bio h2 {
  font-size: 36px;
  line-height: 36px;
  font-weight: 800;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
  width: 100%;
}

@media only screen and (min-width: 768px) and (max-width: 991.98px) {
  .cl-service-accordion .bio {
    max-width: 360px;
    width: 360px;
  }

  .cl-service-accordion .bio h2 {
    font-size: 48px;
    line-height: 48px;
  }
}

@media only screen and (min-width: 992px) {
  .cl-service-accordion .bio {
    max-width: 450px;
    width: 450px;
  }
}

@media only screen and (min-width: 1280px) {
  .cl-service-accordion .bio h2 {
    font-size: 64px;
    line-height: 64px;
  }
}

.cl-service-accordion .bio p {
  margin: 0;
  color: #f2f2f7;
  line-height: 1.55;
}

.cl-panel-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--accent, #ffd200);
  text-transform: uppercase;
  pointer-events: none;
}

.cl-panel-link:hover {
  color: #ffffff;
}

.cl-service-accordion .cl-service-panels-list li.active .cl-panel-link {
  pointer-events: auto;
}

.cl-color-1 {
  --accent: #57fb32;
}

.cl-color-2 {
  --accent: #fddb35;
}

.cl-color-3 {
  --accent: #35d1fd;
}

.cl-color-4 {
  --accent: #fd35d8;
}

.cl-color-5 {
  --accent: #ffffff;
}

/* Under construction */
.cl-under {
  background: #050505;
  color: #f7f7f7;
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.cl-under-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(212, 255, 71, 0.08), rgba(0, 0, 0, 0.6));
  padding: 32px 28px;
  max-width: 760px;
}

.cl-under h1 {
  font-weight: 800;
  margin: 16px 0 12px;
  color: #ffd200;
}

.cl-under-text {
  color: #e5e5e5;
  margin-bottom: 20px;
  max-width: 620px;
}

.cl-under-meta {
  margin-top: 24px;
  color: #cfcfcf;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cl-under-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.cl-under-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05);
}

.cl-under-video-fallback {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.05);
}

.cl-under::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.8));
  z-index: 1;
}

.cl-under .cl-shell {
  position: relative;
  z-index: 2;
}

@media (max-width: 576px) {
  .cl-under {
    padding: 0;
  }

  .cl-under-card {
    padding: 28px 22px;
  }
}

.cl-under-footer {
  min-height: 30vh;
}

/* Team */
.cl-team {
  color: #f7f7f7;
  padding: 96px 0 60px;
}

.cl-team-header {
  margin-bottom: 24px;
}

.cl-team-header h2 {
  color: #ffd200;
  font-weight: 800;
  margin-bottom: 12px;
}

.cl-team-header p {
  margin: 0;
  color: #e5e5e5;
}

.cl-team-header--mobile {
  display: none;
}

.cl-team-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  align-items: start;
  justify-content: center;
  max-width: 1040px;
  margin: 0 auto;
}

.cl-team-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 420px;
  width: 100%;
}

.cl-team-photo {
  position: relative;
  overflow: hidden;
  background: #0b0b0f;
  min-height: 420px;
  max-height: 580px;
  max-width: 420px;
  margin: 0 auto;
}

/* Servizi masonry */
.cl-services-masonry {
  padding: 72px 0 96px;
}

.cl-masonry {
  column-count: 3;
  column-gap: 16px;
}

.cl-masonry-item {
  width: 100%;
  position: relative;
  padding: 20px;
  box-sizing: border-box;
  border: 2px solid #fff;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: rgba(255, 255, 255, 0.02);
  break-inside: avoid;
  margin: 0 0 16px;
}

.cl-masonry-tag {
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.cl-masonry-title {
  margin: 12px 0 8px;
  font-weight: 800;
  color: #fff;
}

.cl-masonry-text {
  margin: 0 0 12px;
  color: #e5e5e5;
}

.cl-masonry-small .cl-masonry-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cl-masonry-large .cl-masonry-text {
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cl-masonry-arrow {
  margin-top: auto;
  align-self: flex-end;
  color: inherit;
  font-weight: 800;
}

.cl-masonry-item::before {
  counter-increment: items;
}

.m-web {
  border-color: #57fb32;
  background: rgba(87, 251, 50, 0.08);
}
.m-web .cl-masonry-tag,
.m-web .cl-masonry-arrow {
  color: #57fb32;
}

.m-contenuti {
  border-color: #fddb35;
  background: rgba(253, 219, 53, 0.1);
}
.m-contenuti .cl-masonry-tag,
.m-contenuti .cl-masonry-arrow {
  color: #fddb35;
}

.m-marketing {
  border-color: #35d1fd;
  background: rgba(53, 209, 253, 0.08);
}
.m-marketing .cl-masonry-tag,
.m-marketing .cl-masonry-arrow {
  color: #35d1fd;
}

.m-design {
  border-color: #fd35d8;
  background: rgba(253, 53, 216, 0.08);
}
.m-design .cl-masonry-tag,
.m-design .cl-masonry-arrow {
  color: #fd35d8;
}

.m-col-default {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.02);
}

@media (max-width: 1200px) {
  .cl-masonry {
    column-count: 2;
    column-gap: 14px;
  }
}

@media (max-width: 768px) {
  .cl-masonry {
    column-count: 1;
    column-gap: 12px;
  }

  .cl-masonry-item {
    margin-bottom: 12px;
  }
}

/* Portfolio */
.cl-portfolio-list {
  background: #000;
}

.cl-portfolio-item {
  padding: 80px 0;
}

.cl-portfolio-title {
  font-weight: 800;
  margin-bottom: 12px;
}

.cl-portfolio-text {
  color: #e2e2e2;
}

@media (max-width: 768px) {
  .cl-portfolio-item {
    padding: 56px 0;
  }
}

/* Portfolio - layout multi-immagine stile slider */
.cl-portfolio-modern {
  background: #000;
}

.cl-portfolio-modern * {
  box-sizing: border-box;
}

.cl-portfolio-modern .layout-box {
  background-color: var(--cl-slide-bg, #79e3f6);
  padding: 40px 0 0;
}

.cl-portfolio-modern img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
}

.cl-portfolio-modern video {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
}

.cl-portfolio-modern .embed-wrap {
  width: 100%;
  height: 100%;
}

.cl-portfolio-modern .embed-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.cl-portfolio-modern .cl-portfolio-container {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(2, min-content);
  gap: 1.2rem;
  grid-auto-flow: row;
  grid-template-areas: "numerology" "text";
  padding-bottom: 10px;
  width: 100%;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .cl-portfolio-modern .cl-portfolio-container {
    grid-template-columns: repeat(14, minmax(0, 1fr));
    padding-top: 2.25rem;
  }
}

@media (min-width: 1320px) {
  .cl-portfolio-modern .cl-portfolio-container {
    max-width: 1320px;
  }
}

@media (min-width: 1920px) {
  .cl-portfolio-modern .cl-portfolio-container {
    max-width: 1920px;
  }
}

.cl-portfolio-modern .images {
  grid-area: numerology;
}

.cl-portfolio-modern .numbering {
  grid-area: numerology;
}

.cl-portfolio-modern .text {
  grid-area: text;
}

.cl-portfolio-modern .single-image {
  display: none;
}

@media (min-width: 1024px) {
  .cl-portfolio-modern .cl-portfolio-container {
    grid-template-columns: repeat(14, minmax(0, 1fr));
  }

  .cl-portfolio-modern .images {
    grid-area: images;
  }

  .cl-portfolio-modern .numbering {
    grid-area: numbering;
  }

  .cl-portfolio-modern .version-a {
    grid-template-areas: "images images images images images . numbering numbering numbering single-image single-image single-image single-image single-image" "images images images images images . text text text single-image single-image single-image single-image single-image";
  }

  .cl-portfolio-modern .version-a .single-image {
    grid-area: single-image;
    display: block;
  }

  .cl-portfolio-modern .version-b {
    grid-template-areas: ". numbering numbering numbering . . images images images images images images images images" ". text text text text . images images images images images images images images";
  }

  /* Layout A: bilancia padding testo */
  .cl-portfolio-modern .version-a .text {
    padding-left: 0;
    padding-right: 0;
    margin-left: -2rem;
    margin-right: -2rem;
  }
}

@media (min-width: 1700px) {
  .cl-portfolio-modern .version-a {
    grid-template-areas: "images images images images images images . numbering numbering numbering single-image single-image single-image single-image single-image" "images images images images images images . text text text single-image single-image single-image single-image";
  }

  .cl-portfolio-modern .version-a .text {
    padding-left: 0;
    padding-right: 0;
    margin-left: -2.5rem;
    margin-right: -2.5rem;
  }

  .cl-portfolio-modern .version-b {
    grid-template-areas: ". numbering numbering numbering . . images images images images images images images images" ". text text text text . images images images images images images images images";
  }
}

.cl-portfolio-modern .grid {
  display: grid;
}

.cl-portfolio-modern .image-grid-3-m4 {
  grid-template-rows: repeat(7, 1fr);
  grid-template-columns: repeat(14, 1fr);
  gap: 0.5rem;
  grid-auto-rows: minmax(140px, 1fr);
}

.cl-portfolio-modern .image-grid-3-m4 .image-0 {
  grid-column: 1 / span 6;
  grid-row: 1 / span 4;
}

.cl-portfolio-modern .image-grid-3-m4 .image-1 {
  grid-column: 7 / span 6;
  grid-row: 2 / span 2;
  aspect-ratio: 1/1;
}

.cl-portfolio-modern .image-grid-3-m4 .image-2 {
  grid-column: 1 / span 6;
  grid-row: 5 / span 2;
  padding-left: 1rem;
}

.cl-portfolio-modern .image-grid-3-m4 .image-3 {
  grid-column: 7 / span 8;
  grid-row: 4 / span 4;
}

@media (min-width: 1024px) {
  .cl-portfolio-modern .image-grid-3-m4 {
    grid-template-rows: repeat(11, 63px);
    grid-template-columns: repeat(8, minmax(0, 1fr));
    row-gap: 1rem;
  }

  .cl-portfolio-modern .image-grid-3-m4 .image-0 {
    grid-column: 1 / span 4;
    grid-row: 1 / span 8;
  }

  .cl-portfolio-modern .image-grid-3-m4 .image-1 {
    grid-column: 5 / span 4;
    grid-row: 1 / span 5;
    padding-right: 45px;
  }

  .cl-portfolio-modern .image-grid-3-m4 .image-2 {
    grid-column: 5 / span 4;
    grid-row: 6 / span 5;
    padding-left: 0;
  }

  .cl-portfolio-modern .image-grid-3-m4 .image-3 {
    display: none;
  }
}

.cl-portfolio-modern .image-grid-4 {
  grid-template-rows: repeat(12, 1fr);
  grid-template-columns: repeat(12, 1fr);
  gap: 0.5rem;
  grid-auto-rows: minmax(140px, 1fr);
}

.cl-portfolio-modern .image-grid-4 .image-0 {
  grid-column: 1 / span 7;
  grid-row: 1 / span 6;
}

.cl-portfolio-modern .image-grid-4 .image-1 {
  grid-column: 7 / span 5;
  grid-row: 3 / span 5;
  padding-right: 10px;
}

.cl-portfolio-modern .image-grid-4 .image-2 {
  grid-column: 1 / span 6;
  grid-row: 7 / span 5;
  padding-left: 2rem;
}

.cl-portfolio-modern .image-grid-4 .image-3 {
  grid-column: 7 / span 5;
  grid-row: 8 / span 5;
}

@media (min-width: 1024px) {
  .cl-portfolio-modern .image-grid-4 {
    grid-template-rows: repeat(11, 73px);
    grid-template-columns: repeat(8, minmax(0, 1fr));
    row-gap: 1rem;
    column-gap: 1rem;
  }

  .cl-portfolio-modern .image-grid-4 .image-0 {
    grid-column: 1 / span 6;
    grid-row: 1 / span 5;
    margin-left: -45px;
    padding-right: 45px;
  }

  .cl-portfolio-modern .image-grid-4 .image-1 {
    grid-column: 6 / span 3;
    grid-row: 3 / span 4;
    padding-right: 0;
  }

  .cl-portfolio-modern .image-grid-4 .image-2 {
    grid-column: 1 / span 5;
    grid-row: 6 / span 4;
    padding-left: 45px;
  }

  .cl-portfolio-modern .image-grid-4 .image-3 {
    grid-column: 6 / span 3;
    grid-row: 7 / span 4;
    padding-right: 45px;
  }
}

.cl-portfolio-modern .numbering {
  justify-self: center;
  align-self: center;
}

.cl-portfolio-modern .numbering-box {
  width: 90px;
  height: 90px;
  background: #fff;
  display: flex;
  flex-direction: row;
  align-items: center;
  font-family: "Times New Roman", serif;
}

.cl-portfolio-modern .numbering-no-wrapper {
  display: flex;
  flex-direction: column;
  color: var(--cl-slide-bg, #79e3f6);
  padding-bottom: 25px;
  align-self: stretch;
  justify-content: flex-end;
}

.cl-portfolio-modern .numbering-no-text {
  transform: rotate(-90deg);
  font-size: 1.65rem;
  font-family: "Times New Roman", serif;
}

.cl-portfolio-modern .numbering-text-text {
  color: #000;
  font-weight: 700;
  line-height: 0.8;
  font-size: 30px;
  font-family: "Times New Roman", serif;
}

@media (min-width: 1024px) {
  .cl-portfolio-modern .numbering {
    align-self: end;
    justify-self: auto;
  }
}

@media (min-width: 1024px) {
  .cl-portfolio-modern .single-image {
    grid-area: single-image;
    aspect-ratio: 1/1;
    padding-left: 2rem;
    align-self: center;
  }

  .cl-portfolio-modern .image-5 {
    max-width: none;
    aspect-ratio: 1/1;
    width: 100%;
  }
}

.cl-portfolio-modern .text {
  align-self: start;
  padding-right: 1rem;
  margin-left: 2.25rem;
  margin-right: 2.25rem;
  color: #0f0f0f;
}

.cl-portfolio-modern .text h2 {
  font-size: 30px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1rem;
  margin-top: 2rem;
}

.cl-portfolio-modern .version-a .text {
  padding-right: 0;
}

@media (min-width: 1024px) {
  .cl-portfolio-modern .text {
    margin-left: 0;
    margin-right: 0;
  }

  .cl-portfolio-modern .text h2 {
    margin-bottom: 1.25rem;
    padding-top: 0.5rem;
  }
}

@media (min-width: 1320px) {
  .cl-portfolio-modern .text h2 {
    font-size: 30px;
  }
}

.cl-portfolio-modern .cl-portfolio-body {
  font-size: 18px;
  line-height: 1.35;
  margin-bottom: 12px;
}

.cl-portfolio-modern .cl-portfolio-tags {
  font-size: 14px;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 0;
}

.cl-team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cl-team-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 10%, rgba(0, 0, 0, 0.75) 100%);
}

.cl-team-meta {
  position: absolute;
  bottom: 18px;
  left: 18px;
  right: 18px;
}

.cl-team-name {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.05;
  margin: 0;
  text-transform: uppercase;
}

.cl-team-role {
  font-weight: 700;
  margin: 6px 0 0;
}

.cl-team-photo.cl-team-1 .cl-team-name,
.cl-team-photo.cl-team-1 .cl-team-role {
  color: #5df174;
}

.cl-team-photo.cl-team-2 .cl-team-name,
.cl-team-photo.cl-team-2 .cl-team-role {
  color: #ff41c4;
}

.cl-team-photo.cl-team-3 .cl-team-name,
.cl-team-photo.cl-team-3 .cl-team-role {
  color: #1fc3ff;
}

.cl-team-photo.cl-team-4 .cl-team-name,
.cl-team-photo.cl-team-4 .cl-team-role {
  color: #ffd200;
}

.cl-team-bio {
  margin-top: 20px;
  color: #dcdcdc;
  text-align: center;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.cl-team-cols .cl-team-col:first-child .cl-team-bio {
  text-align: right;
  margin-left: auto;
  margin-right: 0;
}

.cl-team-cols .cl-team-col:nth-child(2) .cl-team-bio {
  text-align: left;
  margin-left: 0;
  margin-right: auto;
}

@media (max-width: 768px) {
  .cl-team-bio {
    text-align: left;
    margin-left: 0;
    margin-right: auto;
  }

  .cl-team-cols .cl-team-col:first-child .cl-team-bio {
    text-align: left;
    margin-left: 0;
    margin-right: auto;
  }

  .cl-team-cols .cl-team-col:nth-child(2) .cl-team-bio {
    text-align: left;
    margin-left: 0;
    margin-right: auto;
  }
}

@media (max-width: 820px) {
  .cl-team {
    padding: 72px 0;
  }

  .cl-team-cols {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .cl-team-col {
    margin: 0 auto;
  }
}

@media (max-width: 576px) {
  .cl-team {
    padding: 56px 0;
  }

  .cl-team-feature {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .cl-team-header--mobile {
    display: block;
    margin-bottom: 24px;
  }

  .cl-team-cols .cl-team-header {
    display: none;
  }
}

/* Servizi pubb: allinea blocco intro come home */

@media (max-width: 767px) {
  .cl-shell {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 767px) {
  .cl-acc-toggle {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .cl-acc-number {
    text-align: left;
  }

  .cl-acc-panel-inner {
    grid-template-columns: 1fr;
    padding: 0 var(--cl-shell-pad) 16px;
  }

  .cl-acc-panel-inner p,
  .cl-acc-panel-inner .cl-acc-link {
    grid-column: 1;
  }
}

/* Magazine */
.cl-magazine {
  padding: 80px 0;
}

.cl-mag-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 0 auto 28px;
}

.cl-mag-filter-btn {
  background: transparent;
  border: 1px solid #d0bb57;
  color: #d0bb57;
  padding: 8px 14px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cl-mag-filter-btn:hover,
.cl-mag-filter-btn:focus {
  background: #d0bb57;
  color: #0b1216;
}

.cl-mag-filter-btn.active {
  background: #d0bb57;
  color: #0b1216;
  box-shadow: 0 0 0 2px rgba(208, 187, 87, 0.25);
}

.cl-mag-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-auto-rows: 180px;
  gap: 20px;
  grid-auto-flow: dense;
}

.cl-mag-card {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  color: #dce3e7;
  background: #1a2328;
  min-height: 360px;
  grid-row: span 2;
}

.cl-mag-card__media {
  position: relative;
  min-height: 100%;
  background-image: var(--cl-mag-bg);
  background-size: cover;
  background-position: center;
}

.cl-mag-card--wide {
  grid-column: span 2;
  min-height: 360px;
}

.cl-mag-card--cta.cl-mag-card--wide {
  grid-column: span 2;
}

.cl-mag-card--cta {
  background: linear-gradient(135deg, #1f2937 0%, #0b1216 100%);
  border-radius: 0;
}

.cl-mag-card.is-hidden {
  display: none !important;
}

.cl-mag-card--cta .cl-mag-card__color {
  background: rgba(0, 0, 0, 0.5);
}

.cl-mag-card__cta-btn {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 0;
  border: 1px solid #d0bb57;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cl-mag-card__cta-btn:hover {
  background: #d0bb57;
  color: #0b1216;
  border-color: #d0bb57;
}

/* Articles */
.cl-article-hero {
  margin: 60px auto 0;
  color: #fff;
  max-width: 900px;
  padding-left: var(--cl-shell-pad);
  padding-right: var(--cl-shell-pad);
  position: relative;
  z-index: 3;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.55);
  text-align: center;
}

.cl-article-title {
  font-size: clamp(2.4rem, 3vw, 3.6rem);
  font-weight: 800;
  line-height: 1.05;
  margin: 12px 0 0;
}

.cl-article-cat-center {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 14px auto 0;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.4);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 13px;
  color: #fff;
  text-decoration: none;
}

.cl-article-cat-center:hover,
.cl-article-cat-center:focus {
  text-decoration: none;
  color: #fff;
}

.cl-article {
  padding: 72px 0 88px;
}

.cl-article-body {
  color: #dce3e7;
  max-width: 920px;
  margin: 0 auto;
}

.cl-article-body h2,
.cl-article-body h3,
.cl-article-body h4 {
  color: #fff;
  margin-top: 28px;
}

.cl-article-body p {
  margin-bottom: 16px;
  line-height: 1.6;
}

.cl-article-body a {
  color: #d0bb57;
  text-decoration: underline;
}

.cl-article-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 24px auto;
  border-radius: 12px;
}

/* Contacts */
.cl-contact {
  background: transparent;
  color: #dce3e7;
  padding: 88px 0;
}

.cl-contact-grid {
  row-gap: 32px;
}

.cl-contact-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 32px;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.cl-contact-box h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 14px;
}

.cl-contact-box p {
  line-height: 1.6;
  margin-bottom: 18px;
}

.cl-contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}

.cl-contact-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
}

.cl-contact-list li::before {
  content: "\2022";
  position: absolute;
  left: 0;
  color: #d0bb57;
}

.cl-contact-panel {
  display: grid;
  gap: 16px;
}

.cl-contact-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 24px;
  border-radius: 12px;
}

.cl-contact-item h3 {
  font-weight: 800;
  margin-bottom: 6px;
}

.cl-contact-item a {
  color: #d0bb57;
  text-decoration: none;
}

.cl-contact-item p {
  margin: 0;
}

.cl-coffee-module {
  display: flex;
  justify-content: center;
}

.cl-coffee-module [v-cloak] {
  display: none;
}

.cl-coffee-module .card {
  position: relative;
  overflow: hidden;
  width: 95%;
  max-width: 300px;
  height: 90%;
  max-height: 550px;
  background: linear-gradient(140deg, #fff 30%, #eee);
  border-radius: 5px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  padding: 16px 18px 88px;
  color: #4c292d;
  font-family: "Roboto", "Inter", sans-serif;
}

.cl-coffee-module .card__title {
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cl-coffee-module .title {
  position: absolute;
  transition: opacity 0.3s ease, transform 0.3s ease;
  will-change: transform;
  font-weight: 700;
}

.cl-coffee-module .title--coffee {
  opacity: 0;
  transform: translate3d(-30px, 0, 0);
}

.cl-coffee-module .title--coffee.active {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.cl-coffee-module .title--foam {
  opacity: 0;
  transform: translate3d(50px, 0, 0);
}

.cl-coffee-module .title--foam.active {
  opacity: 1;
  transform: translate3d(20px, 0, 0);
}

.cl-coffee-module .card__slider {
  position: absolute !important;
  height: 60%;
  bottom: 5%;
  top: 15%;
  left: 15%;
  right: 0;
}

.cl-coffee-module .card__content {
  margin-left: 25%;
  text-align: center;
  opacity: 0;
}

.cl-coffee-module .card__content.active {
  opacity: 1;
}

.cl-coffee-module .percentage-sign {
  font-size: 30px;
  font-weight: 300;
}

.cl-coffee-module .slider-label {
  font-size: 70px;
  font-weight: 100;
  width: 100%;
  text-indent: -15px;
  text-transform: uppercase;
}

.cl-coffee-module .slider-label.hide {
  display: none;
}

.cl-coffee-module .coffee-size {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.cl-coffee-module .coffee-size__icon {
  margin-top: 60px;
  width: 130px;
  transform-origin: bottom center;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cl-coffee-module .coffee-size__icon.s {
  transform: scale(0.7, 0.7);
}

.cl-coffee-module .coffee-size__icon.m {
  transform: scale(0.7, 0.8);
}

.cl-coffee-module .coffee-size__icon.l {
  transform: scale(0.7, 0.9);
}

.cl-coffee-module .coffee-size__icon.xl {
  transform: scale(0.9, 1.1);
}

.cl-coffee-module .coffee-size__icon.xxl {
  transform: scale(1, 1.5);
}

.cl-coffee-module .coffee__cup {
  fill: none;
  stroke: #231f20;
  stroke-width: 3px;
}

.cl-coffee-module .coffee__fill {
  fill: #86381c;
  transform-origin: 100% 100%;
}

.cl-coffee-module .coffee__top {
  fill: #fff;
  stroke: #272727;
  stroke-width: 3px;
}

.cl-coffee-module .coffee__foam {
  fill: #fff;
}

.cl-coffee-module .card__button {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px 0;
  background: #f8e43c;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  text-align: center;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.cl-coffee-module .card__button:hover {
  background: #e7d534;
}

.cl-coffee-module .card__button span {
  display: inline-block;
  transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
  color: #4c292d;
}

.cl-coffee-module .card__button span:last-child {
  margin-left: 1rem;
  color: rgba(76, 41, 45, 0.5);
}

.cl-coffee-module .hide {
  opacity: 0;
}

.cl-coffee-module .noUi-target {
  border: none;
  background: #000;
  border-radius: 20px;
  box-shadow: none;
}

.cl-coffee-module .noUi-vertical {
  width: 11px;
}

.cl-coffee-module .noUi-vertical .noUi-handle {
  left: -13px;
  width: 37px;
  height: 37px;
  border: none;
  box-shadow: none;
  border-radius: 50%;
  background: #f8e43c;
  transition: transform 0.15s;
  cursor: pointer;
}

.cl-coffee-module .noUi-vertical .noUi-handle.noUi-active {
  transform: scale(1.2);
}

.cl-coffee-module .noUi-connect {
  background: #f8e43c;
  left: -5px;
  right: -5px;
  box-shadow: none;
  border-radius: 20px;
}

.cl-coffee-module .noUi-origin {
  border-radius: 20px;
}

.cl-coffee-copy {
  padding-left: 6px;
  padding-right: 6px;
}

.cl-coffee-copy__title {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 10px;
}

.cl-coffee-copy__text {
  line-height: 1.5;
  color: #dce3e7;
  margin-bottom: 12px;
}

.cl-calendar {
  background: transparent;
  color: #e7e7ed;
}

.cl-calendar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.cl-calendar__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.cl-calendar__panel {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  min-width: 0;
  width: 100%;
}

.cl-calendar__board {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  min-width: 0;
  width: 100%;
}

.cl-calendar__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.cl-slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.cl-slot-card {
  border: 1px solid var(--cl-border);
  border-radius: 12px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

.cl-slot-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.cl-slot-card__day {
  font-weight: 700;
}

.cl-slot-card__times {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  gap: 8px;
}

.cl-slot {
  border: 1px solid var(--cl-border);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  color: #e7e7ed;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cl-slot:hover {
  border-color: var(--cl-primary);
  color: var(--cl-primary);
}

.cl-slot--busy { cursor: not-allowed; background: var(--slot-color, rgba(255, 255, 255, 0.08)); border-color: var(--slot-color, #666); color: #0b0b0f; opacity: 1; box-shadow: 0 6px 18px rgba(0,0,0,0.3), 0 0 0 1px rgba(0,0,0,0.2); }

.cl-slot--active { background: linear-gradient(150deg, rgba(212, 255, 71, 0.24), rgba(212, 255, 71, 0.12)); color: #0b0b0f; box-shadow: 0 12px 28px rgba(0,0,0,0.45), 0 0 0 2px rgba(212, 255, 71, 0.35); }

.cl-slot-selected {
  padding: 10px 12px;
  border: 1px dashed var(--cl-border);
  border-radius: 10px;
  color: #e7e7ed;
}

.cl-day-strip {
  position: relative;
  padding: 0 60px;
  margin-bottom: 14px;
}

.cl-day-strip__viewport {
  overflow: hidden;
  padding: 0;
}

.cl-day-strip__inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(86px, 1fr));
  gap: 6px 8px;
  margin: 0;
}

.cl-day-btn {
  width: 100%;
  border: 1px solid #262a33;
  background: linear-gradient(160deg, #161a22, #0f1218);
  color: #f7f7fa;
  border-radius: 16px;
  padding: 8px 10px;
  text-align: left;
  display: grid;
  gap: 4px;
  line-height: 1.2;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02), 0 10px 24px rgba(0, 0, 0, 0.35);
}

.cl-day-btn__weekday {
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}

.cl-day-btn__date {
  color: #cfd3dd;
  font-size: 0.9rem;
}

.cl-day-btn__month {
  color: #aeb5c3;
  font-size: 0.72rem;
  font-weight: 700;
}

.cl-day-btn__tag {
  display: inline-block;
  background: rgba(212, 255, 71, 0.16);
  color: #0a0a0a;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.74rem;
  font-weight: 800;
}

.cl-day-btn:hover,
.cl-day-btn:focus {
  border-color: var(--cl-primary);
  color: #fff;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(212, 255, 71, 0.18);
  transform: translateY(-2px);
}

.cl-day-btn--active {
  border-color: var(--cl-primary);
  background: linear-gradient(160deg, rgba(212, 255, 71, 0.25), rgba(212, 255, 71, 0.08));
  color: #0b0b0f;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(212, 255, 71, 0.35);
}

.cl-day-btn--today {
  border-color: var(--cl-primary);
  background: linear-gradient(160deg, rgba(212, 255, 71, 0.35), rgba(212, 255, 71, 0.12));
  color: #0b0b0f;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45), 0 0 0 2px rgba(212, 255, 71, 0.35);
}

.cl-day-btn--past {
  cursor: not-allowed;
  opacity: 0.4;
  border-color: #3a3f4a;
  color: #7d8594;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.01);
}

.cl-day-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 12px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cl-day-nav--prev {
  left: 8px;
}

.cl-day-nav--next {
  right: 8px;
}

.cl-day-nav:hover,
.cl-day-nav:focus {
  border-color: var(--cl-primary);
  color: #0b0b0f;
  background: var(--cl-primary);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.cl-day-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.cl-slot-times {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px 12px;
  padding-top: 6px;
}

.cl-slot {
  background: linear-gradient(150deg, #161a22, #0f1218);
  border: 1px solid #262a33;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.cl-slot:hover {
  background: linear-gradient(150deg, rgba(212, 255, 71, 0.1), rgba(255, 255, 255, 0.03));
}

.cl-slot--active { background: linear-gradient(150deg, rgba(212, 255, 71, 0.24), rgba(212, 255, 71, 0.12)); color: #0b0b0f; box-shadow: 0 12px 28px rgba(0,0,0,0.45), 0 0 0 2px rgba(212, 255, 71, 0.35); }

.cl-calendar__day {
  border: 1px solid var(--cl-border);
  border-radius: 12px;
  padding: 12px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.04));
}

.cl-calendar__day-label {
  font-weight: 700;
  margin-bottom: 4px;
}

.cl-calendar__day-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--cl-muted);
  font-size: 0.9rem;
}

.cl-calendar__badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.cl-calendar__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.cl-calendar__dot--free {
  background: #57fb32;
}

.cl-calendar__dot--busy {
  background: #ff4136;
}

.cl-calendar__legend {
  color: var(--cl-muted);
  font-size: 0.95rem;
}

.cl-calendar__alert {
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 600;
}

.cl-calendar__alert--success {
  background: rgba(87, 251, 50, 0.12);
  color: #b7ffb0;
  border: 1px solid rgba(87, 251, 50, 0.35);
}

.cl-calendar__alert--error {
  background: rgba(255, 65, 54, 0.12);
  color: #ffc8c4;
  border: 1px solid rgba(255, 65, 54, 0.35);
}

.cl-badge--muted {
  background: rgba(255, 255, 255, 0.08);
  color: #e7e7ed;
}

@media (max-width: 992px) {
  .cl-calendar {
    padding: 64px 0;
  }
  .cl-calendar__header {
    flex-direction: column;
    align-items: flex-start;
  }
  .cl-calendar__layout {
    grid-template-columns: 1fr;
  }
  .cl-article {
    padding: 56px 0 72px;
  }
  .cl-article-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 819px) {
  .cl-contact {
    padding: 64px 0;
  }
  .cl-contact-grid {
    display: flex;
    flex-direction: column;
  }
  .cl-contact-grid > [class*="col-"] {
    width: 100%;
  }
}

@media (min-width: 820px) and (max-width: 991px) {
  /* Force contact hero into two columns between 820px and 991px */
  .cl-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
    row-gap: 24px;
  }
  .cl-contact-grid > [class*="col-"] {
    width: 100%;
  }
}

@media (min-width: 820px) {
  /* Ensure coffee module on the left, copy on the right */
  .cl-contact-grid .order-2 {
    order: 0 !important;
  }
  .cl-contact-grid .order-1 {
    order: 1 !important;
  }

  /* Calendar two-column layout from 820px up */
  .cl-calendar__layout {
    grid-template-columns: 1fr 1fr;
  }
}
.cl-mag-card__overlays {
  position: absolute;
  inset: 0;
}

.cl-mag-card__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.7) 70%);
  z-index: 10;
}

.cl-mag-card__color {
  position: absolute;
  inset: 0;
  background: rgba(84, 104, 110, 0.22);
  transition: background 0.3s ease;
  z-index: 9;
}

.cl-mag-card__content {
  position: absolute;
  inset: 0;
  padding: 68px 32px 32px;
  text-align: center;
  z-index: 20;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);
}

/* Contact page tweaks */
.cl-service-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cl-service-chip {
  border: 1px solid var(--cl-border);
  background: rgba(255, 255, 255, 0.02);
  color: #e7e7ed;
  border-radius: 999px;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cl-service-chip__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--chip-color, #ffd200);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.03);
}

.cl-service-chip:hover,
.cl-service-chip:focus {
  border-color: var(--chip-color, #ffd200);
  color: #fff;
}

.cl-service-chip--active {
  border-color: var(--chip-color, #ffd200);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
}

.cl-notes-wrap textarea {
  background: #111119;
  border: 1px solid var(--cl-border);
  color: #f2f2f5;
}

.cl-slot-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.cl-mag-card__content h3 {
  font-size: 22px;
  letter-spacing: 1.5px;
  margin: 0;
}

.cl-mag-card__content hr {
  width: 50px;
  height: 3px;
  margin: 18px auto;
  border: 0;
  background: #d0bb57;
}

.cl-mag-card__intro {
  font-size: 14px;
  line-height: 1.45;
  font-style: italic;
  margin: 0 auto 20px;
  max-width: 90%;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cl-mag-card__meta {
  display: flex;
  justify-content: center;
  gap: 12px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cl-mag-card__cat {
  background: rgba(0, 0, 0, 0.55);
  padding: 6px 12px;
  border-radius: 0;
  font-weight: 700;
}

.cl-mag-card__link {
  position: absolute;
  inset: 0;
  z-index: 30;
}

.cl-mag-card:hover .cl-mag-card__color {
  background: rgba(84, 104, 110, 0.75);
}

.cl-mag-card:hover .cl-mag-card__intro,
.cl-mag-card:hover .cl-mag-card__meta {
  opacity: 1;
  transform: translateY(0);
}

/* Magazine: nuovo layout card */
.cl-magazine .cl-mag-masonry {
  column-count: 3;
  column-gap: 18px;
}

.cl-magazine .cl-mag-card {
  width: 100%;
  max-width: 100%;
  display: inline-block;
  break-inside: avoid;
  margin: 0 0 18px;
  height: auto;
  background: #000;
  border-radius: 0;
  overflow: hidden;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cl-magazine .cl-mag-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
}

.cl-magazine .cl-mag-card--wide {
  min-height: 220px;
}

.cl-magazine .cl-mag-card--tall {
  min-height: 320px;
}

.cl-magazine .cl-mag-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cl-magazine .cl-mag-card__content {
  box-sizing: border-box;
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px 18px 18px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
}

.cl-magazine .cl-mag-card__cat {
  display: inline-flex;
  align-self: flex-start;
  max-width: 80%;
  padding: 6px 14px;
  margin: 0 0 8px;
  border-radius: 0;
  font-size: 12px;
  color: #0b1216;
  background: #d0bb57;
  box-shadow: 0 0 0 2px rgba(208, 187, 87, 0.25);
  border: 1px solid #d0bb57;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  text-shadow: none;
}

.cl-magazine .cl-mag-card__title {
  margin: 0;
  font-size: 17px;
  color: #fff;
  font-weight: 800;
  line-height: 1.2;
  text-align: left;
  display: inline-flex;
  align-self: flex-start;
  padding: 8px 14px;
  margin-top: 4px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 0;
  text-shadow: none;
}

.cl-magazine .cl-mag-card__link {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: block;
  pointer-events: auto;
}

@media (max-width: 520px) {
  .cl-magazine .cl-mag-masonry {
    column-count: 1;
  }

  .cl-magazine .cl-mag-card {
    height: auto;
  }

  .cl-magazine .cl-mag-card--tall {
    min-height: 260px;
  }
}

@media (max-width: 1024px) {
  .cl-magazine .cl-mag-masonry {
    column-count: 2;
  }
}

@media (max-width: 1200px) {
  .cl-mag-masonry {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

@media (max-width: 780px) {
  .cl-magazine {
    padding: 56px 0;
  }
  .cl-mag-masonry {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    justify-items: initial;
  }
  .cl-mag-card,
  .cl-mag-card--wide,
  .cl-mag-card--short {
    grid-column: span 1;
    grid-row: span 1;
    min-height: 320px;
  }
}

/* Nasconde l'header bootstrap nella pagina Magazine per evitare doppio menu */
.page-template-page-magazine header.py-3 {
  display: none !important;
}

.cl-slot--past { cursor: not-allowed; opacity: 0.45; border-color: #3a3f4a; color: #7d8594; background: rgba(255, 255, 255, 0.04); }



