/* =====================================================================
   CUMADORO v3 – struttura ispirata a fonzone.it: titoli maiuscoli spaziati,
   sezioni piene blu / rosso / viola Uvadoro, foto e video a tutto schermo.
   Nessun grigio o beige: solo bianco + palette.
   ===================================================================== */
:root { --grey: #FFFFFF; --spaced: .16em; }

/* ---------- Titoli spaziati ---------- */
.t-spaced { text-transform: uppercase; letter-spacing: var(--spaced); font-weight: 700; line-height: 1.2; }
.t-xl { font-size: clamp(2rem, 5vw, 4.2rem); }
.t-lg { font-size: clamp(1.5rem, 3vw, 2.5rem); }
.t-md { font-size: clamp(1.15rem, 2vw, 1.6rem); }
.t-sub { display: block; text-transform: uppercase; letter-spacing: .28em; font-size: clamp(.72rem, 1vw, .86rem); font-weight: 600; margin-top: .9rem; opacity: .9; }
.hairline { width: 56px; height: 2px; background: var(--red); border: 0; margin: 1.4rem auto; }
.hairline--left { margin-left: 0; }
.on-dark .hairline, .section--navy .hairline, .section--magenta .hairline { background: #fff; }

/* le vecchie sezioni grigie diventano blu */
.section--grey { background: var(--navy); color: #fff; }
.section--grey .eyebrow, .section--grey .lead, .section--grey p, .section--grey .muted { color: #fff; }
.section--grey .display { color: #fff; }

/* ---------- Bottone squadrato stile Fonzone ---------- */
.btn-q { display: inline-block; padding: .95rem 2.2rem; border: 1.5px solid currentColor; text-transform: uppercase; letter-spacing: .22em; font-size: .78rem; font-weight: 700; transition: background .3s, color .3s; }
.btn-q:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn-q--solid { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-q--solid:hover { background: var(--red); border-color: var(--red); }
.btn-q--white { color: #fff; }
.btn-q--white:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* ---------- Hero video a tutto schermo ---------- */
.vhero { position: relative; height: 100svh; min-height: 560px; display: grid; place-items: center; text-align: center; color: #fff; overflow: hidden; background: var(--navy); isolation: isolate; }
.vhero__media { position: absolute; inset: 0; z-index: -2; }
.vhero__media video, .vhero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vhero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 42, 82, .45), rgba(0, 42, 82, .2) 45%, rgba(0, 42, 82, .6)); }
.vhero__content { padding: 0 var(--gutter); max-width: 1000px; animation: fadeUp 1.2s var(--ease) both; }
.vhero__content .t-xl { text-shadow: 0 2px 30px rgba(0, 0, 0, .35); }
.vhero__actions { margin-top: 2.2rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.vhero__scroll { position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .8); border-radius: 14px; }
.vhero__scroll::after { content: ""; position: absolute; top: 7px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: scrolldot 1.8s infinite; }
@keyframes scrolldot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
.vhero__audio { position: absolute; right: 1.2rem; bottom: 5rem; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .6); color: #fff; display: grid; place-items: center; background: rgba(0, 42, 82, .3); }

/* ---------- Hero pagina (foto, titolo centrato spaziato) ---------- */
.phero { position: relative; min-height: clamp(420px, 70vh, 720px); display: grid; place-items: center; text-align: center; color: #fff; overflow: hidden; background: var(--navy); isolation: isolate; padding: calc(var(--header-h) + 2rem) var(--gutter) 3rem; }
.phero__media { position: absolute; inset: 0; z-index: -2; }
.phero__media img { width: 100%; height: 100%; object-fit: cover; }
.phero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0, 42, 82, .5); }
.phero--magenta::after { background: rgba(110, 19, 67, .55); }
.phero--red::after { background: rgba(196, 22, 26, .55); }
.phero .breadcrumb { justify-content: center; }
.phero__box { position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 50%); background: var(--navy); color: #fff; padding: 1.5rem 3rem; font-size: clamp(1rem, 1.6vw, 1.3rem); font-weight: 500; white-space: nowrap; z-index: 2; }
@media (max-width: 640px) { .phero__box { white-space: normal; width: calc(100% - 2 * var(--gutter)); padding: 1.1rem 1.4rem; } }
.phero + .intro-box { padding-top: clamp(5rem, 9vw, 7rem); }

/* ---------- Intro centrata su bianco ---------- */
.intro-c { text-align: center; }
.intro-c .container--narrow > p { font-size: 1.05rem; color: #2B3040; }
.intro-c .t-lg { color: var(--navy); }

/* ---------- Trittico foto con etichette ---------- */
.trittico { display: grid; grid-template-columns: repeat(3, 1fr); }
.trittico a { position: relative; aspect-ratio: 4 / 5; overflow: hidden; display: grid; place-items: center; color: #fff; isolation: isolate; }
.trittico img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.trittico a::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0, 42, 82, .35); transition: background .5s; }
.trittico a:nth-child(2)::after { background: rgba(196, 22, 26, .35); }
.trittico a:nth-child(3)::after { background: rgba(110, 19, 67, .4); }
.trittico a:hover img { transform: scale(1.06); }
.trittico a:hover::after { background: rgba(0, 42, 82, .6); }
.trittico a:nth-child(2):hover::after { background: rgba(196, 22, 26, .65); }
.trittico a:nth-child(3):hover::after { background: rgba(110, 19, 67, .7); }
.trittico__label { text-align: center; padding: 0 1rem; }
.trittico__label .t-md { text-shadow: 0 2px 20px rgba(0, 0, 0, .4); }
.trittico__label small { display: block; margin-top: .8rem; font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s; }
.trittico a:hover small { opacity: 1; transform: none; }
@media (max-width: 760px) { .trittico { grid-template-columns: 1fr; } .trittico a { aspect-ratio: 16 / 10; } .trittico__label small { opacity: 1; transform: none; } }

/* ---------- Blocco con box sovrapposto su foto scurita ---------- */
.overlap { position: relative; padding-block: clamp(4rem, 9vw, 8rem); color: #fff; overflow: hidden; isolation: isolate; }
.overlap__bg { position: absolute; inset: 0; z-index: -2; }
.overlap__bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35); }
.overlap::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0, 42, 82, .86); }
.overlap--red::after { background: rgba(196, 22, 26, .88); }
.overlap--magenta::after { background: rgba(110, 19, 67, .9); }
.overlap__grid { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; }
.overlap__foto { aspect-ratio: 4 / 3; overflow: hidden; }
.overlap__foto img { width: 100%; height: 100%; object-fit: cover; }
.overlap__box { background: #fff; color: var(--ink); padding: clamp(1.8rem, 4vw, 3.2rem); margin-left: -4rem; position: relative; z-index: 2; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5); }
.overlap__box .t-lg { color: var(--navy); margin-bottom: 1rem; }
.overlap__box p { color: #2B3040; }
.overlap--flip .overlap__grid { grid-template-columns: 1fr 1.15fr; }
.overlap--flip .overlap__foto { order: 2; }
.overlap--flip .overlap__box { margin-left: 0; margin-right: -4rem; }
@media (max-width: 900px) {
  .overlap__grid, .overlap--flip .overlap__grid { grid-template-columns: 1fr; }
  .overlap--flip .overlap__foto { order: 0; }
  .overlap__box, .overlap--flip .overlap__box { margin: -3rem 1rem 0; }
}
.overlap__titolo { text-align: center; margin-bottom: clamp(2rem, 5vw, 3.5rem); }

/* ---------- Citazione su colore ---------- */
.quote-band { padding-block: clamp(3.5rem, 7vw, 5.5rem); text-align: center; background: var(--navy); color: #fff; }
.quote-band--red { background: var(--red); }
.quote-band--magenta { background: var(--magenta); }
.quote-band blockquote { margin: 0 auto; max-width: 900px; text-transform: uppercase; letter-spacing: .12em; font-style: italic; font-weight: 600; font-size: clamp(.95rem, 1.6vw, 1.2rem); line-height: 1.9; }
.quote-band cite { display: block; margin-top: 1.2rem; font-style: normal; text-transform: uppercase; letter-spacing: .22em; font-size: .74rem; opacity: .85; }

/* ---------- Sezione video ---------- */
.video-sec { background: var(--navy); color: #fff; padding-block: clamp(4rem, 8vw, 6.5rem); text-align: center; }
.video-sec .t-sub { margin-bottom: 2rem; }
.video-box { position: relative; max-width: 1100px; margin: 0 auto; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.video-box video { width: 100%; height: 100%; display: block; object-fit: cover; }
.video-box__play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 42, 82, .35); transition: background .3s; }
.video-box__play:hover { background: rgba(196, 22, 26, .35); }
.video-box__play span { width: 86px; height: 86px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.video-box__play svg { width: 34px; height: 34px; margin-left: 5px; }
.video-box.is-playing .video-box__play { display: none; }

/* ---------- Prima / dopo ---------- */
.ba { position: relative; aspect-ratio: 16 / 9; overflow: hidden; user-select: none; -webkit-user-select: none; touch-action: pan-y; --pos: 50%; background: var(--navy); }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba__dopo { clip-path: inset(0 0 0 var(--pos)); }
.ba__linea { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: #fff; transform: translateX(-1px); pointer-events: none; }
.ba__maniglia { position: absolute; top: 50%; left: var(--pos); width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--navy); transform: translate(-50%, -50%); display: grid; place-items: center; font-weight: 800; box-shadow: 0 6px 20px rgba(0, 0, 0, .35); pointer-events: none; }
.ba__tag { position: absolute; top: 1rem; padding: .45rem .9rem; background: var(--navy); color: #fff; text-transform: uppercase; letter-spacing: .2em; font-size: .7rem; font-weight: 700; }
.ba__tag--prima { left: 1rem; }
.ba__tag--dopo { right: 1rem; background: var(--red); }
.ba input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-didascalia { text-align: center; font-size: .88rem; margin-top: 1rem; opacity: .85; }

/* ---------- Prodotti su blu ---------- */
.prod-band { background: var(--navy); color: #fff; padding-block: clamp(4rem, 8vw, 6.5rem); }
.prod-band .card-prodotto { border-color: transparent; }
.prod-band__head { text-align: center; margin-bottom: clamp(2rem, 5vw, 3rem); }
.prod-band__head p { max-width: 640px; margin: 1rem auto 0; opacity: .9; }
.prod-band .prodotti-scroll { padding-bottom: 1.5rem; }
.prod-band__actions { text-align: center; margin-top: 1.5rem; }

/* ---------- Banda Uvadoro su vigneto ---------- */
.uva-band { position: relative; color: #fff; padding-block: clamp(4.5rem, 9vw, 7rem); overflow: hidden; isolation: isolate; text-align: center; }
.uva-band__bg { position: absolute; inset: 0; z-index: -2; }
.uva-band__bg img { width: 100%; height: 100%; object-fit: cover; }
.uva-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(110, 19, 67, .78); }
.uva-band__logo { width: 150px; margin: 0 auto 1.6rem; }
.uva-band p { max-width: 640px; margin: 1.2rem auto 2.2rem; opacity: .95; }
.uva-band__bottiglie { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; max-width: 820px; margin: 0 auto 2.4rem; }
.uva-band__bottiglie a { display: block; background: #fff; aspect-ratio: 3 / 4; overflow: hidden; transition: transform .4s var(--ease); }
.uva-band__bottiglie a:hover { transform: translateY(-6px); }
.uva-band__bottiglie img { width: 100%; height: 100%; object-fit: cover; }
.uva-band__bottiglie span { display: block; margin-top: .6rem; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.uva-band__bottiglie li { list-style: none; }
@media (max-width: 640px) { .uva-band__bottiglie { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Banda cataloghi rossa ---------- */
.cat-band { background: var(--red); color: #fff; padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.cat-band__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 900px) { .cat-band__grid { grid-template-columns: 1fr; } }
.cat-band__lista { display: grid; gap: .8rem; }
.cat-band__lista a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.4rem; border: 1.5px solid rgba(255, 255, 255, .7); text-transform: uppercase; letter-spacing: .16em; font-size: .8rem; font-weight: 700; transition: background .3s, color .3s; }
.cat-band__lista a:hover { background: #fff; color: var(--red); }
.cat-band__lista a::after { content: "↓"; font-size: 1.1rem; }
.cat-band__lista a.is-link::after { content: "→"; }

/* ---------- Social wall v3 ---------- */
.social-wall { background: #fff; }
.social-wall__titolo { text-transform: uppercase; letter-spacing: var(--spaced); color: var(--navy); }
.social-wall__tile video { width: 100%; height: 100%; object-fit: cover; display: block; }
.social-wall__badge { display: inline-flex; align-items: center; gap: .3rem; }

/* ---------- Pagina prodotti: separatori e categorie ---------- */
.cat-sep { position: relative; height: clamp(240px, 40vh, 420px); display: grid; place-items: center; color: #fff; text-align: center; overflow: hidden; isolation: isolate; }
.cat-sep img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cat-sep::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0, 42, 82, .55); }
.cat-sep--red::after { background: rgba(196, 22, 26, .6); }
.cat-sep--magenta::after { background: rgba(110, 19, 67, .65); }
.cat-head { text-align: center; margin-bottom: 2.2rem; }
.cat-head .t-lg { color: var(--navy); }
.cat-head p { color: var(--muted); max-width: 560px; margin: .8rem auto 0; }
.section--magenta .cat-head .t-lg, .section--magenta .cat-head p { color: #fff; }
.section--navy .cat-head .t-lg, .section--navy .cat-head p { color: #fff; }

/* ---------- Schede e card su fondo bianco puro ---------- */
.card-prodotto__media, .scheda__stage, .scheda__thumbs button { background: #fff; }
.card-prodotto { border-color: #E3E3E3; }
.download { background: #fff; }
.download__icon { background: #FDECEC; }
.empty { background: #F2F6FA; }

/* ---------- Header trasparente sopra il video ---------- */
.page-home .site-header:not(.is-scrolled) { background: linear-gradient(180deg, rgba(0, 42, 82, .5), transparent); }
.site-nav__item > a { text-transform: uppercase; letter-spacing: .12em; font-size: .76rem; }
@media (max-width: 1120px) { .site-nav__item > a { text-transform: none; letter-spacing: -.01em; font-size: clamp(1.4rem, 6vw, 2rem); } }
.site-footer h3 { letter-spacing: .2em; }

/* fix: bottoni dentro paragrafi e box dell'hero non tagliato */
p a.btn-q, .prose a.btn-q { text-decoration: none; color: inherit; }
p a.btn-q--solid { color: #fff; }
.phero { overflow: visible; }
.phero__media { overflow: hidden; }
.phero__box { box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .4); }

.scheda__thumbs { grid-template-columns: repeat(4, 1fr); }
.mosaico { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.mosaico img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
@media (max-width: 760px) { .mosaico { grid-template-columns: repeat(2, 1fr); } }

/* carosello prodotti: autoplay infinito, trascinabile, swipe */
.carosello { position: relative; overflow: hidden; padding: .5rem 0 1.5rem; cursor: grab; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.carosello.is-dragging { cursor: grabbing; }
.carosello.is-dragging .card-prodotto { pointer-events: none; }
.carosello__track { display: flex; gap: 1.2rem; width: max-content; will-change: transform; }
.carosello__item { flex: none; width: 300px; }
.carosello__item img { pointer-events: none; -webkit-user-drag: none; }
@media (max-width: 640px) { .carosello__item { width: 250px; } }

/* ---------- Catalogo sfogliabile: mobile ---------- */
@media (max-width: 760px) {
  .flip__pages { height: calc(100svh - var(--header-h)); }
  .flip__page { display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; gap: .9rem; overflow-y: auto; overflow-x: hidden; padding: 1rem var(--gutter) 6.5rem; text-align: left; }
  .flip__page--cover, .flip__page--fine { justify-content: center; text-align: center; }
  .flip__page .img-frame { flex: none; width: 100%; height: 34svh; max-height: none; aspect-ratio: auto; background: #fff; border-radius: 10px; }
  .flip__page .img-frame img { object-fit: contain; }
  .flip__page--intro .img-frame img, .flip__page--uvadoro:not(:has(.pills)) .img-frame img { object-fit: cover; }
  .flip__page .eyebrow { margin: 0; }
  .flip__page .display { font-size: clamp(1.4rem, 6vw, 1.9rem); line-height: 1.15; margin: 0; }
  .flip__page p { font-size: .95rem; line-height: 1.55; margin: 0; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
  .flip__page .pills { gap: .35rem; }
  .flip__page .pills li { font-size: .78rem; padding: .3rem .7rem; }
  .flip__page .mt-2 { margin-top: .4rem; }
  .flip__num { bottom: 1.7rem; right: var(--gutter); }
  .flip__nav { position: fixed; bottom: 1rem; }
  .flip__nav button { width: 44px; height: 44px; background: rgba(0, 42, 82, .85); }
  body.page-flip .whatsapp-fab, body.page-flip .cgb-reopen { display: none; }
}

/* menu mobile: le voci con sottomenu mostrano il numero, non la freccina desktop */
@media (max-width: 1120px) {
  .site-nav__item.has-sub > a::before { content: counter(nav, decimal-leading-zero); width: auto; height: auto; border: 0; transform: none; order: 0; margin: 0; opacity: .85; font-size: .72rem; letter-spacing: .1em; font-weight: 600; color: rgba(255, 255, 255, .6); min-width: 1.8em; }
}

/* ---------- Correzioni dalla revisione visiva ---------- */
.flip__page--cover .lead, .flip__page--fine .lead, .flip__page--cover p, .flip__page--fine p { color: #fff; opacity: 1; }
@media (max-width: 760px) { .flip__nav { position: absolute; bottom: 1rem; } }
.griglia-prodotti { grid-template-columns: repeat(auto-fit, minmax(240px, 280px)); justify-content: center; }
.page-hero { text-align: center; }
.page-hero__shade { background: rgba(0, 42, 82, .58); }
.page-hero__content { width: 100%; }
.page-hero__content .display { text-transform: uppercase; letter-spacing: .16em; font-size: clamp(1.7rem, 4.4vw, 3.6rem); max-width: none; margin-inline: auto; }
.page-hero__content .lead { margin-inline: auto; }
.page-hero .breadcrumb { justify-content: center; }
.social-wall__titolo { font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 700; }
.empty { background: #fff; border: 1.5px solid var(--navy); color: var(--navy); }
.filtri { justify-content: center; }
.site-footer__grid { padding-left: 0; }
@media (max-width: 640px) { .site-footer { padding-bottom: 6rem; } }
.griglia-post { grid-template-columns: repeat(auto-fit, minmax(270px, 340px)); justify-content: center; }
.categoria-head { justify-content: center; text-align: center; }
.categoria-head .display { text-transform: uppercase; letter-spacing: .14em; font-size: clamp(1.3rem, 2.4vw, 2rem); color: var(--navy); }
.categoria-head .display em { color: inherit; }
.section-head .display { text-transform: uppercase; letter-spacing: .12em; color: var(--navy); }
.site-header:not(.is-scrolled):not(.theme-light) { background: linear-gradient(180deg, rgba(0, 42, 82, .55), transparent); }
