/* ТУБИ: sezioni (07/11/2026). Ogni sezione segue uno schema della direzione «L'oggetto, grande»,
   nessuna vicina ha la stessa composizione. Niente righe né riquadri a contorno: i gruppi si separano
   con lo spazio e con un passo di tono. I pattern bianchi (righe, pois, onde dei tubi) stanno solo
   in zone senza testo. */

.sec { padding-block: var(--sec); }
.sec h2 { font-size: var(--t-2); }
.lead, .maket__lead { font-size: var(--t-3); line-height: 1.4; }

/* pattern bianchi come piastrelle SVG (non gradienti) */
.pat-stripes { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cpath d='M-8 8L8-8M0 32L32 0M24 40L40 24' stroke='%23fff' stroke-opacity='.6' stroke-width='10'/%3E%3C/svg%3E"); }
.pat-dots { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26'%3E%3Ccircle cx='7' cy='7' r='3.5' fill='%23fff' fill-opacity='.75'/%3E%3Ccircle cx='20' cy='20' r='3.5' fill='%23fff' fill-opacity='.75'/%3E%3C/svg%3E"); }

/* ---------- testata: sul campo dell'hero, senza barra ---------- */
.head { position: relative; z-index: 3; display: flex; align-items: center; gap: 2rem; min-height: var(--head-h); }
.logo { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.logo span { font-family: var(--f-display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.04em; line-height: 1; }
.nav { display: flex; gap: 1.75rem; margin-left: auto; }
.nav a { font-weight: 500; padding-block: 0.5rem; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 0.35em; transition: text-decoration-color var(--dur) var(--ease); }
.nav a:hover { text-decoration-color: currentColor; }
.head__cta { min-height: 2.75rem; padding-inline: 1.25rem; }
.menu-btn { display: none; margin-left: auto; min-height: var(--tap); padding: 0 1.25rem; border: 0; border-radius: var(--pill); background: var(--ink); color: var(--bg); font-weight: 600; cursor: pointer; }
.sheet { position: fixed; inset: 0; z-index: 60; display: grid; align-content: start; gap: 1.5rem; padding: 5.5rem var(--margin) 2rem; background: var(--sky); }
.sheet nav { display: grid; }
.sheet nav a { padding-block: 0.75rem; font-family: var(--f-display); font-weight: 700; font-size: var(--t-3); text-decoration: none; }
.sheet__phone { font-weight: 600; font-size: var(--t-3); }

/* ---------- hero: un solo campo azzurro. Dietro il tubo un disco a righe bianche (il tubo visto
   dall'alto, come il marchio): una figura sul fondo, non un secondo riquadro. --tube-x è la posizione
   del tubo nel palco, la legge anche hero.js per puntare la camera. ---------- */
.hero { position: relative; display: grid; grid-template-rows: auto 1fr; min-height: clamp(40rem, 100svh, 56rem); background: var(--sky); isolation: isolate; overflow: hidden; --tube-x: 0.45; }
.hero__grid { align-items: center; padding-block: 2rem 5rem; }
.hero__text { grid-column: 1 / span 7; display: grid; gap: 2rem; justify-items: start; position: relative; z-index: 2; }
.hero h1 { font-size: var(--t-1); }
.hero__lead { font-size: var(--t-3); line-height: 1.4; max-width: 35ch; margin-top: -0.5rem; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; }
.hero__stage { position: absolute; z-index: 1; top: var(--head-h); right: 0; bottom: 0; width: 50%; margin: 0; container-type: size; }
.hero__disc { position: absolute; z-index: -1; left: calc(var(--tube-x) * 100%); top: 50%; width: min(80cqh, 94cqw); aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); }
.hero__disc { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M-10 10L10-10M0 40L40 0M30 50L50 30' stroke='%23fff' stroke-opacity='.7' stroke-width='12'/%3E%3C/svg%3E"); }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__caption { position: absolute; z-index: 1; left: 0; right: 0; bottom: 1.5rem; display: flex; justify-content: center; flex-wrap: wrap; gap: 0.25rem 0.625rem; padding-inline: 1rem; font-size: var(--t-5); font-weight: 500; color: var(--muted); }
.hero__caption span { transition: color 300ms var(--ease); }
.hero__caption .is-here { color: var(--ink); }
.hero__caption i { font-style: normal; color: var(--muted); }

/* ---------- costruzioni: indice di nomi, anteprima fissa ---------- */
.idx .grid { row-gap: 3rem; align-items: start; }
.idx__head { grid-column: 1 / span 7; display: grid; gap: 1rem; }
.idx__list { grid-column: 1 / span 7; display: grid; }
.idx__item { display: flex; align-items: center; gap: 1rem; width: 100%; padding: 0.5rem 0; border: 0; background: none; text-align: left; cursor: pointer; font-family: var(--f-display); font-weight: 600; font-size: var(--t-2); line-height: 1.1; letter-spacing: -0.03em; color: var(--idle); transition: color var(--dur) var(--ease); }
.idx__item:hover, .idx__item:focus-visible, .idx__item.is-here { color: var(--ink); }
.idx__item img { display: none; }
.idx__preview { grid-column: 8 / span 5; grid-row: 1 / span 2; position: sticky; top: 8vh; display: grid; gap: 1rem; }
.idx__frame { aspect-ratio: 1; border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.idx__frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); transition: opacity 240ms var(--ease); }
.idx__preview figcaption { min-height: 3.2em; }

/* ---------- coperchi: una cornice rotonda, il contenuto cambia ---------- */
.lids { position: relative; background: var(--mint); }
.lids .grid { align-items: center; row-gap: 2rem; }
.lids__head { grid-column: 1 / span 4; display: grid; gap: 1rem; align-self: start; }
.lids__stage { grid-column: 5 / span 4; display: grid; justify-items: center; gap: 1.25rem; }
/* la cornice è un disco a pois bianchi: la crispa (PNG trasparente) ci sta sopra */
.lids__frame { position: relative; width: 100%; aspect-ratio: 1; border: 0; padding: 0; border-radius: 50%; overflow: hidden; cursor: pointer; }
.lids__frame { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26'%3E%3Ccircle cx='7' cy='7' r='3.5' fill='%23fff' fill-opacity='.85'/%3E%3Ccircle cx='20' cy='20' r='3.5' fill='%23fff' fill-opacity='.85'/%3E%3C/svg%3E"); }
.lids__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); opacity: 0; transition: opacity 200ms var(--ease); } /* cambio rapido: mai due coperchi sovrapposti */
.lids__frame img.is-here { opacity: 1; }
.lids__stage figcaption { font-size: var(--t-4); font-weight: 500; text-align: center; min-height: 3.2em; max-width: 30ch; }
.lids__names { grid-column: 10 / span 3; display: grid; gap: 0.25rem; align-self: center; }
.lids__names button { display: block; width: 100%; padding: 0.375rem 0; border: 0; background: none; text-align: left; cursor: pointer; font-family: var(--f-display); font-weight: 600; font-size: var(--t-3); color: var(--idle-mint); transition: color var(--dur) var(--ease); }
.lids__names button:hover, .lids__names button.is-here { color: var(--ink); }

/* ---------- finiture: quattro dettagli, quattro tagli ---------- */
.fin .grid { align-items: end; row-gap: 3rem; }
.fin__head { grid-column: 1 / span 6; display: grid; gap: 1rem; }
.fin figure { display: grid; gap: 0.75rem; }
.fin img { width: 100%; object-fit: cover; border-radius: var(--radius); }
.fin figcaption { font-weight: 500; }
.fin__a { grid-column: 1 / span 3; } .fin__a img { aspect-ratio: 4 / 5; }
.fin__b { grid-column: 4 / span 4; } .fin__b img { aspect-ratio: 1; }
.fin__c { grid-column: 8 / span 2; } .fin__c img { aspect-ratio: 3 / 4; }
.fin__d { grid-column: 10 / span 3; } .fin__d img { aspect-ratio: 4 / 3; }

/* ---------- preset: listino con miniature ---------- */
.menu { background: var(--pink); }
/* titolo a sinistra, due colonne di listino a destra, tutto su una riga */
.menu .grid { row-gap: 3.5rem; align-items: start; }
.menu__head { grid-column: 1 / span 4; display: grid; gap: 1rem; align-content: start; }
.menu__col { grid-column: span 4; display: grid; gap: 0.5rem; align-content: start; }
.menu__cat { margin-bottom: 1rem; }
.menu__item { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); align-items: center; gap: 1rem; width: 100%; padding: 0.5rem 1rem 0.5rem 0.5rem; border: 0; border-radius: 16px; background: none; text-align: left; cursor: pointer; transition: background-color var(--dur) var(--ease); }
.menu__item:hover, .menu__item:focus-visible { background: rgb(255 255 255 / 0.7); }
.menu__item img { width: 4.5rem; height: 4.5rem; object-fit: contain; }
.menu__name { display: block; font-family: var(--f-display); font-weight: 600; font-size: var(--t-3); line-height: 1.2; }
.menu__meta { display: block; color: var(--muted); }

/* ---------- макет: il disegno quotato ---------- */
.maket .grid { row-gap: 3rem; align-items: start; }
.maket__head { grid-column: 1 / span 5; display: grid; gap: 1.5rem; justify-items: start; }
.maket__fig { grid-column: 6 / span 7; grid-row: 1 / span 2; padding: clamp(1rem, 3vw, 3rem); border-radius: var(--radius); background: var(--surface); }
.maket__fig svg { width: 100%; height: auto; display: block; }
.fig-t { font-family: var(--f-text); font-size: 15px; fill: var(--ink); }
.fig-big { font-family: var(--f-display); font-weight: 700; font-size: 34px; fill: var(--ink); letter-spacing: -0.02em; }
.maket__rules { grid-column: 1 / span 5; display: grid; }
.maket__rules div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1rem; padding: 0.875rem 1rem; border-radius: 12px; }
.maket__rules div:nth-child(odd) { background: var(--surface); }
.maket__rules dt { font-weight: 600; }

/* ---------- prezzi: lo scontrino ---------- */
.price { position: relative; background: var(--sun); isolation: isolate; overflow: hidden; }
/* disco a righe dietro lo scontrino, tagliato dal bordo destro */
.price__disc { position: absolute; z-index: -1; left: -10rem; bottom: -18rem; width: min(52rem, 64vw); aspect-ratio: 1; border-radius: 50%; }
.price__disc { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M-10 10L10-10M0 40L40 0M30 50L50 30' stroke='%23fff' stroke-opacity='.6' stroke-width='12'/%3E%3C/svg%3E"); }
.price .grid { align-items: start; }
.price__text { grid-column: 1 / span 6; display: grid; gap: 1.75rem; justify-items: start; }
.slip { grid-column: 8 / span 4; display: grid; gap: 1rem; margin-top: calc(-1 * var(--sec)); padding: calc(var(--sec) + 1.75rem) 1.75rem 3.5rem; background: var(--bg); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), 95% 100%, 90% calc(100% - 14px), 85% 100%, 80% calc(100% - 14px), 75% 100%, 70% calc(100% - 14px), 65% 100%, 60% calc(100% - 14px), 55% 100%, 50% calc(100% - 14px), 45% 100%, 40% calc(100% - 14px), 35% 100%, 30% calc(100% - 14px), 25% 100%, 20% calc(100% - 14px), 15% 100%, 10% calc(100% - 14px), 5% 100%, 0 calc(100% - 14px)); }
.slip h3 { text-align: center; }
.slip__spec { text-align: center; color: var(--muted); margin-inline: auto; }
/* le righe sono anche il selettore della tiratura */
.slip__rows { display: grid; gap: 0.25rem; margin-top: 0.5rem; }
.slip__rows button { display: flex; justify-content: space-between; align-items: center; gap: 1rem; width: 100%; padding: 0.5rem 0.625rem; border: 0; border-radius: 10px; background: none; font: inherit; text-align: left; cursor: pointer; transition: background-color var(--dur) var(--ease); }
.slip__rows button:hover { background: var(--hover); }
.slip__rows button[aria-pressed="true"] { background: var(--sun); font-weight: 600; }
.slip__rows small { display: block; font-size: var(--t-5); font-weight: 400; color: var(--muted); }
.slip__total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: 0.5rem; padding-top: 1rem; border-top: 4px solid var(--ink); max-width: none; } /* taste-skill-ignore: barra spessa dello scontrino */
.slip__total b { flex: none; white-space: nowrap; font-family: var(--f-display); font-size: var(--t-2); letter-spacing: -0.03em; }
.slip__note { font-size: var(--t-5); color: var(--muted); }

/* ---------- Synergy: pannello scuro, foto rotonda ---------- */
.about { padding-block: var(--sec) 0; }
/* titolo e foto rotonda a sinistra, testi a destra con la firma Synergy in fondo: nessun angolo vuoto */
.about__panel { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto 1fr; gap: 3rem var(--gap); margin-inline: var(--margin); padding: clamp(2rem, 4vw, 3.5rem); border-radius: var(--radius); background: var(--night); color: var(--night-ink); overflow: hidden; }
.about__panel h2 { grid-column: 1 / span 6; grid-row: 1; }
.about__blocks { grid-column: 8 / span 5; grid-row: 1 / span 2; display: flex; flex-direction: column; gap: 2.5rem; align-items: start; max-width: 26rem; }
.about__sign { display: grid; gap: 0.75rem; margin-top: auto; color: var(--night-ink); text-decoration: none; }
.about__sign img { width: 10rem; height: auto; }
.about__sign span { text-decoration: underline; text-underline-offset: 0.3em; }
.about__blocks h3 { margin-bottom: 0.75rem; }
.about__blocks p { color: var(--night-muted); }
.about__blocks .link { color: var(--night-ink); }
.about__photo { grid-column: 1 / span 5; grid-row: 2; width: 100%; max-width: 30rem; aspect-ratio: 1; margin: 0; border-radius: 50%; overflow: hidden; background: #2b2724; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }

/* ---------- domande: titolo largo, domande rientrate ---------- */
/* titolo fermo a sinistra, domande a destra sulla stessa riga */
.faq .grid { row-gap: 2.5rem; align-items: start; }
.faq__head { grid-column: 1 / span 4; display: grid; gap: 1rem; position: sticky; top: 2rem; }
.faq__head a { font-weight: 600; white-space: nowrap; }
.faq__list { grid-column: 5 / span 8; display: grid; gap: 0.75rem; }
.faq__list details { border-radius: 16px; transition: background-color var(--dur) var(--ease); }
.faq__list details[open] { background: var(--surface); }
.faq__list summary { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1rem 1.5rem; font-size: var(--t-3); line-height: 1.3; cursor: pointer; list-style: none; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: ""; flex: none; width: 0.75rem; height: 0.75rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-3px, -3px); transition: transform var(--dur) var(--ease); }
.faq__list details[open] summary::after { transform: rotate(-135deg); }
.faq__list p { padding: 0 1.5rem 1.5rem; max-width: 48ch; }

/* ---------- contatti: scheda sul render ---------- */
.contact { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 24rem; align-items: center; gap: var(--gap); padding: clamp(3rem, 6vw, 6rem) var(--margin); background: var(--peach); overflow: hidden; }
.contact__img { width: 128%; max-width: none; margin-left: -14%; } /* il render ha margini trasparenti: si taglia per avere i tubi grandi */
.contact__card { display: grid; gap: 1rem; padding: 2rem; border-radius: var(--radius); background: var(--bg); }
.contact__card h2 { font-size: var(--t-3); }
.contact__hours div { display: flex; justify-content: space-between; gap: 1rem; }
.contact__hours dt { color: var(--muted); }
.contact__card a:not(.btn) { font-weight: 600; text-decoration: none; }

/* ---------- piede: invito a sinistra, sezioni a destra, recapiti sotto. Nessuna riga, nessuna foto ---------- */
.foot { padding-block: clamp(4rem, 3rem + 4vw, 7rem) 2rem; background: var(--night); color: var(--night-ink); }
.foot__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: clamp(3rem, 2rem + 3vw, 5rem); align-items: start; }
.foot__call { grid-column: 1 / span 6; display: grid; gap: 1.5rem; justify-items: start; }
.logo--night span { color: var(--night-ink); }
.foot__title { font-size: var(--t-2); max-width: 14ch; }
.foot__lead { color: var(--night-muted); max-width: 40ch; }
.foot__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; }
.foot__phone { font-weight: 600; color: var(--night-ink); text-decoration: none; }
.foot__phone:hover { color: var(--sun); }
.foot__nav { grid-column: 8 / span 5; display: grid; grid-template-columns: repeat(auto-fit, minmax(max(10rem, 45%), 1fr)); gap: 0.75rem 1.5rem; align-content: start; }
.foot__nav a { font-family: var(--f-display); font-weight: 600; font-size: var(--t-4); color: var(--night-ink); text-decoration: none; transition: color var(--dur) var(--ease); justify-self: start; padding-block: 0.25rem; }
.foot__nav a:hover { color: var(--sun); }
.foot__blocks { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem var(--gap); }
.foot__blocks p { color: var(--night-muted); }
.foot__blocks a { color: var(--night-ink); }
.foot__h { color: var(--night-ink) !important; font-weight: 600; margin-bottom: 0.5rem; }
.foot__synergy { display: inline-block; margin-bottom: 0.5rem; }
.foot__synergy img { width: 8.5rem; }
.foot__legal { grid-column: 1 / -1; font-size: var(--t-5); color: var(--night-muted); max-width: none; }

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .nav { display: none; }
  .head__cta { margin-left: auto; }
  /* indice: senza mouse l'anteprima fissa non serve, ogni nome porta la sua miniatura */
  .idx__head, .idx__list { grid-column: 1 / -1; }
  .idx__list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); }
  .idx__preview { display: none; }
  .idx__item { font-size: var(--t-3); gap: 1rem; color: var(--ink); padding: 0.375rem 0; }
  .idx__item img { display: block; flex: none; width: 4.5rem; height: 4.5rem; object-fit: contain; border-radius: 12px; background: var(--surface); }
  .maket__head, .maket__fig, .maket__rules { grid-column: 1 / -1; }
  .maket__fig { grid-row: auto; }
  .hero__caption span:not(.is-here), .hero__caption i { display: none; }
  .menu__head { grid-column: 1 / -1; }
  .menu__col { grid-column: span 6; }
  .lids__head { grid-column: 1 / span 12; }
  .lids__stage { grid-column: 1 / span 7; }
  .lids__names { grid-column: 8 / span 5; }
  .fin__a { grid-column: 1 / span 6; } .fin__b { grid-column: 7 / span 6; } .fin__c { grid-column: 1 / span 5; } .fin__d { grid-column: 6 / span 7; }
  .slip { grid-column: 7 / span 6; }
  .about__blocks { grid-column: 7 / span 6; }
  .faq__head { grid-column: 1 / -1; position: static; }
  .faq__list { grid-column: 1 / -1; }
  .contact { grid-template-columns: minmax(0, 1fr) 20rem; }
}

/* ---------- hero impilato: testo, poi il palco col tubo al centro ---------- */
@media (max-width: 900px) {
  .hero { min-height: 0; grid-template-rows: auto auto auto; --tube-x: 0.5; }
  .hero__grid { padding-block: 1.5rem 0; }
  .hero__text { grid-column: 1 / -1; gap: 1.25rem; }
  .hero__lead { margin-top: 0; }
  .hero__stage { position: relative; top: auto; width: 100%; height: clamp(26rem, 62svh, 42rem); }
}

/* ---------- telefono: una composizione sua ---------- */
@media (max-width: 760px) {
  .head { gap: 1rem; }
  .head__cta { display: none; }
  .menu-btn { display: inline-flex; align-items: center; }
  .hero__caption { bottom: 1rem; }
  .menu__head, .menu__col, .price__text, .faq__list, .fin__head { grid-column: 1 / -1; }
  .idx__list { grid-template-columns: minmax(0, 1fr); }
  .idx__item { gap: 0.75rem; }
  .idx__item img { width: 4rem; height: 4rem; }
  .lids__head, .lids__stage, .lids__names { grid-column: 1 / -1; }
  .lids__stage { padding-inline: 8vw; }
  .lids__names { grid-template-columns: 1fr 1fr; }
  .fin__a, .fin__b, .fin__c, .fin__d { grid-column: span 6; }
  .price__disc { right: -45vw; bottom: -20vw; width: 140vw; }
  .slip { grid-column: 2 / span 10; margin-top: 3rem; padding-top: 2rem; }
  .about { padding-top: var(--sec); }
  .about__panel { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: 2rem; padding: 2rem 1.25rem; }
  .about__panel h2, .about__blocks, .about__photo { grid-column: 1; grid-row: auto; }
  .about__photo { max-width: none; }
  .faq__head { grid-column: 1 / -1; position: static; }
  .faq__list summary { font-size: var(--t-4); font-weight: 500; padding: 0.875rem 1rem; }
  .faq__list p { padding: 0 1rem 1.25rem; }
  .faq__list details[open] { margin-inline: calc(-1 * var(--margin)); border-radius: 0; padding-inline: calc(var(--margin) - 1rem); }
  .contact { display: block; padding: 2rem 0 var(--margin); }
  .contact__img { width: 150%; max-width: none; margin-left: -25%; }
  .contact__card { position: relative; margin: -4rem var(--margin) 0; }
  .foot__call, .foot__nav { grid-column: 1 / -1; }
  .foot__blocks { grid-template-columns: minmax(0, 1fr); }
}

/* pagine semplici (politica sulla privacy, 404): testata sul campo azzurro, testo su bianco */
.page-head { background: var(--sky); }
.page-body { display: grid; gap: 2rem; padding-block: clamp(3rem, 2rem + 4vw, 6rem); }
.page-body h1 { font-size: var(--t-2); }
.page-body__text { display: grid; gap: 1rem; max-width: var(--measure); }
.page-body__text h2 { font-size: var(--t-3); margin-top: 1rem; }
