/* DUE SEDIE — campione Tipo 1. Foglio unico, nessuna compilazione. */

@font-face { font-family: "Barlow"; src: url("../fonts/Barlow-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/Barlow-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/Barlow-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/BarlowCondensed-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  /* Colori del brief */
  --c-blue: #2454A6;
  --c-blue-strong: #1C4488;
  --c-white: #FAFBFC;
  --c-paper: #FFFFFF;
  --c-ink: #23272B;
  --c-ink-soft: #4B525A;
  --c-sky: #EAF0F8;
  --c-sky-line: #C6D3E6;
  --c-sun: #F5CE76;
  --c-line: #D8DEE6;
  --c-field: #7F8A98;
  --c-error: #A51D1D;
  --c-on-blue-soft: #DCE6F5;

  --f-head: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  --f-body: "Barlow", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --fs-body: clamp(1.0625rem, 1rem + 0.2vw, 1.125rem);
  --fs-small: 0.9375rem;
  --fs-h1: clamp(3rem, 1.75rem + 4.2vw, 6rem);
  --fs-h2: clamp(2.25rem, 1.6rem + 2.4vw, 3.625rem);
  --fs-h3: clamp(1.375rem, 1.22rem + 0.5vw, 1.75rem);
  --fs-price: clamp(2.125rem, 1.75rem + 1.2vw, 2.875rem);

  --wrap: 1180px;
  --gutter: clamp(1.25rem, 0.3rem + 3.8vw, 4rem);
  --section: clamp(2.75rem, 1.5rem + 4.4vw, 5.5rem);
  --header-h: 4.25rem;

  --r-btn: 8px;
  --r-img: 6px;
  --r-panel: 10px;
  --t: 180ms ease;
}

@media (min-width: 1100px) {
  :root { --header-h: 4.75rem; }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-gutter: stable; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
html.is-locked { overflow: hidden; }
body {
  margin: 0;
  background: var(--c-white);
  color: var(--c-ink);
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  overflow-wrap: break-word;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 600; line-height: 1.04; margin: 0; letter-spacing: -0.005em; text-wrap: balance; }
p, figure, dl, dd { margin: 0; }
a { color: var(--c-blue); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--c-blue); outline-offset: 3px; }
#contenuto:focus { outline: none; }
section[id] { scroll-margin-top: calc(var(--header-h) + 0.5rem); }

.vh {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: 0.75rem; top: -5rem; z-index: 100;
  background: var(--c-ink); color: #fff; padding: 0.65rem 1rem; border-radius: var(--r-btn);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 0.75rem; }

/* Pulsanti */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 2.875rem; padding: 0.6rem 1.25rem;
  border: 2px solid transparent; border-radius: var(--r-btn);
  font: 600 1rem/1.2 var(--f-body); text-align: center; text-decoration: none; cursor: pointer;
  transition: background-color var(--t), color var(--t), border-color var(--t);
}
.btn-primary { background: var(--c-blue); color: #fff; }
.btn-primary:hover { background: var(--c-blue-strong); }
.btn-secondary { background: transparent; color: var(--c-blue); border-color: var(--c-blue); }
.btn-secondary:hover { background: rgba(36, 84, 166, 0.09); color: var(--c-blue-strong); border-color: var(--c-blue-strong); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.badge {
  display: inline-block; padding: 0.28rem 0.45rem; border-radius: 4px;
  background: var(--c-sun); color: var(--c-ink); font: 600 0.75rem/1 var(--f-body); letter-spacing: 0.02em;
}

/* Marchio */
.brand { display: inline-flex; align-items: center; gap: 0.625rem; color: var(--c-ink); text-decoration: none; }
.brand-mark { width: 2.125rem; height: auto; flex: none; color: var(--c-blue); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font: 600 1.5rem/1 var(--f-head); letter-spacing: 0.045em; }
.brand-desc { margin-top: 0.22rem; font-size: 0.8125rem; font-weight: 500; color: var(--c-ink-soft); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--c-white); border-bottom: 1px solid var(--c-line); }
.header-bar { display: flex; flex-wrap: wrap; align-items: center; column-gap: 0.75rem; min-height: var(--header-h); }
.header-bar > .brand { margin-right: auto; padding-block: 0.5rem; }
.site-nav { order: 4; flex: 1 0 100%; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.nav-list a {
  display: inline-block; padding: 0.55rem 0; color: var(--c-ink); font-weight: 500; text-decoration: none;
  border-bottom: 3px solid transparent; transition: color var(--t), border-color var(--t);
}
.nav-list a:hover { color: var(--c-blue); }
.nav-list a[aria-current="location"] { color: var(--c-blue); border-bottom-color: var(--c-sun); }
.nav-cta { display: none; }
.lang { display: flex; gap: 0.25rem; }
.lang a {
  display: inline-flex; align-items: center; justify-content: center; min-width: 2.75rem; min-height: 2.75rem;
  border-radius: var(--r-btn); color: var(--c-ink-soft); font-weight: 600; text-decoration: none;
  transition: color var(--t), background-color var(--t);
}
.lang a:hover { color: var(--c-blue); background: var(--c-sky); }
.lang a[aria-current="page"] { color: var(--c-ink); background: var(--c-sky); }
.header-bar > .lang { order: 2; }
.menu-toggle {
  order: 3; display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; padding: 0; border: 1px solid var(--c-line); border-radius: var(--r-btn);
  background: var(--c-paper); color: var(--c-ink); cursor: pointer;
}
.menu-icon, .menu-icon::before, .menu-icon::after {
  display: block; width: 1.25rem; height: 2px; background: currentColor; transition: transform var(--t), background-color var(--t);
}
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-icon::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }

/* Menu mobile: senza JavaScript i link restano visibili sotto il marchio. */
@media (max-width: 479.98px) {
  .header-bar { column-gap: 0.625rem; }
  .header-bar > .brand { gap: 0.5rem; }
  .header-bar > .brand .brand-mark { width: 1.75rem; }
  .header-bar > .brand .brand-name { font-size: 1.375rem; }
  .header-bar > .brand .brand-desc { max-width: 7.75rem; font-size: 0.75rem; line-height: 1.2; }
  .header-bar > .lang a { min-width: 2.5rem; }
}
@media (max-width: 1099.98px) {
  .site-nav { padding-bottom: 0.5rem; }
  .js .site-nav { display: none; padding: 0.5rem 0 1.25rem; border-top: 1px solid var(--c-line); }
  .js.menu-open .site-nav { display: block; }
  .js .nav-list { flex-direction: column; }
  .js .nav-list a { display: block; padding: 0.7rem 0; font-size: 1.1875rem; border-bottom: 0; }
  .js .nav-list a[aria-current="location"] { text-decoration: underline; text-decoration-color: var(--c-sun); text-decoration-thickness: 3px; text-underline-offset: 0.3em; }
  .js .nav-cta { display: flex; margin-top: 0.75rem; }
}
@media (max-width: 359.98px) {
  :root { --gutter: 1rem; }
  .header-bar > .brand .brand-desc { display: none; }
}
@media (min-width: 1100px) {
  .header-bar { flex-wrap: nowrap; column-gap: 1.5rem; }
  .site-nav { order: 0; flex: 0 1 auto; display: flex; align-items: center; gap: 1.75rem; }
  .nav-list { flex-wrap: nowrap; gap: 1.5rem; }
  .nav-list a { white-space: nowrap; }
  .nav-cta { display: inline-flex; white-space: nowrap; }
  .header-bar > .lang { order: 0; }
  .menu-toggle { display: none; }
}
@media (min-width: 1100px) and (max-width: 1239.98px) {
  .nav-cta { display: none; }
}

/* Apertura */
.hero { padding-block: clamp(1.75rem, 0.8rem + 3.6vw, 4rem) var(--section); }
.hero-grid { display: grid; gap: clamp(1.75rem, 1rem + 2.6vw, 3.5rem); }
.hero-copy { container-type: inline-size; }
/* La riga piu' lunga ("Senza tante storie.") misura circa 6,4 volte il corpo: 15cqi la tiene su una riga. */
.hero-copy h1 { font-size: var(--fs-h1); font-size: min(var(--fs-h1), 15cqi); line-height: 0.95; letter-spacing: -0.01em; }
.hero-copy h1 .line { display: block; }
.hero-text { margin-top: 1.25rem; max-width: 33em; font-size: clamp(1.125rem, 1.04rem + 0.35vw, 1.3125rem); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; margin-top: 1.65rem; padding-top: 1.15rem; border-top: 1px solid var(--c-line); }
.hero-facts > div { flex: 1 1 auto; }
.hero-facts dt { font-size: 0.875rem; color: var(--c-ink-soft); }
.hero-facts dd { margin-top: 0.2rem; font: 600 1.625rem/1.15 var(--f-head); color: var(--c-blue); }
.hero-media img { width: 100%; border-radius: var(--r-img); object-fit: cover; object-position: var(--fuoco, 50% 50%); }
@media (min-width: 1100px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; }
  .hero-media img { aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: ds-rise 620ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
}
/* Solo movimento, nessuna dissolvenza: se l'animazione non avanza il testo resta comunque leggibile. */
@keyframes ds-rise {
  from { transform: translateY(16px); }
  to { transform: none; }
}

/* Intestazioni di sezione */
.section-head h2, .shop-copy h2, .faq h2, .contact-info h2 { font-size: var(--fs-h2); }
.section-head p { margin-top: 1rem; max-width: 36em; }

/* Servizi e prezzi */
.services { background: var(--c-sky); padding-block: var(--section); }
.services-grid { display: grid; gap: 2rem; }
.price-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--c-ink); }
.price-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "name price" "desc desc" "time choose" "details details";
  gap: 0.35rem 1rem; align-items: center;
  padding: 1.25rem 0; border-bottom: 1px solid var(--c-sky-line);
}
.price-name { grid-area: name; font-size: var(--fs-h3); }
.price-desc { grid-area: desc; max-width: 34em; }
.price-time { grid-area: time; color: var(--c-ink-soft); font-size: var(--fs-small); font-weight: 500; }
.price-amount { grid-area: price; font: 600 var(--fs-price)/1 var(--f-head); font-variant-numeric: lining-nums tabular-nums; text-align: right; white-space: nowrap; }
.btn-choose { grid-area: choose; justify-self: end; min-width: 6.5rem; margin-top: 0.4rem; }
.price-note { color: var(--c-ink-soft); font-size: var(--fs-small); }
.service-detail { grid-area: details; margin-top: 0.25rem; }
.service-detail summary { display: flex; align-items: center; gap: 0.6rem; width: fit-content; min-height: 2.75rem; cursor: pointer; color: var(--c-blue); font-size: 0.9375rem; font-weight: 600; list-style: none; }
.service-detail summary::-webkit-details-marker { display: none; }
.service-detail summary::before { content: ""; width: 0.45rem; height: 0.45rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform var(--t); flex: none; }
.service-detail[open] summary::before { transform: rotate(45deg); }
.service-detail-body { padding: 0.75rem 1rem 1rem; margin-top: 0.25rem; border-radius: var(--r-btn); background: var(--c-white); font-size: 0.9375rem; }
.service-detail-body p { max-width: 38em; color: var(--c-ink-soft); }
.service-detail-body ul { padding-left: 1.15rem; margin: 0.65rem 0 0; display: grid; gap: 0.25rem; }
.service-detail-body li::marker { color: var(--c-blue); }
.services-side { max-width: 30rem; }
.service-guide { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--c-sky-line); }
.service-guide h3 { font-size: 1.75rem; }
.service-guide p { margin-top: 0.65rem; font-size: 1rem; }
.service-guide a { display: inline-block; margin-top: 0.85rem; font-weight: 600; text-underline-offset: 0.2em; }
.services-photo { max-width: 30rem; }
.services-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: var(--fuoco, 50% 50%); border-radius: var(--r-img); }
@media (min-width: 760px) {
  .price-row {
    grid-template-columns: minmax(0, 1fr) 6.5rem 6rem auto;
    grid-template-areas: "name time price choose" "desc time price choose" "details details details details";
    column-gap: 1.25rem; row-gap: 0.3rem; padding: 1.4rem 0;
  }
  .price-time { text-align: right; }
  .btn-choose { margin-top: 0; }
}
@media (min-width: 1000px) {
  .services-grid { grid-template-columns: minmax(0, 8fr) minmax(0, 3.4fr); column-gap: clamp(2.5rem, 4vw, 4.5rem); row-gap: 1.25rem; }
  .services-head { grid-column: 1; grid-row: 1; margin-bottom: 0.75rem; }
  .price-list { grid-column: 1; grid-row: 2; }
  .price-note { grid-column: 1; grid-row: 3; }
  .services-side { grid-column: 2; grid-row: 2 / span 2; align-self: start; max-width: none; }
}

/* La bottega */
.shop { padding-block: var(--section); }
.shop-grid { display: grid; gap: 2rem; }
.shop-photo img { width: 100%; border-radius: var(--r-img); }
.shop-copy p { max-width: 34em; }
.shop-copy h2 + p { margin-top: 1.25rem; }
.shop-copy p + p { margin-top: 1rem; }
.visit-note { margin-top: 1.5rem; padding: 1.15rem 1.25rem; background: var(--c-sky); border-radius: var(--r-btn); }
.visit-note h3 { font-size: 1.5rem; }
.visit-note p { margin-top: 0.4rem; font-size: 1rem; }
.steps {
  list-style: none; margin: 0; padding: 1.75rem 0 0; border-top: 1px solid var(--c-line);
  display: grid; gap: 1.5rem;
}
.step { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 1rem; row-gap: 0.2rem; align-items: start; }
.step-num {
  grid-row: span 2; width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: var(--c-sun); color: var(--c-ink); font: 600 1.375rem/2.5rem var(--f-head); text-align: center;
}
.step h3 { font-size: 1.5rem; line-height: 1.15; padding-top: 0.3rem; }
.step p { color: var(--c-ink-soft); }
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
}
@media (min-width: 900px) {
  .shop-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: clamp(2.5rem, 5vw, 5rem); row-gap: 2.75rem; align-items: center; }
  .steps { grid-column: 1 / -1; }
}

/* Da vicino */
.gallery { padding-block: var(--section); border-top: 1px solid var(--c-line); }
.gallery-grid { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.5rem; }
.gallery-link { display: block; overflow: hidden; border-radius: var(--r-img); background: var(--c-sky); }
.gallery-link img { width: 100%; transition: transform 220ms ease; }
.gallery-link:hover img { transform: scale(1.015); }
.gallery-link:focus-visible { outline-offset: 4px; }
.gallery-item figcaption { margin-top: 0.6rem; font-weight: 500; }
.gallery-item figcaption strong { display: block; font-weight: 600; }
.gallery-item figcaption span { display: block; margin-top: 0.3rem; color: var(--c-ink-soft); font-size: 0.9375rem; font-weight: 400; max-width: 36em; }
@media (min-width: 640px) {
  .gallery-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); column-gap: clamp(1rem, 2vw, 1.5rem); row-gap: 1.25rem; }
  .gi-3 { grid-column: 2; grid-row: 1 / span 2; }
  .gi-3 figure { display: flex; flex-direction: column; height: 100%; }
  .gi-3 .gallery-link { position: relative; flex: 1 1 auto; min-height: 18rem; }
  .gi-3 .gallery-link img { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: var(--fuoco, 50% 30%); }
}

/* Domande */
.faq { padding-block: var(--section); background: var(--c-paper); border-top: 1px solid var(--c-line); }
.faq-grid { display: grid; gap: 1.75rem; }
.faq-intro p { margin-top: 1rem; color: var(--c-ink-soft); max-width: 26em; }
.faq-list { border-top: 2px solid var(--c-ink); }
.faq-item { border-bottom: 1px solid var(--c-line); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 0; cursor: pointer; list-style: none;
  font-size: 1.1875rem; font-weight: 600; line-height: 1.35; transition: color var(--t);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: 2rem; height: 2rem; border: 1px solid var(--c-line); border-radius: 50%;
  background:
    linear-gradient(currentColor, currentColor) center / 0.875rem 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 0.875rem no-repeat;
}
.faq-item[open] summary::after { background-size: 0.875rem 2px, 0 0; }
.faq-item summary:hover { color: var(--c-blue); }
.faq-a { padding: 0 3rem 1.35rem 0; }
.faq-a p { max-width: 40em; }
@media (min-width: 900px) {
  .faq-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
}

/* Contatti */
.contact { padding-block: var(--section); }
.contact-grid { display: grid; gap: 1.5rem; align-items: start; }
.contact-info {
  background: var(--c-blue); color: #fff; border-radius: var(--r-panel);
  padding: clamp(1.5rem, 1rem + 2.4vw, 3rem);
}
.contact-info :focus-visible { outline-color: var(--c-sun); }
.contact-intro { margin-top: 1rem; max-width: 30em; }
.info-block { margin-top: 1.6rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, 0.3); }
.info-block h3 { font-size: 1.375rem; }
.hours { margin-top: 0.6rem; display: grid; gap: 0.3rem; }
.hours div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 1rem; }
.hours dt { font-weight: 500; }
.hours dd { font-variant-numeric: tabular-nums; }
.address { margin-top: 0.5rem; font-size: 1.25rem; font-weight: 600; }
.info-note { margin-top: 0.35rem; font-size: var(--fs-small); color: var(--c-on-blue-soft); }
.email-text { margin-top: 0.5rem; font-weight: 500; }
.channels { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.btn-channel { background: var(--c-paper); color: var(--c-blue); }
.btn-channel:hover { background: var(--c-sky); }

.form-card {
  background: var(--c-paper); border: 1px solid var(--c-line); border-radius: var(--r-panel);
  padding: clamp(1.25rem, 0.8rem + 2vw, 2.5rem);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}
.form-card h3 { font-size: 1.875rem; }
.form-notice {
  margin-top: 0.85rem; padding: 0.85rem 1rem; border-radius: var(--r-btn);
  background: var(--c-sky); font-size: var(--fs-small);
}
.field { display: grid; gap: 0.4rem; margin-top: 1.25rem; }
.field label { font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 3rem; padding: 0.6rem 0.75rem;
  border: 1px solid var(--c-field); border-radius: var(--r-btn); background-color: var(--c-paper);
  color: var(--c-ink); font: inherit;
}
.field textarea { min-height: 7.5rem; resize: vertical; }
.field select {
  appearance: none; padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%2323272B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.75rem center; background-size: 1.25rem;
}
.field :is(input, select, textarea):focus-visible { outline-offset: 1px; border-color: var(--c-blue); }
.field :is(input, select, textarea):disabled { background-color: var(--c-white); cursor: not-allowed; }
.field [aria-invalid="true"] { border: 2px solid var(--c-error); }
.field-error { color: var(--c-error); font-size: var(--fs-small); font-weight: 600; }
.field-hint { font-size: 0.875rem; color: var(--c-ink-soft); }
.service-selection > :not([hidden]) { padding: 0.9rem 1rem; background: var(--c-sky); border-radius: var(--r-btn); font-size: 0.9375rem; }
.selection-label { color: var(--c-ink-soft); font-size: 0.8125rem; }
.selection-facts { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.4rem 1rem; margin: 0.2rem 0 0.4rem; }
.selection-facts strong { font: 600 1.625rem/1.2 var(--f-head); color: var(--c-blue); }
.form-actions { margin-top: 1.5rem; }
.noscript { margin-top: 1rem; font-size: var(--fs-small); }
.preview { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--c-line); }
.preview h3 { font-size: 1.875rem; }
.preview h3:focus { outline: none; }
.preview-notice { margin-top: 0.85rem; padding: 0.85rem 1rem; border: 1px solid var(--c-sun); border-radius: var(--r-btn); background: #FDF5E2; font-weight: 500; }
.preview-text {
  margin-top: 1rem; padding: 1rem 1.15rem; border: 1px solid var(--c-sky-line); border-radius: var(--r-btn);
  background: var(--c-sky); white-space: pre-wrap; user-select: text;
}
.preview-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }
.copy-status { margin-top: 0.85rem; font-weight: 600; color: var(--c-blue); }
.copy-status:empty { margin-top: 0; }
@media (min-width: 960px) {
  .contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(1.5rem, 3vw, 2.75rem); }
}

/* Footer */
.site-footer { background: var(--c-sky); padding-block: clamp(2.5rem, 2rem + 2vw, 3.5rem) 1.5rem; }
.footer-grid { display: grid; gap: 1.75rem; }
.footer-brand p { margin-top: 0.85rem; max-width: 22em; color: var(--c-ink-soft); }
.footer-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.1rem; align-content: start; }
.footer-nav a { display: inline-block; padding: 0.3rem 0; color: var(--c-ink); text-decoration: none; }
.footer-nav a:hover { color: var(--c-blue); text-decoration: underline; }
.footer-side { display: grid; gap: 0.75rem; align-content: start; }
.footer-side .lang { margin-left: -0.5rem; }
.site-footer .lang a[aria-current="page"], .site-footer .lang a:hover { background: var(--c-paper); }
.footer-demo { font-size: var(--fs-small); color: var(--c-ink-soft); max-width: 28em; }
.demo-link { font-weight: 600; }
.demo-info {
  grid-column: 1 / -1; padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
  background: var(--c-paper); border: 1px solid var(--c-sky-line); border-radius: var(--r-panel);
}
.js .site-footer .demo-info { display: none; }
.demo-info h2 { font-size: 1.875rem; margin-bottom: 0.75rem; }
.demo-info p { max-width: 42em; }
.demo-info p + p { margin-top: 0.85rem; }
.footer-bottom {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem;
  padding-top: 1.25rem; border-top: 1px solid var(--c-sky-line); font-size: var(--fs-small); color: var(--c-ink-soft);
}
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr) minmax(0, 1.2fr); column-gap: 3rem; }
}

/* Finestre di dialogo */
.dialog {
  width: min(36rem, calc(100% - 2rem)); max-height: calc(100% - 2rem); padding: clamp(1.4rem, 1rem + 1.6vw, 2.25rem);
  border: 0; border-radius: var(--r-panel); background: var(--c-paper); color: var(--c-ink);
}
.dialog::backdrop { background: rgba(35, 39, 43, 0.62); }
.dialog-title { font-size: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.dialog-title + p { margin-top: 0.85rem; }
.dialog .demo-info { padding: 0; border: 0; background: none; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

.lightbox {
  width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0;
  background: rgba(35, 39, 43, 0.96); color: #fff;
}
.lightbox::backdrop { background: rgba(35, 39, 43, 0.6); }
.lightbox :focus-visible { outline-color: var(--c-sun); }
.lb-inner { height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 0.75rem; padding: 0.75rem clamp(0.75rem, 2vw, 1.5rem) 1rem; }
.lb-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.lb-count { font-weight: 500; }
.lb-figure { min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; }
.lb-img { width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 10.5rem); object-fit: contain; border-radius: 4px; }
.lb-img { transition: opacity 160ms ease; }
.lb-img.is-loading { opacity: 0; }
.lb-caption { text-align: center; font-weight: 500; }
.lb-nav { display: flex; justify-content: center; gap: 1rem; }
.lb-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.55); border-radius: 50%; background: transparent; color: #fff; cursor: pointer;
  transition: background-color var(--t);
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.14); }
.lb-btn svg { width: 1.5rem; height: 1.5rem; }

/* Pagina di ingresso */
.entry { min-height: 100vh; display: grid; place-items: center; }
.entry-box { display: grid; gap: 1.25rem; justify-items: start; padding: 2rem var(--gutter); }

/* Movimento ridotto */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
