/*
 * Sito vetrina pubblico di CollegioSindacale360 (route pubbliche: /, /collegio-sindacale,
 * /revisione-legale, /revisione-enti-locali, /come-funziona, /prezzi, /faq, /contatti).
 * Usa esclusivamente i token di fenice53-tokens.css. Non dipende da site.css.
 * Niente script inline e niente stili inline (CSP: style-src 'self').
 */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body.vetrina {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-white);
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.vetrina img, .vetrina svg { max-width: 100%; }
.vetrina a { color: var(--color-text); }
.vetrina a:hover { color: var(--brand-coral-hover); }
.vetrina :focus-visible { outline: 3px solid var(--brand-coral); outline-offset: 3px; border-radius: 4px; }

.vt-skip {
  position: absolute; left: 16px; top: 12px; background: var(--color-white); color: var(--color-text);
  padding: 10px 14px; border: 2px solid var(--brand-coral); border-radius: var(--radius-sm); z-index: 100;
  transform: translateY(-200%);
}
.vt-skip:focus { transform: none; }

.vt-container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--gutter); }

/* Suffisso 360 sempre in corallo */
.sfx { color: var(--brand-coral); font-weight: inherit; }

h1, h2, h3 { color: var(--color-text); line-height: 1.2; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--color-text-muted); max-width: 46rem; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--color-text-muted); margin-bottom: 12px; }

/* --- Sezioni: ampi spazi verticali, sfondo prevalentemente bianco --- */
.vt-section { padding: clamp(56px, 8vw, 104px) 0; }
.vt-section-alt { background: var(--color-background); }
.vt-section-head { max-width: 46rem; margin-bottom: clamp(28px, 4vw, 48px); }
.vt-section-head p { color: var(--color-text-muted); margin-top: 14px; }
/* Su sfondo #F3F7FA il grigio ardesia scende a 4,42:1: nelle sezioni alternate il testo
   introduttivo usa il nero grafite (contrasto WCAG AA). */
.vt-section-alt .vt-section-head p, .vt-section-alt .lead, .vt-section-alt > .vt-container > p { color: var(--color-text); }

/* --- Header (glass leggero con fallback opaco) --- */
.vt-header { background: var(--color-white); border-bottom: 1px solid var(--color-border); position: sticky; top: 0; z-index: 50; }
@supports ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
  .vt-header {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  }
}
.vt-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.vt-logo { font-size: 1.2rem; font-weight: 800; color: var(--color-text); text-decoration: none; letter-spacing: -0.01em; }
.vt-logo:hover { color: var(--color-text); }
.vt-actions { display: flex; gap: 10px; align-items: center; }
.vt-navbar { border-top: 1px solid var(--color-border); }
.vt-navrow { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.vt-menu-wrap { display: none; }
.vt-nav { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.vt-nav a {
  display: inline-block; padding: 12px 10px; font-size: .95rem; font-weight: 600; color: var(--color-text);
  text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap;
}
.vt-nav a:hover { color: var(--color-text); border-bottom-color: var(--brand-coral); }
.vt-nav a[aria-current="page"] { border-bottom-color: var(--brand-coral); }
.vt-menu-btn {
  display: none; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; background: var(--color-white);
  color: var(--color-text); border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  font: inherit; font-weight: 600; cursor: pointer;
}
.vt-menu-btn:hover { border-color: var(--brand-coral); }

/* --- Pulsanti: principali con bordo corallo e testo nero, sfondo bianco --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 22px;
  font: inherit; font-weight: 700; font-size: .98rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  border-radius: var(--radius-pill); border: 2px solid var(--brand-coral); background: var(--color-white); color: var(--color-text);
  transition: background-color .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--brand-coral-soft); color: var(--color-text); border-color: var(--brand-coral-hover); }
.btn-ghost { border: 1px solid var(--color-border); font-weight: 600; }
.btn-ghost:hover { border-color: var(--brand-coral); background: var(--color-white); }
.btn-sm { min-height: 38px; padding: 6px 16px; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* --- Hero (home): leggero effetto glass, solo sulla home --- */
.vt-hero {
  padding: clamp(56px, 9vw, 120px) 0 clamp(48px, 7vw, 88px);
  background:
    radial-gradient(60% 70% at 88% 0%, var(--brand-coral-soft) 0%, rgba(255, 241, 236, 0) 70%),
    linear-gradient(180deg, var(--color-white) 0%, var(--color-background) 100%);
}
/* Testo introduttivo dell'hero: nero grafite, per restare sopra 4,5:1 sul fondo sfumato. */
.vt-hero .lead { color: var(--color-text); }
.vt-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.vt-hero h1 { margin-bottom: 22px; max-width: 16ch; }
.vt-hero .lead { margin-bottom: 0; }
.vt-glass {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: clamp(24px, 3vw, 36px);
}
@supports ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
  .vt-glass { background: rgba(255, 255, 255, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
}
.vt-glass-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.vt-glass-list li { display: flex; gap: 14px; align-items: flex-start; }
.vt-glass-list .ico { flex: 0 0 auto; width: 40px; height: 40px; border-radius: var(--radius-md); display: grid; place-items: center; border: 1px solid var(--color-border); background: var(--color-white); color: var(--brand-coral); }
.vt-glass-list strong { display: block; color: var(--color-text); }
.vt-glass-list span { color: var(--color-text-muted); font-size: .95rem; }

/* --- Icone lineari coerenti --- */
.ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ico-coral { color: var(--brand-coral); }

/* --- Card --- */
.vt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 24px; }
.vt-card {
  background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  padding: clamp(24px, 2.6vw, 32px); box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 12px;
}
.vt-card p { color: var(--color-text-muted); margin: 0; }
.vt-card { transition: box-shadow .2s ease, border-color .2s ease; }
.vt-card:hover { border-color: var(--brand-coral-soft); box-shadow: var(--shadow-soft); }
.vt-card .ico { width: 46px; height: 46px; border-radius: var(--radius-md); display: grid; place-items: center; border: 1px solid var(--color-border); color: var(--brand-coral); background: var(--color-white); }
.vt-card .vt-card-link { margin-top: auto; padding-top: 8px; font-weight: 700; text-decoration: none; color: var(--color-text); }
.vt-card .vt-card-link:hover { color: var(--brand-coral-hover); text-decoration: underline; }

/* --- Stati funzionalità --- */
.status { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; line-height: 1; padding: 6px 10px; border-radius: var(--radius-pill); border: 1px solid currentColor; background: var(--color-white); white-space: nowrap; vertical-align: middle; }
.status-available { color: var(--color-success); }
.status-dev { color: var(--color-warning); }

/* --- Lista funzionalità --- */
.vt-feature-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px 24px; }
.vt-feature-list li { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.vt-feature-list li p { margin: 0; color: var(--color-text-muted); font-size: .95rem; }
.vt-feature-list h3 { font-size: 1.05rem; }

/* --- Passaggi "Come funziona" --- */
.vt-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; counter-reset: none; }
.vt-step { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.vt-step .ico { width: 48px; height: 48px; border-radius: var(--radius-md); display: grid; place-items: center; border: 1px solid var(--color-border); color: var(--brand-coral); }
.vt-step .step-num { font-size: .85rem; font-weight: 800; letter-spacing: .06em; color: var(--color-text-muted); }
.vt-step h3 { font-size: 1.1rem; }
.vt-step p { margin: 0; color: var(--color-text-muted); font-size: .97rem; }

/* --- Blocchi testo informativi --- */
.vt-note { border-left: 3px solid var(--brand-coral); padding: 4px 0 4px 18px; color: var(--color-text); max-width: 46rem; }
.vt-note p { margin: 0 0 .6em; color: var(--color-text-muted); }
.vt-pending { border: 1px dashed var(--color-border); border-radius: var(--radius-md); padding: 20px 22px; color: var(--color-text-muted); background: var(--color-white); max-width: 46rem; }

/* --- Piani (prezzi): struttura predisposta, contenuti dal titolare --- */
.vt-plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 24px; }
.vt-plan { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.vt-plan .price { font-size: 1.6rem; font-weight: 800; }

/* --- FAQ --- */
.vt-faq { max-width: 54rem; }
.vt-faq details { border-bottom: 1px solid var(--color-border); }
.vt-faq details:first-child { border-top: 1px solid var(--color-border); }
.vt-faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 700; color: var(--color-text); position: relative; min-height: 44px; display: flex; align-items: center; }
.vt-faq summary::-webkit-details-marker { display: none; }
.vt-faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 500; color: var(--color-text-muted); }
.vt-faq details[open] summary::after { content: "\2013"; }
.vt-faq summary:hover { color: var(--brand-coral-hover); }
.vt-faq .answer { padding: 0 0 20px; color: var(--color-text-muted); }

/* --- Form-less contatti --- */
.vt-contact-card { display: flex; flex-direction: column; gap: 10px; }
.vt-contact-card a.mail { font-size: 1.2rem; font-weight: 700; }

/* --- Responsabilità (footer e banner) --- */
.vt-disclaimer { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 16px 20px; color: var(--color-text-muted); font-size: .95rem; }

/* --- Footer --- */
.vt-footer { background: var(--color-white); border-top: 1px solid var(--color-border); padding: 56px 0 36px; font-size: .95rem; }
.vt-footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
.vt-footer h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--color-text-muted); margin-bottom: 12px; font-weight: 700; }
.vt-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.vt-footer a { text-decoration: none; color: var(--color-text); }
.vt-footer a:hover { color: var(--brand-coral-hover); text-decoration: underline; }
.vt-footer .vt-disclaimer { margin-top: 28px; }
.vt-footer-brand { font-size: 1.1rem; margin: 0 0 10px; }
.vt-footer-tag { margin: 0; color: var(--color-text-muted); }
.vt-footer .copy { margin-top: 20px; color: var(--color-text-muted); font-size: .85rem; }

/* --- Responsive --- */
/* Sotto 1100px il menu diventa a tendina. Senza JavaScript la lista resta visibile
   (progressive enhancement: lo script aggiunge la classe .js sull'elemento html). */
@media (max-width: 1100px) {
  .vt-navrow { flex-direction: column; align-items: stretch; gap: 0; }
  .vt-menu-wrap { display: flex; justify-content: flex-end; padding: 6px 0; }
  .vt-nav { flex-direction: column; gap: 0; padding-bottom: 6px; }
  .vt-nav a { display: block; padding: 12px 6px; border-bottom: 0; border-left: 3px solid transparent; }
  .vt-nav a:hover, .vt-nav a[aria-current="page"] { border-left-color: var(--brand-coral); }
  .js .vt-menu-btn { display: inline-flex; }
  .js .vt-nav { display: none; }
  .js .vt-navbar.is-open .vt-nav { display: flex; }
}
@media (max-width: 960px) {
  .vt-hero-grid { grid-template-columns: 1fr; }
  .vt-footer-grid { grid-template-columns: 1fr 1fr; }
  .vt-footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .vt-container { padding: 0 var(--gutter-mobile); }
  body.vetrina { font-size: 1rem; }
  .vt-actions { width: 100%; }
  .vt-actions .btn { flex: 1 1 0; padding: 10px 12px; min-width: 0; }
  .btn-row .btn { width: 100%; }
  .vt-footer-grid { grid-template-columns: 1fr; }
  .vt-faq summary { padding-right: 36px; }
}
