/* Sito pubblico dei clienti: tre modelli (editoriale, minimal, audace).
   I colori arrivano dalle variabili --acc, --t1, --t2, --t3 scritte sul contenitore .s */
.s {
  --bg: #F6F1EA; --ink: #1F1A17; --muted: #5A524C; --line: rgba(31, 26, 23, .12);
  --display: 'Instrument Serif', Georgia, serif; --display-w: 400; --track: -0.015em;
  --r: 3px; --btn-r: 3px;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  font-family: Geist, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.s[data-template="minimal"] {
  --bg: #FFFFFF; --ink: #141414; --muted: #5C5C5C; --line: rgba(0, 0, 0, .1);
  --display: Geist, system-ui, sans-serif; --display-w: 500; --track: -0.035em;
  --r: 14px; --btn-r: 999px;
}
.s[data-template="audace"] {
  --bg: #FFFFFF; --ink: #141414; --muted: #5C5C5C; --line: rgba(0, 0, 0, .1);
  --display: 'Bricolage Grotesque', system-ui, sans-serif; --display-w: 800; --track: -0.04em;
  --r: 18px; --btn-r: 12px;
}
.s *, .s *::before, .s *::after { box-sizing: border-box; }
.s [hidden] { display: none !important; }
.s a { color: inherit; }
.s img { display: block; max-width: 100%; }
.s-wrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }

/* Testata */
.s-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding: 18px 0; }
.s-logo { font-family: var(--display); font-weight: var(--display-w); font-size: clamp(24px, 2.6vw, 30px); line-height: 1.1; letter-spacing: var(--track); text-decoration: none; }
.s-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; font-size: 15px; }
.s-nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.s-nav .s-btn-out { padding: 0 18px; border: 1px solid currentColor; border-radius: var(--btn-r); font-weight: 600; }

/* Bottoni */
.s-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: var(--btn-r);
  background: var(--acc); color: #FFFFFF; font-size: 15px; font-weight: 600;
  text-decoration: none; cursor: pointer; transition: transform .2s, filter .2s;
}
.s .s-btn { color: #FFFFFF; }
.s-btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.s-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: underline; text-underline-offset: 5px; }

/* Apertura */
.s-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr)); align-items: center; gap: 48px; padding: 24px 0 80px; }
.s-hero-txt { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.s-kicker { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.s-h1 { margin: 0; font-family: var(--display); font-weight: var(--display-w); font-size: clamp(46px, 7vw, 108px); line-height: .95; letter-spacing: var(--track); text-wrap: balance; }
.s-sub { margin: 0; max-width: 440px; font-size: 18px; line-height: 1.55; color: var(--muted); }
.s-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.s-hero-img { position: relative; min-height: clamp(320px, 40vw, 540px); }
.s-hero-a, .s-hero-b { position: absolute; overflow: hidden; border-radius: var(--r); }
.s-hero-a { top: 0; right: 0; width: 78%; height: 86%; background: var(--t2); }
.s-hero-b { left: 0; bottom: 0; width: 46%; height: 52%; background: var(--t1); border: 10px solid var(--bg); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .4); }
.s-hero-a img, .s-hero-b img { width: 100%; height: 100%; object-fit: cover; }

.s[data-template="minimal"] .s-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 72px 0 96px; }
.s[data-template="minimal"] .s-hero-txt { align-items: center; }
.s[data-template="minimal"] .s-sub { margin: 0 auto; }
.s[data-template="minimal"] .s-cta { justify-content: center; }
.s[data-template="minimal"] .s-kicker { color: var(--acc); }
.s[data-template="minimal"] .s-hero-img { display: none; }

.s[data-template="audace"] .s-hero { margin: 8px 0 72px; padding: clamp(28px, 5vw, 64px); border-radius: var(--r); background: var(--acc); color: #FFFFFF; }
.s[data-template="audace"] .s-hero .s-kicker,
.s[data-template="audace"] .s-hero .s-sub { color: rgba(255, 255, 255, .9); }
.s[data-template="audace"] .s-hero .s-btn { background: #FFFFFF; color: var(--acc); }
.s[data-template="audace"] .s-hero-b { border-color: var(--acc); }

/* Sezioni */
.s-sez { padding: 72px 0; border-top: 1px solid var(--line); }
.s-sez-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 40px; }
.s-h2 { margin: 0; font-family: var(--display); font-weight: var(--display-w); font-size: clamp(36px, 4.4vw, 60px); line-height: 1; letter-spacing: var(--track); text-wrap: balance; }

/* Prodotti */
.s-griglia { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 40px 24px; }
.s-card { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.s-card-img { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r); }
.s-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.s-card-img:hover img { transform: scale(1.03); }
.s-badge { position: absolute; top: 12px; left: 12px; padding: 5px 10px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 600; }
.s-badge-chiaro { background: rgba(255, 255, 255, .92); color: #1F1A17; }
.s-card-txt { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.s-card-txt h3 { margin: 0; min-width: 0; font-family: var(--display); font-weight: var(--display-w); font-size: 22px; line-height: 1.15; letter-spacing: var(--track); }
.s[data-template="minimal"] .s-card-txt h3,
.s[data-template="audace"] .s-card-txt h3 { font-size: 17px; letter-spacing: -0.01em; }
.s[data-template="audace"] .s-card-txt h3 { font-weight: 700; }
.s-prezzo { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 14px; color: var(--muted); white-space: nowrap; }
.s-prezzo s { margin-right: 4px; opacity: .65; }
.s-vuoto { margin: 0; padding: 56px 24px; border-radius: var(--r); background: var(--t3); color: var(--muted); text-align: center; }

/* Dove siamo */
.s-dove { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); align-items: stretch; gap: 48px; }
.s-dove-txt { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.s-dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 16px 28px; font-size: 16px; line-height: 1.5; }
.s-dl dt { padding-top: 3px; font-family: 'Geist Mono', ui-monospace, monospace; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.s-dl dd { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.s-mappa { display: flex; align-items: center; justify-content: center; min-height: 300px; border-radius: var(--r); background: var(--t3); color: var(--acc); }

/* Testata: nome al centro e logo */
.s-head[data-layout="centro"] { flex-direction: column; justify-content: center; gap: 4px; padding: 22px 0 6px; text-align: center; }
.s-head[data-layout="centro"] .s-nav { justify-content: center; }
.s-logo-img { display: inline-flex; align-items: center; }
.s-logo img { width: auto; max-width: min(240px, 60vw); max-height: 56px; object-fit: contain; }

/* Barra annunci e strisce */
.s-annuncio, .s-striscia { text-align: center; }
.s-annuncio .s-wrap { padding-top: 9px; padding-bottom: 9px; }
.s-striscia .s-wrap { padding-top: 15px; padding-bottom: 15px; }
.s-annuncio p, .s-annuncio a, .s-striscia p, .s-striscia a { margin: 0; text-transform: uppercase; overflow-wrap: anywhere; }
.s-annuncio p, .s-annuncio a { font-size: 12.5px; font-weight: 500; letter-spacing: .12em; }
.s-striscia p, .s-striscia a { font-size: 14px; font-weight: 700; letter-spacing: .14em; }
.s-annuncio a, .s-striscia a { display: inline-flex; align-items: center; min-height: 24px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.s-annuncio[data-stile="scuro"], .s-striscia[data-stile="scuro"] { background: var(--ink); color: var(--bg); }
.s-annuncio[data-stile="accento"], .s-striscia[data-stile="accento"] { background: var(--acc); color: #FFFFFF; }
.s-annuncio[data-stile="chiaro"], .s-striscia[data-stile="chiaro"] { background: var(--t1); color: var(--ink); }

/* Apertura: solo testo e foto grande */
.s-hero[data-formato="testo"] { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 72px 0 96px; }
.s-hero[data-formato="testo"] .s-hero-txt { align-items: center; }
.s-hero[data-formato="testo"] .s-sub { margin: 0 auto; }
.s-hero[data-formato="testo"] .s-cta { justify-content: center; }
.s-hero-foto { position: relative; isolation: isolate; display: flex; align-items: center; min-height: clamp(440px, 74vh, 780px); overflow: hidden; background: var(--acc); color: #FFFFFF; }
.s-hero-foto > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.s-hero-foto::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, .22) 0%, rgba(0, 0, 0, .46) 100%); }
.s-hero-foto.senza-foto::before { display: none; }
.s-hero-foto .s-wrap { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 20px; padding-top: 72px; padding-bottom: 72px; text-align: center; }
.s-hero-foto[data-allinea="sinistra"] .s-wrap { align-items: flex-start; text-align: left; }
.s-hero-foto .s-h1 { font-size: clamp(44px, 6.6vw, 104px); text-shadow: 0 2px 24px rgba(0, 0, 0, .18); }
.s-hero-foto .s-sub { max-width: 560px; color: rgba(255, 255, 255, .92); }
.s .s-btn-chiaro { background: #FFFFFF; color: #141414; }

/* Prodotti: colonne scelte dal cliente e «Mostra tutti» */
@media (min-width: 900px) {
  .s-griglia[style*="--col"] { grid-template-columns: repeat(var(--col), minmax(0, 1fr)); }
}
.s-altri { display: flex; justify-content: center; margin-top: 44px; }
.s .s-btn-linea { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px currentColor; }

/* Titolo e testo */
.s-blocco { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; max-width: 780px; }
.s-blocco[data-allinea="centro"] { align-items: center; margin: 0 auto; text-align: center; }
.s-testo { margin: 0; max-width: 680px; font-size: 18px; line-height: 1.6; color: var(--muted); white-space: pre-line; }
.s-banda { padding: clamp(56px, 8vw, 104px) 0; }
.s-banda[data-sfondo="chiaro"] { background: var(--t3); }
.s-banda[data-sfondo="accento"] { background: var(--acc); color: #FFFFFF; }
.s-banda[data-sfondo="scuro"] { background: var(--ink); color: var(--bg); }
.s-banda[data-sfondo="accento"] .s-testo, .s-banda[data-sfondo="scuro"] .s-testo { color: inherit; opacity: .88; }
.s-pieno + .s-wrap > .s-sez { border-top: 0; }

/* Foto e testo */
.s-it { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); align-items: center; gap: clamp(32px, 5vw, 80px); }
.s-it-foto { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r); background: var(--t2); }
.s-it-foto img { width: 100%; height: 100%; object-fit: cover; }
.s-it-txt { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.s-it-solo { grid-template-columns: minmax(0, 780px); }
@media (min-width: 860px) {
  .s-it[data-lato="destra"] .s-it-foto { order: 2; }
}

/* Galleria */
.s-galleria { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.s-gal-el { margin: 0; aspect-ratio: 1; overflow: hidden; border-radius: var(--r); background: var(--t2); }
.s-gal-el img { width: 100%; height: 100%; object-fit: cover; }

/* Instagram */
.s-ig { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); align-items: center; gap: clamp(28px, 4vw, 56px); padding: clamp(28px, 5vw, 64px); border-radius: var(--r); background: var(--t3); }
.s-ig-foto { overflow: hidden; border-radius: var(--r); }
.s-ig-foto img { width: 100%; height: auto; }
.s-ig-txt { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.s-ig-solo { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.s-ig-solo .s-ig-txt { align-items: center; }
.s-ig .s-kicker { color: var(--acc); }

/* Domande frequenti */
.s-faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); align-items: start; gap: 28px 72px; }
.s-faq-el { border-top: 1px solid var(--line); }
.s-faq-el:last-child { border-bottom: 1px solid var(--line); }
.s-faq-el summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; padding: 14px 0; font-size: 17px; font-weight: 600; line-height: 1.35; cursor: pointer; list-style: none; }
.s-faq-el summary::-webkit-details-marker { display: none; }
.s-faq-el summary::after { content: '+'; flex: none; font-size: 26px; font-weight: 300; line-height: 1; transition: transform .2s; }
.s-faq-el[open] summary::after { transform: rotate(45deg); }
.s-faq-el p { margin: 0 0 22px; max-width: 640px; color: var(--muted); line-height: 1.6; white-space: pre-line; }

/* Solo nelle anteprime del pannello: segnaposto dove manca un contenuto */
.s-segnaposto { color: var(--muted); font-style: italic; opacity: .75; }
p.s-segnaposto { margin: 0; }
.s-foto-vuota { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--muted); opacity: .6; }

/* Piè di pagina */
.s-foot { margin-top: 24px; background: var(--ink); color: var(--bg); }
.s-foot .s-wrap { display: flex; flex-direction: column; gap: 40px; padding-top: 56px; padding-bottom: 32px; }
.s-foot-nome { font-family: var(--display); font-weight: var(--display-w); font-size: clamp(40px, 6vw, 80px); line-height: 1; letter-spacing: var(--track); }
.s-foot-riga { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .16); font-size: 13px; opacity: .8; }
.s-foot-riga a { text-decoration: none; }

/* Scheda prodotto */
.s-dialog { width: min(1040px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: var(--r); background: var(--bg); color: var(--ink); overflow: auto; }
.s-dialog::backdrop { background: rgba(15, 12, 10, .6); }
.s-chiudi { position: sticky; top: 12px; float: right; z-index: 2; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 12px 12px 0 0; border: 0; border-radius: 50%; background: var(--bg); color: var(--ink); box-shadow: 0 2px 10px rgba(0, 0, 0, .15); cursor: pointer; }
.s-det { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 32px; padding: 20px; }
.s-det-foto { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--r); }
.s-det-foto img, .s-det-vuota { flex: 0 0 100%; aspect-ratio: 4 / 5; object-fit: cover; scroll-snap-align: start; border-radius: var(--r); background: var(--t2); }
.s-det-info { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 8px 4px 12px; }
.s-det-nome { margin: 0; font-family: var(--display); font-weight: var(--display-w); font-size: clamp(32px, 4vw, 48px); line-height: 1.02; letter-spacing: var(--track); }
.s-det .s-prezzo { font-size: 16px; color: var(--ink); }
.s-esaurito { padding: 6px 12px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 600; }
.s-taglie { display: flex; flex-wrap: wrap; gap: 8px; }
.s-taglie span { min-width: 40px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r); font-family: 'Geist Mono', ui-monospace, monospace; font-size: 13px; text-align: center; }
.s-det-desc { margin: 0; color: var(--muted); line-height: 1.6; white-space: pre-line; }
.s-btn-pieno { align-self: stretch; }

/* Avvisi */
.s-avviso { position: sticky; top: 0; z-index: 5; padding: 10px 16px; background: #0F0F0E; color: #EDEAE3; font-size: 14px; text-align: center; }
.s-404 .s-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; padding-top: 18vh; padding-bottom: 18vh; }

@media (max-width: 640px) {
  .s-hero { gap: 32px; padding-bottom: 56px; }
  .s-hero-img { min-height: 300px; }
  .s-sez { padding: 56px 0; }
  .s-griglia { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .s-card-txt { flex-direction: column; gap: 2px; }
  .s-card-txt h3 { font-size: 18px; }
  .s-nav { gap: 0 16px; font-size: 14px; }
  .s-det { padding: 12px; gap: 20px; }
  .s-mappa { display: none; }
  .s-logo img { max-height: 44px; }
  .s-hero-foto { min-height: 520px; }
  .s-hero-foto .s-wrap { padding-top: 56px; padding-bottom: 56px; }
  .s-striscia p, .s-striscia a { font-size: 12.5px; letter-spacing: .1em; }
  .s-galleria { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .s-faq-el summary { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .s-btn, .s-card-img img, .s-faq-el summary::after { transition: none; }
}
