/* Pagina Nadalin. Regole di taste-skill 2.1.4: niente linee sottili, ombre, etichette; due caratteri
   (League Gothic per i titoli, quello di sistema per il resto); cinque misure; angoli dritti.
   Colori del listino e del reel Scapin: crema di base, scuro con [nadalin colori="scuro"]. */
@font-face { font-family: 'SND League Gothic'; src: url(league-gothic.woff2) format('woff2'); font-display: swap; }

.snd {
	container: snd / inline-size;
	--fondo: #141413;
	--superficie: #1F1D1B;
	--testo: #F2EADB;
	--tenue: #B9AF9F;
	--terracotta: #9D4B37;          /* pulsanti: testo bianco 6,0:1 */
	--terracotta-luce: #E3906F;     /* prezzi e link sul fondo scuro: 7,1:1 */
	--bordo-campi: #6A635B;
	--errore: #FF9B8A;
	--logo: brightness(0) invert(.93);
	--titoli: 'SND League Gothic', 'League Gothic', Impact, sans-serif;
	--testo-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	/* le cinque misure */
	--m-display: clamp(64px, 9cqi, 120px);
	--m-titolo: clamp(44px, 6cqi, 72px);
	--m-lead: 22px;
	--m-corpo: 18px;
	--m-piccolo: 14px;
	background: var(--fondo);
	color: var(--testo);
	font: var(--m-corpo)/1.55 var(--testo-font);
	/* a tutta larghezza anche dentro la colonna stretta del tema (Bridge: 300 px sul telefono), fino a 1200 px */
	width: min(100vw, 1200px);
	letter-spacing: normal;
	text-transform: none;
	max-width: none;
	margin: 0;
	position: relative;
	left: 50%;
	transform: translateX(-50%); /* centrata sullo schermo anche se il tema forza i margini */
	overflow: hidden;
}
.snd.snd--chiaro {
	--fondo: #FBF2DF;               /* crema del listino e del reel */
	--superficie: #F3E4C6;          /* un passo di tono sotto la crema */
	--testo: #2E312F;               /* su crema 11,8:1 */
	--tenue: #5A544A;               /* solo note piccole: 6,9:1 */
	--terracotta-luce: #9D4B37;     /* su crema 5,4:1 */
	--bordo-campi: #A89A7E;
	--errore: #B3261E;
	--logo: brightness(0) saturate(100%);
}
.snd *, .snd *::before, .snd *::after { box-sizing: border-box; }
.snd [hidden] { display: none !important; } /* alcuni temi rimettono display:block sui paragrafi */
.snd img { max-width: 100%; height: auto; display: block; }
.snd p { margin: 0 0 .8em; }
/* il tema del sito impone i suoi caratteri (Josefin Sans sottile, titoli spaziati e maiuscoli): qui valgono i nostri */
.snd p, .snd li, .snd a, .snd span, .snd small, .snd label, .snd figcaption, .snd cite, .snd blockquote, .snd input, .snd textarea, .snd select, .snd button { font-family: inherit; font-weight: inherit; letter-spacing: inherit; text-transform: inherit; }
.snd h1, .snd h2, .snd h3 { letter-spacing: normal; text-transform: none; }
.snd strong, .snd b { font-weight: 700; }
.snd a { color: var(--terracotta-luce); }

.snd .snd-h1, .snd .snd-h2 {
	font-family: var(--titoli); font-weight: 400; text-transform: uppercase; line-height: .95;
	letter-spacing: -.01em; margin: 0 0 .4em; color: var(--testo);
}
.snd .snd-h1 { font-size: var(--m-display); }
.snd .snd-h2 { font-size: var(--m-titolo); }

/* Apertura: testo a sinistra, video a destra; su telefono il video sta sopra */
.snd .snd-hero { display: grid; grid-template-columns: 1fr; }
.snd .snd-hero__media { order: -1; aspect-ratio: 4 / 3; overflow: hidden; }
.snd .snd-hero__media img, .snd .snd-video { display: block; width: 100%; height: 100% !important; object-fit: cover; }
.snd .snd-hero__text { padding: 28px 20px 56px; }
.snd .snd-logo { filter: var(--logo); margin-bottom: 20px; width: 96px; }
.snd .snd-lead { font-size: var(--m-lead); line-height: 1.4; max-width: 26em; margin-bottom: 28px; }
@container snd (min-width: 900px) {
	.snd .snd-hero { grid-template-columns: 6fr 5fr; min-height: min(100dvh, 860px); align-items: stretch; }
	.snd .snd-hero__media { order: 0; aspect-ratio: auto; }
	.snd .snd-hero__text { align-self: center; padding: 64px 56px; }
}

.snd .snd-btn {
	display: inline-block; background: var(--terracotta); color: #fff !important; text-decoration: none !important;
	font: 700 var(--m-corpo)/1 var(--testo-font); letter-spacing: .02em;
	padding: 18px 36px; border: 0; border-radius: 0; cursor: pointer; white-space: nowrap;
	transition: transform .2s cubic-bezier(.16,1,.3,1), background .2s;
}
.snd .snd-btn:hover { background: #87402F; }
.snd .snd-btn:active { transform: translateY(1px) scale(.98); }
.snd .snd-btn:focus-visible { outline: 3px solid var(--terracotta-luce); outline-offset: 3px; }
.snd .snd-btn--full { width: 100%; padding: 20px; }
.snd .snd-btn[disabled] { opacity: .6; cursor: wait; }

/* Storia: foto del nonno + titolo, testo, citazione */
.snd .snd-storia { display: grid; gap: 32px; padding: 72px 20px; background: var(--superficie); }
.snd .snd-storia__titolo { margin: 0; }
.snd .snd-storia__foto { margin: 0; max-width: 340px; }
.snd .snd-storia__foto figcaption { font-size: var(--m-piccolo); color: var(--tenue); margin-top: 8px; }
.snd .snd-storia__prima { max-width: 34em; }
/* Galleria del laboratorio: si sfoglia col dito (o con le frecce), la foto dopo si intravede */
.snd .snd-galleria { min-width: 0; }
.snd .snd-galleria ul { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; list-style: none; margin: 0 -20px; padding: 0 20px 4px; scroll-padding: 0 20px; scrollbar-width: none; }
.snd .snd-galleria ul::-webkit-scrollbar { display: none; }
.snd .snd-galleria li { flex: 0 0 min(72%, 300px); margin: 0; scroll-snap-align: start; }
.snd .snd-galleria img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.snd .snd-galleria__frecce { display: flex; gap: 8px; margin-top: 12px; }
.snd .snd-galleria__frecce button { width: 48px; height: 48px; border: 0; padding: 0; background: var(--terracotta); color: #fff; font: 32px/1 var(--testo-font); cursor: pointer; }
.snd .snd-galleria__frecce button:disabled { opacity: .35; cursor: default; }
.snd .snd-galleria__frecce button:focus-visible, .snd .snd-galleria ul:focus-visible { outline: 3px solid var(--terracotta-luce); outline-offset: 3px; }
.snd blockquote { margin: 28px 0; padding: 0; border: 0; max-width: 22em; }
.snd blockquote p { font: 700 var(--m-lead)/1.3 var(--testo-font); color: var(--terracotta-luce); margin: 0 0 8px; }
.snd cite { font-style: normal; font-size: var(--m-piccolo); color: var(--tenue); }
@container snd (min-width: 900px) {
	.snd .snd-storia { grid-template-columns: 340px 1fr; grid-template-areas: "foto titolo" "foto testo" "foto galleria"; column-gap: 64px; row-gap: 24px; padding: 120px 56px; align-items: start; }
	.snd .snd-storia__titolo { grid-area: titolo; align-self: end; }
	.snd .snd-storia__foto { grid-area: foto; }
	.snd .snd-storia__testo { grid-area: testo; }
	.snd .snd-galleria { grid-area: galleria; }
	.snd .snd-galleria ul { margin: 0; padding: 0 0 4px; scroll-padding: 0; }
	.snd .snd-galleria li { flex-basis: 240px; }
}

/* Formati: una cella grande + due piccole, superfici piene */
.snd .snd-formati { padding: 72px 20px; }
.snd .snd-formati__grid { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.snd .snd-card { background: var(--superficie); padding: 20px; display: flex; flex-direction: column; justify-content: flex-end; }
.snd .snd-card--grande { grid-column: 1 / -1; padding: 0; overflow: hidden; }
.snd .snd-card--grande img, .snd .snd-card--foto img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.snd .snd-card--grande img { aspect-ratio: 1 / 1; } /* la cappelliera è quasi quadrata: entra intera */
.snd .snd-card--grande > div { padding: 20px; }
.snd .snd-card--foto { padding: 0; overflow: hidden; justify-content: flex-start; }
.snd .snd-card--foto img { aspect-ratio: 4 / 5; }
.snd .snd-card--foto > div { padding: 16px 20px 20px; }
.snd .snd-formato { margin: 0; font: 400 var(--m-lead)/1.1 var(--titoli); text-transform: uppercase; letter-spacing: .02em; color: var(--testo); }
.snd .snd-formato > span:last-child { display: block; margin-top: 4px; }
.snd .snd-prezzo { display: block; white-space: nowrap; font: 400 clamp(44px, 11cqi, 64px)/1 var(--titoli); color: var(--terracotta-luce); }
.snd .snd-card__nota { color: var(--tenue); font-size: var(--m-piccolo); margin: 6px 0 0 !important; }
@container snd (min-width: 900px) {
	.snd .snd-formati { padding: 120px 56px; }
	.snd .snd-formati__grid { grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; }
	.snd .snd-card--grande { grid-column: 1; grid-row: 1 / 3; justify-content: flex-start; }
	.snd .snd-card--grande img { flex: 1 1 auto; min-height: 0; aspect-ratio: auto; } /* riempie l'altezza delle due schede accanto, senza vuoto sopra */
}
.snd .snd-passi { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.snd .snd-note { display: grid; gap: 16px; margin-top: 40px; max-width: 34em; }
@container snd (min-width: 900px) { .snd .snd-note { grid-template-columns: 1fr 1fr; gap: 40px; max-width: none; } }

/* Modulo: su computer riepilogo fisso a sinistra, campi a destra */
.snd .snd-form-wrap { padding: 72px 20px; background: var(--superficie); display: grid; gap: 24px; }
.snd .snd-form-intro img, .snd .snd-form-intro .snd-totale--intro { display: none; }
.snd .snd-sub { font-size: var(--m-lead); line-height: 1.4; }
@container snd (min-width: 900px) {
	.snd .snd-form-wrap { grid-template-columns: 5fr 6fr; gap: 64px; padding: 120px 56px; align-items: start; }
	.snd .snd-form-intro { position: sticky; top: 24px; }
	.snd .snd-form-intro img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin: 24px 0; }
	.snd .snd-form-intro .snd-totale--intro { display: flex; }
}
.snd .snd-form fieldset { border: 0; padding: 0; margin: 0 0 40px; }
.snd .snd-legend { font: 700 var(--m-lead)/1.3 var(--testo-font); color: var(--testo); margin: 0 0 14px; }
.snd .snd-qty { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; background: var(--fondo); margin-bottom: 6px; }
.snd .snd-qty label span { display: block; font-weight: 400; }
.snd .snd-stepper { display: flex; align-items: center; flex-shrink: 0; }
.snd .snd-stepper button { width: 44px; height: 44px; border: 0; background: var(--superficie); color: var(--testo); font-size: 22px; line-height: 1; cursor: pointer; border-radius: 0; padding: 0; }
.snd .snd-stepper button:active { transform: scale(.95); }
.snd .snd-stepper input { width: 52px; height: 44px; text-align: center; font-size: var(--m-corpo); border: 0; background: transparent; color: var(--testo); -moz-appearance: textfield; }
.snd .snd-stepper input::-webkit-outer-spin-button, .snd .snd-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.snd .snd-negozi { display: grid; gap: 6px; grid-template-columns: 1fr 1fr; margin-bottom: 14px; }
.snd .snd-negozio { cursor: pointer; }
.snd .snd-negozio input { position: absolute; opacity: 0; }
.snd .snd-negozio span { display: block; padding: 14px; min-height: 100%; background: var(--fondo); outline: 3px solid transparent; outline-offset: -3px; transition: outline-color .2s; }
.snd .snd-negozio small { display: block; font-size: var(--m-piccolo); color: var(--tenue); line-height: 1.35; margin-top: 2px; }
.snd .snd-negozio input:checked + span { outline-color: var(--terracotta-luce); }
.snd .snd-negozio input:focus-visible + span { outline-color: var(--testo); }

.snd .snd-field { display: block; font-weight: 700; margin: 16px 0 0; color: var(--testo); }
.snd .snd-field small { font-weight: 400; color: var(--tenue); font-size: var(--m-piccolo); }
.snd .snd-field input, .snd .snd-field select, .snd .snd-field textarea {
	display: block; width: 100%; margin-top: 8px; padding: 12px; font: inherit; font-weight: 400; min-height: 48px;
	border: 1px solid var(--bordo-campi); border-radius: 0; background: var(--fondo); color: var(--testo); /* campi del modulo: la riga è ammessa */
}
.snd .snd-giorni__vuoto { margin: 8px 0 0 !important; }
.snd .snd-giorni__mese { font-weight: 700; margin: 14px 0 6px !important; }
.snd .snd-giorni__griglia { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; }
.snd .snd-giorno { cursor: pointer; }
.snd .snd-giorno input { position: absolute; opacity: 0; }
.snd .snd-giorno span { display: flex; flex-direction: column; align-items: center; padding: 8px 4px; background: var(--fondo); outline: 3px solid transparent; outline-offset: -3px; transition: outline-color .2s, background .2s; }
.snd .snd-giorno small { font-size: var(--m-piccolo); }
.snd .snd-giorno strong { font: 400 var(--m-lead)/1 var(--titoli); }
.snd .snd-giorno input:checked + span { background: var(--terracotta); color: #fff; }
.snd .snd-giorno input:focus-visible + span { outline-color: var(--testo); }
.snd .snd-field input:focus, .snd .snd-field select:focus, .snd .snd-field textarea:focus { outline: 2px solid var(--terracotta-luce); border-color: var(--terracotta-luce); }
.snd .snd-check { display: flex; gap: 10px; align-items: flex-start; margin-top: 20px; font-size: var(--m-piccolo); }
.snd .snd-check input { width: 22px; height: 22px; flex-shrink: 0; margin-top: 0; accent-color: var(--terracotta); }
.snd .snd-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* taste-skill-ignore: campo nascosto anti-bot, non una linea */
.snd .snd-err { color: var(--errore); font-size: var(--m-piccolo); font-weight: 700; margin: 6px 0 0 !important; }
.snd .snd-err:empty { display: none; }

.snd .snd-totale { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 20px; background: var(--fondo); margin: 0 0 12px; }
.snd .snd-totale strong { font: 400 clamp(44px, 6cqi, 64px)/1 var(--titoli); color: var(--terracotta-luce); }
.snd .snd-ok { background: var(--fondo); padding: 28px; }
.snd .snd-ok h3 { font: 400 var(--m-titolo)/1 var(--titoli); text-transform: uppercase; color: var(--terracotta-luce); margin: 0 0 12px; }

/* Negozi */
.snd .snd-negozi-info { padding: 72px 20px; }
.snd .snd-negozi-info ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
@container snd (min-width: 640px) { .snd .snd-negozi-info ul { grid-template-columns: 1fr 1fr; } }
@container snd (min-width: 900px) { .snd .snd-negozi-info { padding: 120px 56px; } .snd .snd-negozi-info ul { grid-template-columns: repeat(4, 1fr); } }
.snd .snd-negozi-info strong { font-weight: 700; display: block; margin-bottom: 4px; }
.snd .snd-negozi-info span { display: block; }
.snd .snd-negozi-info a { font-weight: 700; display: inline-block; margin-top: 6px; }

/* Chiusura: un campo di colore pieno */
.snd .snd-chiusa { padding: 88px 20px; text-align: center; background: var(--terracotta); }
.snd .snd-chiusa p { font-family: var(--titoli); text-transform: uppercase; font-size: var(--m-titolo); line-height: 1; margin: 0; color: #fff; }

/* Comparsa delle sezioni: guida l'occhio mentre si scorre */
@media (prefers-reduced-motion: no-preference) {
	.snd .snd-hero__text > * { animation: snd-su .8s cubic-bezier(.16,1,.3,1) both; }
	.snd .snd-hero__text > :nth-child(2) { animation-delay: .08s; }
	.snd .snd-hero__text > :nth-child(3) { animation-delay: .16s; }
	.snd .snd-hero__text > :nth-child(4) { animation-delay: .24s; }
	.snd [data-rv].snd-rv-attesa { opacity: 0; transform: translateY(24px); }
	.snd [data-rv] { transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }
	.snd .snd-card[data-rv]:nth-child(2), .snd .snd-negozi-info li:nth-child(2) { transition-delay: .1s; }
	.snd .snd-card[data-rv]:nth-child(3), .snd .snd-negozi-info li:nth-child(3) { transition-delay: .2s; }
	.snd .snd-negozi-info li:nth-child(4) { transition-delay: .3s; }
}
@keyframes snd-su { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Foto dei formati ingrandibili (16/11): segno «+» sull'angolo, a tutto schermo nel dialog */
.snd .snd-card { position: relative; }
.snd [data-lente] { cursor: zoom-in; }
.snd [data-lente]:focus-visible { outline: 3px solid var(--terracotta-luce); outline-offset: -3px; }
.snd .snd-lente-segno { position: absolute; top: 10px; right: 10px; z-index: 1; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.55); color: #fff; font: 400 24px/1 system-ui, sans-serif; pointer-events: none; }
.snd .snd-lente { margin: auto; padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100dvh; overflow: visible; cursor: zoom-out; }
.snd .snd-lente::backdrop { background: rgba(0,0,0,.88); }
.snd .snd-lente img { display: block; max-width: min(100vw - 24px, 800px); max-height: calc(100dvh - 80px); width: auto; height: auto; object-fit: contain; }
.snd .snd-lente button { position: fixed; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; font: 400 30px/1 system-ui, sans-serif; cursor: pointer; }
.snd .snd-lente button:focus:not(:focus-visible) { outline: none; }
