/* ===== VARIABILI / PALETTE ===== */
:root {
  --oro: #b08d57;
  --oro-chiaro: #ebe1cb;
  --oro-scuro: #8a6d3b;
  --verde-logo: #2f7a4a;
  --nero: #1a1a1a;
  --grigio: #6b6b6b;
  --crema: #f7f4ef;
  --bianco: #ffffff;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;
}

/* Il sito è disegnato per la modalità chiara: lo dichiariamo "solo chiaro"
   così nessun browser lo scurisce automaticamente (barra menu, foto, ecc.) */
:root { color-scheme: only light; }

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  font-family: var(--sans);
  color: var(--nero);
  line-height: 1.6;
  font-weight: 300;
  background: var(--bianco);
  overflow-x: clip;   /* evita scroll orizzontale senza rompere l'header fisso */
}

.container { width: 90%; max-width: 1140px; margin: 0 auto; }

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

/* ===== HEADER ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: linear-gradient(to top, #f6f1e6 0%, #ffffff 45%, #ffffff 100%);
  border-bottom: 2px solid var(--oro);
  box-shadow: 0 8px 26px rgba(0,0,0,.22);
  /* La pagina è dichiarata "solo chiara" (vedi :root): i browser in dark mode
     non ricolorano quindi la barra del menu. */
  color-scheme: only light;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.logo {
  font-family: var(--serif); font-size: 1.6rem; letter-spacing: 1px; color: var(--nero);
  display: flex; align-items: center;
}
.logo span { color: var(--oro); }
.logo img { height: 48px; width: auto; display: block; }
/* In modalità scura usiamo ovunque (barra menu e popup avvisi) la copia del logo
   senza diamante, che si legge bene su fondo scuro. In modalità chiara resta il
   logo originale col diamante. */
@media (prefers-color-scheme: dark) {
  .logo img,
  .urgent-logo { content: url('img/DeMauro-menu-dark.png'); }
}
.nav { display: flex; gap: 32px; }
.nav a {
  font-family: var(--serif); font-weight: 500;
  font-size: 1.2rem; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--verde-logo); transition: color .2s;   /* verde come il logo su barra bianca */
  white-space: nowrap;   /* mai andare a capo: su desktop stretti riduciamo il font (vedi media query) */
}
.nav a:hover { color: var(--oro); }
.nav a.active { color: var(--oro); font-weight: 700; }   /* sezione attiva in oro */
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--verde-logo); z-index: 120; }
/* Icona contatti e social nel menu: solo su mobile/tablet (nascosti su desktop) */
/* header-right visibile anche su desktop per ospitare il selettore lingua
   (icona contatti e hamburger restano nascosti su desktop tramite le loro regole). */
.header-right { display: flex; align-items: center; gap: 16px; }
.header-contact { display: none; }
.nav-socials { display: none; }

/* ===== SELETTORE LINGUA (IT | EN, entrambi visibili) ===== */
.lang-switch {
  position: relative;
  display: inline-flex; align-items: stretch; overflow: hidden;
  border-radius: 999px;
  font-family: var(--sans); font-size: .74rem; font-weight: 600;
  letter-spacing: 1px; line-height: 1; white-space: nowrap;
}
/* Bordo disegnato come strato SOPRA a tutto (anche sopra il riempimento del selezionato):
   così è sempre completo su ogni lato e il selezionato resta pieno fino al bordo. */
.lang-switch::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--oro); pointer-events: none;
}
.lang-opt {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 6px 11px; color: var(--verde-logo); cursor: pointer;
  transition: background .2s, color .2s;
}
.lang-opt + .lang-opt { border-left: 1px solid var(--oro); }
.lang-opt:hover { color: var(--oro); }
.lang-opt.is-active { background: var(--oro); color: var(--bianco); cursor: default; }
/* Angoli esterni arrotondati come la cornice: così il riempimento del selezionato
   riempie tutta la casella fino agli angoli (niente più bordo cream scoperto). */
.lang-opt:first-child { border-radius: 999px 0 0 999px; }
.lang-opt:last-child  { border-radius: 0 999px 999px 0; }

/* Desktop non larghissimi: riduciamo font e spaziatura del menu così i link
   restano su UNA sola riga (invece di andare a capo e disallinearsi). */
@media (min-width: 901px) and (max-width: 1120px) and (pointer: fine) {
  .nav { gap: 20px; }
  .nav a { font-size: 1.05rem; letter-spacing: .8px; }
  .header-right { gap: 12px; }
  .lang-opt { padding: 5px 10px; }
}
@media (min-width: 901px) and (max-width: 1000px) and (pointer: fine) {
  .nav { gap: 13px; }
  .nav a { font-size: .9rem; letter-spacing: .3px; }
}

/* ===== HERO ===== */
.hero {
  position: relative; min-height: calc(100vh - 88px); overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; padding-bottom: 178px;
  background: radial-gradient(130% 115% at 24% 32%, #3f3121 0%, #2a1f13 46%, #150d07 100%), #150d07;
  color: var(--bianco); text-align: left;
}
/* Foto come sfondo parziale a destra; larghezza limitata così su schermi larghi resta il fondo scuro ai lati */
.hero-photo {
  position: absolute; top: 0; bottom: 0; z-index: 0;
  left: calc(max(0px, (100vw - 1480px) / 2) + 0.26 * min(100vw, 1480px));
  right: max(0px, calc((100vw - 1480px) / 2));
  background: url('img/hero.jpg') center 46% / cover no-repeat; opacity: .76;
  -webkit-mask-image: radial-gradient(ellipse 72% 66% at 50% 46%, #000 4%, rgba(0,0,0,.4) 38%, transparent 70%);
          mask-image: radial-gradient(ellipse 72% 66% at 50% 46%, #000 4%, rgba(0,0,0,.4) 38%, transparent 70%);
}
/* Scurisce il lato sinistro (leggibilità testo) + leggera vignetta */
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(18,11,7,.92) 0%, rgba(18,11,7,.55) 34%, rgba(18,11,7,0) 56%),
    /* velatura verticale come su mobile/tablet: copertina più scura e "morbida" anche su desktop */
    linear-gradient(180deg, rgba(18,11,7,.38) 0%, rgba(18,11,7,0) 26%, rgba(18,11,7,0) 54%, rgba(18,11,7,.4) 82%, rgba(18,11,7,.68) 100%),
    radial-gradient(ellipse at center, rgba(0,0,0,0) 55%, rgba(0,0,0,.5) 100%);
}
.hero-content { position: relative; z-index: 2; margin: 0 auto; padding: 0 20px; width: 100%; text-shadow: 0 2px 24px rgba(0,0,0,0.6); }
.hero-kicker {
  display: flex; align-items: center; justify-content: flex-start; gap: 18px;
  text-transform: uppercase; letter-spacing: 4px; font-size: clamp(.82rem, 1.4vw, 1.05rem); font-weight: 700;
  color: var(--oro); margin-bottom: 22px;
}
.hero-kicker::before, .hero-kicker::after {
  content: ""; width: clamp(20px, 5vw, 48px); height: 1px;
  background: linear-gradient(90deg, transparent, var(--oro)); opacity: .8;
}
.hero-kicker::after { background: linear-gradient(90deg, var(--oro), transparent); }
.hero h1 {
  /* Su smartphone (<600px) il titolo si riduce (9vw) così "Gioielli che raccontano"
     resta su un solo rigo → titolo su 2 righe esatte. Da 600px in su vale la
     regola @media (min-width:600). */
  font-family: var(--serif); font-weight: 500; font-size: clamp(1.5rem, 8.3vw, 4.6rem);
  line-height: 1.08; margin-bottom: 4px; letter-spacing: .5px;
}
.hero-tagline {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem); color: var(--oro);
  margin-top: 10px; letter-spacing: .5px;
}
/* Divisore con rombo dorato */
.hero-divider { position: relative; display: block; width: 90px; height: 1px;
  background: rgba(176,141,87,.55); margin: 22px 0 26px; }
.hero-divider::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 7px; height: 7px; background: var(--oro);
  transform: translate(-50%,-50%) rotate(45deg);
}
.hero-sub { font-size: clamp(1.05rem, 1.9vw, 1.4rem); max-width: 470px; margin: 0 0 34px; opacity: .92; font-weight: 300; }
.hero-btn { display: inline-flex; align-items: center; gap: 12px; box-shadow: 0 8px 22px rgba(0,0,0,.30); }
.hero-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0,0,0,.38); }
.btn-arrow { width: 20px; height: 20px; flex-shrink: 0; }
@media (min-width: 600px) {
  .hero-kicker { font-size: 1.05rem; }
  .hero h1 { font-size: clamp(3.2rem, 5.2vw, 4.6rem); }
  .hero-sub { font-size: 1.35rem; }
}

/* Fascia feature minimale + linea orizzontale prima di "Scopri di più" */
.hero-bottom { position: absolute; left: 0; right: 0; bottom: 22px; z-index: 2; margin: 0 auto; }
.hero-features {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 0;
}
/* Linea da bordo a bordo dello schermo, prima di "Scopri di più" */
/* Linea separatrice SOPRA le icone (edge-to-edge), con stacco prima delle feature */
.hero-hr { display: block; width: 100%; height: 1px; background: rgba(255,255,255,.16); margin: 0 0 22px; }
/* Base (mobile/tablet): icona SOPRA l'etichetta */
.hero-features .feature { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 9px; text-align: center; padding: 0 8px; }
.hero-features .feature + .feature { border-left: 1px solid rgba(255,255,255,.14); }
.feature svg { width: 30px; height: 30px; color: var(--oro); }
.feature span { text-transform: uppercase; letter-spacing: 2px; font-size: .72rem; font-weight: 500; line-height: 1.4; color: #e5dccd; }
/* Desktop: icona a SINISTRA dell'etichetta (solo dispositivi con mouse) */
@media (min-width: 1025px) and (pointer: fine) {
  /* Stesso rientro laterale del testo della copertina (padding 20px di .hero-content),
     così le feature partono e finiscono allineate al testo sopra */
  .hero-features { padding-left: 20px; padding-right: 20px; }
  .hero-features .feature { flex-direction: row; align-items: center; justify-content: center; gap: 14px; text-align: left; }
  .hero-features .feature:first-child { justify-content: flex-start; padding-left: 0; }
  .hero-features .feature:last-child { justify-content: flex-end; padding-right: 0; }
}
/* Desktop (≥901): sfumatura morbida (radiale) + fade extra sui lati orizzontali,
   intersecati, così anche i bordi laterali della foto scompaiono nel fondo scuro. */
@media (min-width: 901px) and (pointer: fine) {
  .hero-photo {
    -webkit-mask-image:
      radial-gradient(ellipse 78% 62% at 50% 46%, #000 0%, rgba(0,0,0,.82) 26%, rgba(0,0,0,.42) 46%, rgba(0,0,0,.12) 64%, transparent 80%),
      linear-gradient(90deg, transparent 0%, rgba(0,0,0,.4) 9%, rgba(0,0,0,.8) 19%, #000 32%, #000 68%, rgba(0,0,0,.8) 81%, rgba(0,0,0,.4) 91%, transparent 100%);
    mask-image:
      radial-gradient(ellipse 78% 62% at 50% 46%, #000 0%, rgba(0,0,0,.82) 26%, rgba(0,0,0,.42) 46%, rgba(0,0,0,.12) 64%, transparent 80%),
      linear-gradient(90deg, transparent 0%, rgba(0,0,0,.4) 9%, rgba(0,0,0,.8) 19%, #000 32%, #000 68%, rgba(0,0,0,.8) 81%, rgba(0,0,0,.4) 91%, transparent 100%);
    -webkit-mask-composite: source-in;   /* intersezione (Safari/WebKit) */
            mask-composite: intersect;    /* intersezione (standard) */
  }
}

/* Comparsa animata degli elementi */
@keyframes heroUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.hero-content > * { animation: heroUp .9s cubic-bezier(.2,.7,.3,1) both; }
.hero-kicker { animation-delay: .05s; }
.hero h1 { animation-delay: .18s; }
.hero-tagline { animation-delay: .26s; }
.hero-divider { animation-delay: .32s; }
.hero-sub { animation-delay: .44s; }
.hero-content .btn { animation-delay: .56s; }
/* Le feature compaiono in sequenza dopo il contenuto (desktop e mobile) */
.hero-features .feature { animation: heroUp .8s cubic-bezier(.2,.7,.3,1) both; }
.hero-features .feature:nth-child(1) { animation-delay: .66s; }
.hero-features .feature:nth-child(2) { animation-delay: .74s; }
.hero-features .feature:nth-child(3) { animation-delay: .82s; }
.hero-features .feature:nth-child(4) { animation-delay: .90s; }

/* Indicatore "scorri" in basso */
.hero-scroll {
  width: fit-content; margin: 14px auto 0; z-index: 3;
  color: var(--oro); animation: heroBobY 2s ease-in-out infinite;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.hero-scroll-label { text-transform: uppercase; letter-spacing: 3px; font-size: .74rem; font-weight: 700; }
.hero-scroll svg { width: 24px; height: 24px; }
.hero-scroll:hover { color: #e6d3ad; }
@keyframes heroBobY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) {
  .hero-content > *, .hero-scroll, .hero-features .feature { animation: none; }
}

/* Copertina IMPILATA e centrata su TELEFONI e TABLET in verticale:
   in alto titolo+tagline+separatore, foto (anelli) al centro, resto in basso. */
@media (max-width: 700px) and (orientation: portrait),
       (pointer: coarse) and (orientation: portrait) {
  /* Mobile ispirato al render: testo in alto a sinistra, foto piena sfumata, fascia feature in basso */
  .hero {
    justify-content: space-between; padding-top: 52px; padding-bottom: 0; text-align: left;
    /* ALTEZZA MINIMA: header a scomparsa → la hero usa tutta l'altezza schermo, con un minimo per non comprimere gli anelli */
    min-height: max(760px, 100svh);
  }
  /* Anelli centrati nella fascia vuota; dimensione ridotta ~20% rispetto al cover */
  .hero-photo {
    left: 0; right: 0; width: auto; top: 0; bottom: 0;
    background-image: url('img/hero3.png');
    /* 50% = anelli centrati orizzontalmente; 24% = foto sollevata (più in alto);
       92% = foto ingrandita ~15% */
    background-position: 50% 24%; background-size: auto 92%; opacity: .92;
    /* Sfumatura dei bordi rimossa su mobile/tablet verticale (resta su desktop e tablet orizzontale) */
    -webkit-mask-image: none;
            mask-image: none;
  }
  .hero-overlay {
    /* Velo scuro rimosso su mobile/tablet verticale (resta su desktop e tablet orizzontale) */
    background: none;
  }
  /* La colonna testo cresce: titolo in alto, blocco "Gemme certificate…" + CTA spinti in basso */
  /* Copertina centrata su mobile/tablet (niente più contenuto a filo sinistra) */
  .hero-content {
    text-align: center; padding-bottom: 0;
    flex: 1 1 auto; display: flex; flex-direction: column; align-items: center;
  }
  .hero-kicker { justify-content: center; margin-bottom: 16px; }
  /* Il separatore a rombo NON serve su mobile/tablet/fold: rimosso.
     Il sottotitolo prende il ruolo di "spaziatore" per restare in fondo. */
  .hero-divider { display: none; }
  .hero-content .hero-sub { margin-top: auto; margin-left: auto; margin-right: auto; margin-bottom: 24px; }
  .hero-btn { justify-content: center; align-self: center; margin-bottom: 22px; }

  /* Fascia in basso: tutto ancorato al fondo, foto libera nel mezzo */
  .hero-bottom { position: static; margin: auto 0 0; padding-bottom: 16px; }
  /* Feature a tutta larghezza reale + linea separatrice da bordo a bordo */
  .hero-features {
    width: 100%; max-width: none; margin: 0;
    padding: 15px 10px 4px; border-top: 1px solid rgba(255,255,255,.18);
  }
  .hero-features .feature { padding: 0 4px; gap: 7px; }
  .hero-features .feature + .feature { border-left: 1px solid rgba(255,255,255,.14); }
  .feature svg { width: 24px; height: 24px; }
  .feature span { font-size: .53rem; letter-spacing: .3px; white-space: nowrap; }
  /* La linea sopra le feature fa già da separatore: la seconda riga bianca non serve */
  .hero-hr { display: none; }
  /* "Scopri di più" ora visibile anche su mobile, compatto e sopra alla campanella */
  .hero-scroll { display: flex; margin: 24px auto 0; }
  .hero-scroll-label { font-size: .64rem; letter-spacing: 2px; }
  .hero-scroll svg { width: 22px; height: 22px; }
}

/* Solo su TELEFONI in verticale (≤700px): rifiniture di copertina. */
@media (max-width: 700px) and (orientation: portrait) {
  /* Foto a TUTTA COPERTINA (cover): riempie l'intera hero e "continua" fino in fondo.
     La dissolvenza è affidata al velo (.hero-overlay), NON a una maschera: così è
     coerente sul dispositivo reale (la maschera si disallineava all'altezza svh). */
  .hero-photo {
    background-size: auto 85%; background-position: center 24%;
    -webkit-mask-image: none; mask-image: none;
  }
  /* Ombra al testo per la leggibilità (senza il velo scuro) */
  .hero-content { text-shadow: 0 1px 3px rgba(0,0,0,.85), 0 2px 16px rgba(0,0,0,.6); }
  .hero-features, .hero-scroll { text-shadow: 0 1px 3px rgba(0,0,0,.85), 0 2px 10px rgba(0,0,0,.55); }
  /* Velo: (1) alone grigio radiale che scurisce leggermente tutta la foto e aumenta verso
     l'esterno; (2) gradiente verticale per la leggibilità (titolo in alto, testo/feature in basso). */
  .hero-overlay {
    background:
      radial-gradient(ellipse 116% 100% at 50% 47%, rgba(45,42,38,.12) 0%, rgba(45,42,38,.32) 38%, rgba(45,42,38,.6) 100%),
      linear-gradient(180deg,
        rgba(20,13,7,.62) 0%, rgba(20,13,7,.12) 22%, rgba(20,13,7,0) 40%,
        rgba(20,13,7,0) 52%, rgba(20,13,7,.55) 74%, rgba(20,13,7,.9) 100%);
  }
  /* "Dal 1919 la nostra passione": molto più chiara e leggibile su telefono verticale */
  .hero-tagline {
    color: #f4e8cc;
    text-shadow: 0 1px 4px rgba(0,0,0,.9), 0 2px 12px rgba(0,0,0,.7);
  }
}

/* Telefoni in ORIZZONTALE con POCO spazio verticale (altezza ≤ 450px): la copertina
   usa tutta l'altezza e l'header si nasconde, comparendo allo scroll.
   La soglia bassa (450px) esclude i foldable aperti (es. Samsung Fold), che anche
   con la barra del browser restano molto più alti: lì il menu resta fisso in alto. */
@media (pointer: coarse) and (orientation: landscape) and (max-height: 450px) {
  /* Menu a scomparsa come su mobile: nascosto in cima, compare scrollando,
     così la copertina sfrutta tutta l'altezza dello schermo. */
  .home .site-header {
    position: fixed; left: 0; right: 0; top: 0;
    transform: translateY(-100%); transition: transform .32s ease;
  }
  .home .site-header.show { transform: translateY(0); }
  /* La copertina desktop qui verrebbe compressa: mettiamo il contenuto in alto e
     la fascia feature a TUTTA LARGHEZZA sotto (come su mobile), distanziata dal
     pulsante, così le feature si dispongono bene sull'orizzontale. */
  .hero { justify-content: flex-start; padding-top: 22px; padding-bottom: 18px; }
  .hero-bottom { position: static; margin: 26px 0 0; }
  .hero-features {
    width: 100%; max-width: none; margin: 0;
    padding: 12px 14px 2px; border-top: 1px solid rgba(255,255,255,.18);
  }
  .hero-features .feature + .feature { border-left: 1px solid rgba(255,255,255,.14); }
  .hero-hr { display: none; }   /* il bordo superiore della fascia fa da divisore */
  .feature span { font-size: .62rem; letter-spacing: 1px; white-space: nowrap; }
}

/* ===== BOTTONI ===== */
.btn {
  display: inline-block; padding: 14px 34px; font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 2.5px; border: 1px solid var(--oro);
  transition: all .25s;
}
.btn-light { background: var(--oro); color: var(--bianco); }
.btn-light:hover { background: var(--oro-scuro); color: var(--bianco); border-color: var(--oro-scuro); }
.btn-dark { background: var(--nero); color: var(--bianco); border-color: var(--nero); }
.btn-dark:hover { background: var(--oro); border-color: var(--oro); }
.btn-outline { background: transparent; color: var(--bianco); border-color: var(--oro); }
.btn-outline:hover { background: var(--oro); color: var(--bianco); border-color: var(--oro); }

/* Social spostati subito sotto il titolo "Contatti" (riordino via flex) */
.section-dark .split-text { display: flex; flex-direction: column; }
.section-dark .section-title { line-height: 1.1; color: var(--oro); }
.contatti-split { align-items: start; }
.section-dark .container > .review-cta { margin-top: 40px; }
#contatti { padding-bottom: 36px; }
.section-dark .split-text .contact-list { order: 2; }
.section-dark .split-text .section-kicker { order: 3; margin-top: 10px; }
.section-dark .split-text .socials { order: 4; margin: 4px 0 22px; justify-content: center; }
.section-dark .split-text .review-cta { order: 5; }

/* Recapiti nello stesso oro chiaro dell'etichetta recensione */
.section-dark .split-text .contact-list li,
.section-dark .split-text .contact-list a,
.section-dark .split-text .contact-list .nowrap { color: var(--oro-chiaro); }

/* Separatore a rombo come nella copertina */
.contatti-divider, .sec-divider {
  position: relative; display: block; width: 90px; height: 1px;
  background: rgba(176,141,87,.55);
}
.contatti-divider::after, .sec-divider::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 7px; height: 7px; background: var(--oro);
  transform: translate(-50%,-50%) rotate(45deg);
}
/* Barra col rombo sotto ogni titolo di sezione */
.sec-divider { margin: 0 auto 46px; }
.section-title:has(+ .sec-divider) { margin-bottom: 18px; }
/* Nelle colonne allineate a sinistra la barra segue il testo */
.split-text .sec-divider, .dia-text .sec-divider { margin-left: 0; margin-right: 0; }

/* "Dove trovarci" con lo stesso stile del kicker della copertina */
.section-dark .split-text .section-kicker {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  text-transform: uppercase; letter-spacing: 4px; font-weight: 700;
  font-size: clamp(.82rem, 1.4vw, 1.05rem); color: var(--oro); margin-bottom: 16px;
}
.section-dark .split-text .section-kicker::before,
.section-dark .split-text .section-kicker::after {
  content: ""; flex: 0 0 auto; width: clamp(24px, 5vw, 48px); height: 1px;
  background: linear-gradient(90deg, transparent, var(--oro)); opacity: .85;
}
.section-dark .split-text .section-kicker::after {
  background: linear-gradient(90deg, var(--oro), transparent);
}

/* Blocco "Lasciaci una recensione" — etichetta e pulsanti sulla stessa riga */
.review-cta { margin-top: 30px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px 16px; }
.review-cta__label { display: flex; align-items: center; align-self: stretch; text-transform: uppercase; letter-spacing: 2px; font-size: .8rem; color: var(--oro-chiaro); margin: 0; line-height: 1; }
.review-links { display: flex; align-items: center; gap: 18px; }
.review-link { display: inline-flex; color: var(--oro); transition: color .2s; }
.review-link:hover { color: var(--bianco); }
.review-link svg { width: 26px; height: 26px; display: block; }

/* ===== SEZIONI ===== */
.section { padding: 90px 0; }
.section-alt { background: var(--crema); }
.section-dark {
  background: #221b13;   /* tinta unita elegante */
  color: var(--bianco);
}
.section-kicker {
  text-align: center; text-transform: uppercase; letter-spacing: 3px;
  font-size: 0.78rem; color: var(--oro); margin-bottom: 10px;
}
.section-kicker.light { color: var(--oro); }
.section-title {
  text-align: center; font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 50px;
}

/* ===== GRIGLIE ===== */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ===== CARD COLLEZIONI ===== */
.card {
  background: var(--bianco); border: 1px solid #ece7de; overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,0.10); }
.card-img {
  height: 240px; background-size: cover; background-position: center;
  background-color: #e9e2d6;
}
.card-body { padding: 24px; }
.card-body h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; margin-bottom: 8px; }
.card-body p { color: var(--grigio); font-size: 0.95rem; }

/* ===== SPLIT (chi siamo / contatti) ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.split-img, .split-map {
  min-height: 380px; background-size: cover; background-position: center;
  background-color: #e9e2d6;
}
.split-map { overflow: hidden; position: relative; }
.split-map iframe { width: 100%; max-width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
.split-text h2.section-title, .split-text p.section-kicker { text-align: left; }
.split-text p { margin-bottom: 16px; color: inherit; }
.section-dark .split-text p, .section-dark .card-body p { color: #cfc8bd; }
.split-text .btn { margin-top: 10px; }

/* ===== SERVIZI ===== */
.service { text-align: center; padding: 20px; }
.service-icon { color: var(--oro); margin-bottom: 16px; line-height: 0; }
.service-icon svg { width: 56px; height: 56px; }
.service h3 { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; margin-bottom: 8px; }
.service p { color: var(--grigio); font-size: 0.92rem; }

/* ===== CONTATTI ===== */
.contact-list { list-style: none; margin-bottom: 26px; }
.contact-list li { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
.contact-list strong { color: var(--oro); font-weight: 500; margin-right: 6px; }
.contact-list a:hover { color: var(--oro); }
.socials { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.socials a { display: inline-flex; color: var(--oro); transition: color .2s; }
.socials a:hover { color: var(--bianco); }
.socials svg { width: 24px; height: 24px; display: block; }
/* Bilanciamento ottico: ogni logo riempie il riquadro in modo diverso */
.socials a:nth-child(2) svg { transform: scale(1.14); }  /* Facebook */
.socials a:nth-child(3) svg { transform: scale(0.9); }   /* WhatsApp */
.socials a:nth-child(4) svg { transform: scale(0.96); }  /* X */
.socials a:nth-child(5) svg { transform: scale(1.3); }   /* Threads */
.socials a:nth-child(6) svg { transform: scale(1.18); }  /* Google */
.nowrap { white-space: nowrap; }
.contact-list li.orari { display: flex; gap: .45em; align-items: baseline; }
.contact-list li.orari > strong { flex-shrink: 0; }
.orari-days { display: flex; flex-direction: column; min-width: 0; }

/* ===== FOOTER ===== */
.site-footer {
  background: #221b13;   /* stesso colore della sezione Contatti */
  color: #cbb98f; padding: 26px 0;
}
.footer-inner { display: flex; justify-content: space-between; align-items: center; font-size: 1rem; }
.footer-legal span + span::before { content: " — "; }
.footer-inner a:hover { color: var(--oro); }

/* ===== SEZIONE ANELLO — FOTO AFFIANCATE CON DISSOLVENZA ===== */
.anello-story .as-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  margin-bottom: 96px;
}
.anello-story .as-row:last-child { margin-bottom: 0; }
.anello-story .as-row.reverse .as-img  { order: 2; }
.anello-story .as-row.reverse .as-text { order: 1; }

.as-img {
  aspect-ratio: 1 / 1; min-height: 0;
  background-size: contain; background-position: center;
  background-repeat: no-repeat; background-color: #fff;
  /* Le foto sono quadrate con sfondo bianco "cotto": rendendo quadrato anche il
     riquadro spariscono i margini laterali, quindi in dark mode non compare la
     striscia scura. color-scheme:light mantiene comunque chiaro il riquadro. */
  color-scheme: light;
  opacity: 1; will-change: opacity, transform;
}
.as-text { max-width: 520px; }

.alt-h {
  font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 4.5vw, 3rem); color: var(--nero);
  margin-bottom: 20px; position: relative; padding-bottom: 14px;
}
.alt-h::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 2px; background: var(--oro); }
.as-text p { font-size: clamp(0.95rem, 1.7vw, 1.1rem); color: var(--grigio); line-height: 1.75; margin-bottom: 16px; }
.as-text p:last-child { margin-bottom: 0; }

/* Titolo + sottotitolo dentro la colonna testo */
.dia-text .section-title { text-align: left; margin-bottom: 6px; }
.dia-sub {
  text-align: left; font-family: var(--serif); font-weight: 500;
  font-size: 1.15rem; color: var(--oro-scuro);   /* stessa grandezza del testo sotto */
  margin: 0 0 26px;
}

/* ===== SEZIONE DIAMANTI CERTIFICATI ===== */
.diamanti .dia-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 60px; align-items: start; }
.dia-img {
  position: sticky; top: 100px; min-height: 520px;
  background-size: contain; background-position: center; background-repeat: no-repeat;
  background-color: #fff;
}
.dia-text p { font-size: 1.15rem; color: var(--grigio); line-height: 1.85; margin-bottom: 18px; }
.dia-text p:last-child { margin-bottom: 0; }
.dia-text strong { color: var(--nero); font-weight: 500; }
.dia-cert {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 26px 0;
  padding: 24px 20px; background: var(--crema); border-left: 3px solid var(--oro);
  text-align: center;
}
.cert-item { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; }
.cert-item small { overflow-wrap: anywhere; }
.cert-logo {
  height: 74px; width: 100%; max-width: 180px;
  background-color: #fff; background-repeat: no-repeat; background-position: center;
  background-size: 88%;                 /* loghi normalizzati: stessa dimensione */
  border-radius: 6px; box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  display: block;
}
.cert-item small { font-family: var(--sans); font-size: .6rem; letter-spacing: .3px;
  text-transform: uppercase; color: var(--grigio); line-height: 1.3; }

/* Moduli collezioni nella colonna sinistra della sezione diamanti */
.dia-cards { position: sticky; top: 100px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-self: start; }

/* Didascalie categorie: nascoste solo su PC, visibili su mobile */
@media (min-width: 901px) { .cat-card .card-body p { display: none; } }

/* Card categoria cliccabile + badge conteggio */
.cat-card {
  cursor: pointer; box-shadow: 0 8px 22px rgba(0,0,0,.12);
  border: 1px solid var(--oro);   /* bordo dorato */
  /* bianco (foto) che sfuma in un champagne chiaro solo in fondo */
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 70%, #f6f0e2 90%, #efe7d4 100%);
}
.cat-card:hover { box-shadow: 0 14px 34px rgba(0,0,0,.18); }
.cat-card .card-body { text-align: center; background: transparent; padding: 14px 12px 16px; }   /* nome centrato, meno spazio vuoto */
.cat-card .card-img {
  position: relative; height: 120px;
  background-size: contain; background-repeat: no-repeat; background-position: center;
  background-color: transparent;   /* lascia trasparire il gradiente della card */
  transition: opacity .5s ease;
}
.cat-count { display: none; }

/* Lightbox galleria */
.lightbox {
  position: fixed; inset: 0; z-index: 2000; display: none;
  align-items: center; justify-content: center; background: rgba(15,12,10,.55);
}
.lightbox.open { display: flex; }
.lb-img { max-width: 44vw; max-height: 44vh; object-fit: contain; border-radius: 4px;
  box-shadow: 0 24px 70px rgba(0,0,0,.5); background: #fff; }
.lb-stage { display: flex; align-items: center; gap: 6px; }
.lb-close, .lb-prev, .lb-next {
  background: none; border: 0; color: var(--oro); cursor: pointer;
  transition: color .2s; line-height: 1;
}
.lb-close { position: absolute; top: 18px; right: 26px; font-size: 2.6rem; }
.lb-prev, .lb-next { font-size: 3rem; padding: 4px 6px; flex: 0 0 auto; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { color: #e6d3ad; }
.lb-counter { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  color: #fff; letter-spacing: 2px; font-size: .82rem; }
.lb-imgwrap { position: relative; display: inline-block; line-height: 0; }
.lb-progress {
  position: absolute; top: -10px; left: 0; right: 0; height: 4px;
  background: rgba(255,255,255,.22); border-radius: 2px; overflow: hidden; z-index: 3;
}
.lb-bar { display: block; height: 100%; width: 0; background: var(--oro); border-radius: 2px; }
@keyframes lbFill { from { width: 0; } to { width: 100%; } }
.dia-inline { margin: 26px 0; }
.dia-inline img { width: 100%; border-radius: 6px; display: block; box-shadow: 0 14px 40px rgba(0,0,0,0.08); }
.dia-inline figcaption { font-size: .85rem; color: var(--grigio); margin-top: 10px; text-align: center; font-style: italic; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px), (pointer: coarse) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split-text h2.section-title, .split-text p.section-kicker { text-align: center; }
  .split-text .btn { display: block; width: fit-content; margin-left: auto; margin-right: auto; }
  .socials { justify-content: center; gap: 18px; }
  .section-dark .split-text .section-kicker { justify-content: center; }
  .contatti-divider { margin-left: auto; margin-right: auto; }
  .split-text .sec-divider, .dia-text .sec-divider { margin-left: auto; margin-right: auto; }
  .review-cta { justify-content: center; }

  /* Menu a tendina (hamburger) anche su tablet in verticale */
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #ffffff;
    border-top: 1px solid #f0ece4; border-bottom: 2px solid var(--oro);
    box-shadow: 0 16px 30px rgba(0,0,0,.14);
    padding: 6px 0;
  }
  .nav.open { display: flex; animation: navDrop .28s ease both; }
  @keyframes navDrop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
  .nav a {
    padding: 17px 6%; text-align: center; font-size: 1.05rem; letter-spacing: 3px;
    border-top: 1px solid #f3efe6;
  }
  .nav a:first-child { border-top: none; }
  .nav-toggle { display: block; }

  /* le ancore non finiscono sotto l'header fisso/sticky */
  html { scroll-padding-top: 88px; }

  /* A destra: icona Contatti + menu (logo resta a sinistra) */
  .header-right { display: flex; align-items: center; gap: 18px; }
  .header-contact { display: inline-flex; align-items: center; color: var(--verde-logo); transition: color .2s; }
  .header-contact svg { width: 27px; height: 27px; display: block; }
  .header-contact:hover { color: var(--oro); }

  /* Riga social in fondo al menu a tendina: social a SINISTRA (ravvicinati),
     selettore lingua a DESTRA sullo stesso rigo (solo mobile/tablet). */
  .nav-socials {
    display: flex; align-items: center; justify-content: flex-start; flex-wrap: nowrap; gap: 16px;
    padding: 16px 6% 14px; margin-top: 4px; border-top: 1px solid #efe9de;
  }
  .nav-socials > a { display: inline-flex; padding: 0; border: none; color: var(--verde-logo); transition: color .2s; }
  .nav-socials > a:hover { color: var(--oro); }
  /* Selettore lingua nel menu: spinto a destra e in forma più ampia/elegante (come desktop) */
  .nav-socials .lang-switch { margin-left: auto; font-size: .8rem; letter-spacing: 1.5px; }
  .nav-socials .lang-opt { padding: 8px 18px; }
  .header-right .lang-switch { display: none; }      /* su mobile/tablet il selettore NON sta nella barra in alto */
  .nav-socials svg { width: 25px; height: 25px; display: block; }
  /* bilanciamento ottico dei loghi, come nella sezione contatti */
  .nav-socials a:nth-child(2) svg { transform: scale(1.14); }
  .nav-socials a:nth-child(3) svg { transform: scale(0.92); }
  .nav-socials a:nth-child(4) svg { transform: scale(0.96); }
  .nav-socials a:nth-child(5) svg { transform: scale(1.3); }
  .nav-socials a:nth-child(6) svg { transform: scale(1.18); }

  /* Anello su mobile/tablet: impilato, foto PIÙ GRANDE sopra il testo */
  .anello-story .as-row { grid-template-columns: 1fr; gap: 28px; margin-bottom: 72px; }
  .anello-story .as-row.reverse .as-img  { order: 1; }
  .anello-story .as-row.reverse .as-text { order: 2; }
  .as-img { min-height: 0; }   /* l'aspect-ratio 1/1 gestisce l'altezza */
  .as-text { max-width: none; }

  /* Diamanti: impilato su mobile/tablet */
  .diamanti .dia-grid { grid-template-columns: 1fr; gap: 30px; }
  .dia-img { position: static; min-height: 70vw; }
  .dia-cards { position: static; }
}
@media (max-width: 640px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .lb-img { max-width: 86vw; max-height: 70vh; }

  /* Header a scomparsa SOLO su mobile/schermi piccoli (anche quadrati): nascosto
     in cima, compare allo scroll. Su tablet resta sempre visibile (sticky). */
  .home .site-header {
    position: fixed; left: 0; right: 0; top: 0;
    transform: translateY(-100%);
    transition: transform .32s ease;
  }
  .home .site-header.show { transform: translateY(0); }

  /* Footer: le 3 info su righe separate e leggibili */
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .footer-legal { display: flex; flex-direction: column; gap: 6px; line-height: 1.6; }
  .footer-legal span + span::before { content: none; }

  /* Copertina: usa tutta l'altezza reale del viewport mobile; distribuzione gestita da space-between */
  .hero { min-height: max(760px, 100svh); }
  .hero-content { padding-bottom: 0; }
}

/* ===== TABLET (e touch oltre 900px, es. fold/telefono in orizzontale) ===== */
@media (min-width: 641px) and (max-width: 900px), (min-width: 901px) and (pointer: coarse) {
  .diamanti .dia-grid { grid-template-columns: 0.75fr 1.25fr; gap: 30px; align-items: start; }
  .dia-cards { grid-template-columns: 1fr; position: sticky; top: 90px; }
  .cat-card .card-body p { display: none; }   /* niente didascalie, come su PC */
}

/* NOTA: rimossa la vecchia maschera speciale "tablet verticale" (ellisse 48%×52% +
   dissolvenza verticale). Ora il tablet in verticale usa la stessa copertina/maschera
   del tablet in orizzontale (desktop), come richiesto. */

/* TABLET in VERTICALE (touch ≥700px): layout impilato in tre fasce.
   In ALTO tutto il testo (titolo, tagline, separatore, "Gemme…", pulsante) compatto;
   al CENTRO gli anelli; in FONDO le feature con "Scopri di più". */
@media (pointer: coarse) and (orientation: portrait) and (min-width: 700px) {
  .hero { padding-top: 40px; }
  /* Il blocco testo si espande: titolo+tagline+separatore in alto, "Gemme…"+pulsante
     spinti in basso (dopo gli anelli), come su mobile. */
  .hero-content {
    flex: 1 1 auto;
    /* Ombra al testo come su mobile, per la leggibilità sulla foto */
    text-shadow: 0 1px 3px rgba(0,0,0,.85), 0 2px 16px rgba(0,0,0,.6);
  }
  /* Scritte più grandi per coprire meglio la pagina */
  .hero h1 { font-size: 4.5rem; }
  .hero-tagline { font-size: 2.05rem; }
  /* Separatore a rombo VISIBILE (a differenza del telefono) */
  .hero-divider { display: block; margin: 20px auto 22px; }
  /* "Gemme…" e pulsante spinti in fondo (dopo gli anelli), come su mobile */
  .hero-content .hero-sub { margin-top: auto; margin-bottom: 24px; font-size: 1.45rem; max-width: 640px; }
  .hero-btn { font-size: 1.02rem; padding: 17px 40px; }
  /* Foto a TUTTA COPERTINA e ingrandita (~+15% rispetto a cover): riempie l'intera hero
     e continua fino in fondo. Dissolvenza affidata al velo (.hero-overlay), NON a una
     maschera: coerente sul dispositivo reale (la maschera si disallineava all'altezza svh). */
  .hero-photo {
    background-size: auto 110%; background-position: center 58%;
    -webkit-mask-image: none; mask-image: none;
  }
  /* Velo: (1) alone grigio radiale che scurisce leggermente tutta la foto e aumenta verso
     l'esterno; (2) gradiente verticale per la leggibilità (titolo in alto, testo+feature in basso). */
  .hero-overlay {
    background:
      radial-gradient(ellipse 116% 100% at 50% 47%, rgba(45,42,38,.12) 0%, rgba(45,42,38,.32) 38%, rgba(45,42,38,.6) 100%),
      linear-gradient(180deg,
        rgba(20,13,7,.82) 0%, rgba(20,13,7,.28) 24%, rgba(20,13,7,0) 40%,
        rgba(20,13,7,0) 54%, rgba(20,13,7,.5) 72%, rgba(20,13,7,.88) 100%);
  }
  .hero-features, .hero-scroll { text-shadow: 0 1px 3px rgba(0,0,0,.85), 0 2px 10px rgba(0,0,0,.55); }
}

/* Footer: 3 righe leggibili già da tablet/fold aperto in giù (e su touch) */
@media (max-width: 900px), (pointer: coarse) {
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .footer-legal { display: flex; flex-direction: column; gap: 6px; line-height: 1.6; }
  .footer-legal span + span::before { content: none; }
}

/* ===== BADGE COMUNICAZIONI URGENTI ===== */
.urgent-badge {
  position: fixed; right: 22px; bottom: 22px; z-index: 1500;
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--verde-logo); border: 2px solid var(--oro);
  box-shadow: 0 8px 24px rgba(0,0,0,.30);
  color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s, box-shadow .2s;
  animation: urgentPulse 2.4s ease-in-out infinite;
}
.urgent-badge:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,.38); }
.urgent-badge svg { width: 30px; height: 30px; }
/* Su mobile la campanella è più piccola e nell'angolo, così non copre l'ultima feature della copertina */
@media (max-width: 760px) {
  .urgent-badge { width: 52px; height: 52px; right: 14px; bottom: 14px; }
  .urgent-badge svg { width: 26px; height: 26px; }
}
@keyframes urgentPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(0,0,0,.30), 0 0 0 0 rgba(176,141,87,.45); }
  50%      { box-shadow: 0 8px 24px rgba(0,0,0,.30), 0 0 0 12px rgba(176,141,87,0); }
}

.urgent-popup {
  position: fixed; inset: 0; z-index: 1600; display: none;
  align-items: center; justify-content: center; background: rgba(0,0,0,.5); padding: 20px;
}
.urgent-popup.open { display: flex; }
.urgent-box {
  position: relative; background: #fffdf8; width: 100%; max-width: 440px;
  padding: 40px 36px 36px; border-radius: 12px;
  border: 3px solid var(--oro);
  box-shadow: 0 24px 70px rgba(0,0,0,.4), inset 0 0 0 1px rgba(176,141,87,.25);
  text-align: center;
  animation: popIn .5s cubic-bezier(.2,.7,.3,1) both;
}
.urgent-logo { display: block; height: 74px; width: auto; margin: 4px auto 18px; }
.urgent-kicker {
  text-transform: uppercase; letter-spacing: 4px; font-size: .72rem;
  color: var(--oro); margin-bottom: 8px; font-weight: 500;
}
.urgent-box h3 {
  font-family: var(--serif); font-weight: 500; font-size: 2rem; color: var(--nero);
  margin-bottom: 4px; letter-spacing: .3px;
}
/* divisore con rombo dorato */
.urgent-divider { position: relative; display: block; width: 72px; height: 1px;
  background: rgba(176,141,87,.55); margin: 16px auto 18px; }
.urgent-divider::after { content: ""; position: absolute; left: 50%; top: 50%;
  width: 6px; height: 6px; background: var(--oro); transform: translate(-50%,-50%) rotate(45deg); }
.urgent-box p {
  color: #5a5750; line-height: 1.7; font-size: 1.28rem; font-weight: 300;
  max-width: 360px; margin: 0 auto;
}
.urgent-box p strong { color: var(--oro-scuro); font-weight: 600; }
.urgent-close {
  position: absolute; top: 10px; right: 16px; font-size: 1.9rem; line-height: 1;
  background: none; border: 0; color: var(--grigio); cursor: pointer; z-index: 2;
}
.urgent-close:hover { color: var(--oro); }

/* comparsa a sezioni (come la copertina) */
.urgent-logo,
.urgent-kicker,
.urgent-box h3,
.urgent-divider,
.urgent-body p {
  animation: heroUp .6s cubic-bezier(.2,.7,.3,1) both;
}
.urgent-logo { animation-delay: .08s; }
.urgent-kicker { animation-delay: .18s; }
.urgent-box h3 { animation-delay: .28s; }
.urgent-divider { animation-delay: .36s; }
.urgent-body p { animation-delay: .46s; }
@keyframes popIn { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .urgent-box, .urgent-logo, .urgent-kicker, .urgent-box h3, .urgent-divider, .urgent-body p { animation: none; }
}

/* Da 600px in su la sezione "La nostra storia" resta a due colonne come su PC */
@media (min-width: 600px) {
  .anello-story .as-row { grid-template-columns: 1fr 1fr; gap: 56px; margin-bottom: 96px; align-items: center; }
  .anello-story .as-row.reverse .as-img  { order: 2; }
  .anello-story .as-row.reverse .as-text { order: 1; }
  .anello-story .as-img  { min-height: 0; }
  .anello-story .as-text { max-width: 480px; }
}

/* ===== POPUP COOKIE ===== */
.cookie-popup {
  position: fixed; inset: 0; z-index: 1900; display: none;
  align-items: center; justify-content: center; background: rgba(15,12,10,.55); padding: 20px;
}
.cookie-popup.show { display: flex; }
.cookie-box {
  background: #fffdf8; width: 100%; max-width: 440px; padding: 32px 30px 28px;
  border-radius: 12px; border: 2px solid var(--oro); box-shadow: 0 24px 60px rgba(0,0,0,.4);
  text-align: center;
}
.cookie-box h3 { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; color: var(--nero); margin-bottom: 10px; }
.cookie-box p { color: #5a5750; line-height: 1.6; font-size: 1rem; margin: 0 0 24px; }
.cookie-box a { color: var(--oro-scuro); text-decoration: underline; }
.cookie-actions { display: flex; gap: 12px; justify-content: center; align-items: center; }
.cookie-reject {
  background: none; border: 1px solid #d8cdb8; color: var(--grigio);
  padding: 11px 22px; font-size: .74rem; text-transform: uppercase; letter-spacing: 2px; cursor: pointer; transition: all .2s;
}
.cookie-reject:hover { border-color: var(--oro); color: var(--oro-scuro); }
.cookie-box .btn { padding: 11px 24px; }
@media (max-width: 480px) {
  .cookie-actions { flex-direction: column-reverse; }
  .cookie-actions .btn, .cookie-reject { width: 100%; }
}

/* ===== CONSENSO MAPPA ===== */
.map-consent {
  position: absolute; inset: 0; display: none; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px; text-align: center;
  background: #221b13; color: #e6dcc6; padding: 24px;
}
.map-consent.show { display: flex; }
.map-consent p { max-width: 320px; font-size: .95rem; line-height: 1.5; margin: 0; }

/* ===== RIGA SOCIAL + SELETTORE LINGUA: se non entra tutto su un rigo, si nasconde
   prima l'icona Threads, poi la X (la riga resta sempre su una sola linea). ===== */
@media (max-width: 413px) {
  .nav-socials > a:nth-child(5) { display: none; }   /* Threads */
}
@media (max-width: 367px) {
  .nav-socials > a:nth-child(4) { display: none; }   /* X */
}
