/* Garage Trentino — foglio di stile unico per tutte le pagine.
   Layout: fascia scura con titolo "largo" come le scritte cromate del logo,
   poi sezioni chiare alternate (bianco / grigio nebbia) a colonna centrale.
   Unico accento: il blu del tampone da lucidatura. Il verde è solo per WhatsApp. */
:root {
  --graphite: #15181c;      /* fascia hero e footer */
  --graphite-2: #20252b;    /* superfici sopra il grafite */
  --ink: #1a1e23;           /* testo principale */
  --muted: #5b6470;         /* testo secondario */
  --mist: #eef1f4;          /* sezioni alternate */
  --paper: #ffffff;
  --line: #d8dde3;
  --pad: #2b58d4;           /* accento: blu tampone */
  --pad-soft: #e7edfc;
  --pad-on-dark: #8fb0ff;
  --wa: #1c9e52;            /* solo pulsanti WhatsApp */
  --wa-hover: #17874a;
  --on-dark: #f2f4f6;
  --on-dark-muted: #a9b1bb;

  --f-display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --f-body: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 1.4rem + 2.2vw, 2.7rem);
  --step-4: clamp(2.4rem, 1.5rem + 4.4vw, 4.6rem);

  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1160px;
  --radius: 10px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pad); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 3px solid var(--pad); outline-offset: 3px; border-radius: 4px;
}
h1, h2, h3 {
  font-family: var(--f-display);
  font-variation-settings: "wdth" 125;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
}
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-variation-settings: "wdth" 112; font-weight: 700; line-height: 1.2; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

.eyebrow {
  font-family: var(--f-mono);
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--pad);
  font-weight: 500;
}
.lead { font-size: var(--step-1); color: var(--muted); max-width: 60ch; line-height: 1.5; }

/* ---------- pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem/1 var(--f-body);
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-hover); }
.btn-line { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--mist); }
.on-dark .btn-line { color: var(--on-dark); }
.on-dark .btn-line:hover { background: var(--graphite-2); }
.btn-small { min-height: 42px; padding: 0 18px; font-size: .95rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.logo img { height: 40px; width: auto; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem; }
.nav a:hover { color: var(--pad); }
.lang { display: flex; gap: 2px; font-family: var(--f-mono); font-size: .85rem; }
.lang a, .lang span { padding: 6px 8px; border-radius: 6px; text-decoration: none; color: var(--muted); }
.lang span { background: var(--ink); color: var(--paper); }
.lang a:hover { background: var(--mist); color: var(--ink); }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.menu-btn svg { width: 28px; height: 28px; }

@media (max-width: 900px) {
  .site-header .btn-wa { display: none; }
  .menu-btn { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; margin: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--mist); font-size: 1.1rem; }
  .lang { margin-left: 0; }
}

/* ---------- hero ---------- */
.hero { background: var(--graphite); color: var(--on-dark); padding-block: clamp(40px, 7vw, 88px) clamp(40px, 6vw, 72px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero .eyebrow { color: var(--pad-on-dark); }
.hero h1 {
  font-size: var(--step-4);
  margin-top: 14px;
  /* lettering "cromato", come il logo GTn */
  background: linear-gradient(180deg, #ffffff 0%, #dfe4ea 46%, #9aa4b0 54%, #e9edf1 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { color: var(--on-dark-muted); margin-top: 18px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-photo { position: relative; min-width: 0; }
.hero-photo img { border-radius: var(--radius); width: 100%; box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .7); }
.hero-photo figcaption { font-family: var(--f-mono); font-size: .8rem; color: var(--on-dark-muted); margin-top: 10px; }
.specs {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(32px, 5vw, 56px);
  border-top: 1px solid #343b44;
}
.specs div { padding: 18px 16px 0 0; }
.specs dt { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-muted); }
.specs dd { margin: 4px 0 0; font-family: var(--f-display); font-variation-settings: "wdth" 120; font-weight: 700; font-size: var(--step-1); line-height: 1.2; }
.quote {
  margin-top: clamp(32px, 5vw, 48px);
  max-width: 70ch;
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--on-dark);
  border-left: 3px solid var(--pad-on-dark);
  padding-left: 18px;
}
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr 1fr; }
}

/* ---------- sezioni ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section.alt { background: var(--mist); }
.section-head { display: grid; gap: 12px; margin-bottom: clamp(28px, 4vw, 48px); max-width: 760px; }

/* ---------- prima / dopo ---------- */
.ba-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.ba {
  position: relative; aspect-ratio: 900 / 731; max-width: 100%;
  border-radius: var(--radius); overflow: hidden; background: var(--line);
  user-select: none; touch-action: pan-y;
}
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba .ba-after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos, 50%);
  width: 3px; margin-left: -1.5px; background: #fff; pointer-events: none;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .15);
}
.ba-handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px;
  border-radius: 50%; background: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1e23' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E");
  background-size: 24px; background-repeat: no-repeat; background-position: center;
}
.ba input[type=range] {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize;
}
.ba-tag {
  position: absolute; top: 14px; z-index: 1; pointer-events: none;
  padding: 5px 10px; border-radius: 6px;
  background: rgba(21, 24, 28, .82); color: #fff;
  font-family: var(--f-mono); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
}
.ba-tag.l { left: 14px; }
.ba-tag.r { right: 14px; }
.ba-hint { font-family: var(--f-mono); font-size: .85rem; color: var(--muted); margin-top: 10px; text-align: center; }
.ba-text { display: grid; gap: 16px; }
.ba-text ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.ba-text li { display: flex; gap: 10px; }
.ba-text li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: .6em; border-radius: 50%; background: var(--pad); }
@media (max-width: 800px) { .ba-grid { grid-template-columns: 1fr; } }

/* ---------- pacchetti ---------- */
.packages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.pkg {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; height: 100%;
}
.pkg.featured { border: 2px solid var(--pad); }
.pkg img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.pkg-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.pkg-name { font-family: var(--f-mono); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.price { display: flex; align-items: baseline; gap: 8px; }
.price small { font-size: .95rem; color: var(--muted); }
.price strong { font-family: var(--f-display); font-variation-settings: "wdth" 125; font-weight: 800; font-size: 2.4rem; line-height: 1; font-variant-numeric: tabular-nums; }
.pkg ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.pkg li { display: flex; gap: 10px; line-height: 1.4; }
.pkg li svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--pad); }
.pkg li.plus { font-weight: 700; }
.pkg-meta {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0;
  padding-top: 14px; border-top: 1px dashed var(--line);
  font-family: var(--f-mono); font-size: .85rem;
}
.pkg-meta dt { color: var(--muted); }
.pkg-meta dd { margin: 0; font-weight: 500; }
.pkg .btn { margin-top: auto; }
@media (max-width: 960px) { .packages { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }

/* ---------- tariffe ---------- */
.rates { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(28px, 5vw, 64px); margin-top: clamp(40px, 6vw, 64px); }
.rate-table { margin: 0; display: grid; gap: 0; border-top: 2px solid var(--ink); }
.rate-table div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.rate-table dt { color: var(--muted); }
.rate-table dd { margin: 0; font-family: var(--f-mono); font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; }
.rate-note { font-size: var(--step--1); color: var(--muted); margin-top: 14px; }
.includes { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; }
.includes h3 { font-size: 1.05rem; margin-bottom: 6px; }
.includes p { color: var(--muted); font-size: .98rem; }
@media (max-width: 860px) { .rates { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .includes { grid-template-columns: 1fr; } }

/* ---------- servizi extra ---------- */
.extras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.extra { display: grid; gap: 14px; align-content: start; }
.extra img { border-radius: var(--radius); aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.extra p { color: var(--muted); }
@media (max-width: 860px) { .extras { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } .extra img { aspect-ratio: 16 / 10; } }

/* ---------- lavori ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gallery button { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; display: block; }
.gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .3s; }
.gallery button:hover img { transform: scale(1.03); }
@media (max-width: 640px) { .gallery { grid-template-columns: 1fr 1fr; } }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 1000px); max-height: 92vh; }
.lightbox::backdrop { background: rgba(10, 12, 14, .88); }
.lightbox img { max-height: 86vh; width: auto; margin-inline: auto; border-radius: 6px; }
.lightbox button { position: fixed; top: 16px; right: 16px; background: #fff; border: 0; border-radius: 999px; width: 44px; height: 44px; font-size: 1.6rem; line-height: 1; cursor: pointer; }

/* ---------- chi siamo ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.about-photos { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px; align-items: end; }
.about-photos figure { margin: 0; }
.about-photos img { border-radius: var(--radius); width: 100%; }
.about-photos figcaption { font-family: var(--f-mono); font-size: .78rem; color: var(--muted); margin-top: 8px; }
.about-text { display: grid; gap: 16px; }
.about-text p { max-width: 62ch; }
.towns { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 4px 0 0; }
.towns li { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .92rem; background: var(--paper); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

/* ---------- recensioni ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.review { margin: 0; padding: 24px; background: var(--paper); border-radius: var(--radius); display: flex; flex-direction: column; gap: 14px; }
.stars { color: #e3a008; letter-spacing: 2px; font-size: 1.1rem; }
.review blockquote { margin: 0; font-size: 1.05rem; line-height: 1.5; flex: 1; }
.review figcaption { font-weight: 700; font-size: .95rem; }
.review figcaption span { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; }
@media (max-width: 860px) { .reviews { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-weight: 700; font-size: 1.1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-family: var(--f-mono); font-size: 1.5rem; color: var(--pad); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 66ch; }

/* ---------- contatti ---------- */
.contact { background: var(--graphite); color: var(--on-dark); }
.contact .eyebrow { color: var(--pad-on-dark); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact .lead { color: var(--on-dark-muted); margin-top: 14px; }
.contact-list { margin: 0; display: grid; border-top: 1px solid #343b44; }
.contact-list div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid #343b44; }
.contact-list dt { font-family: var(--f-mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--on-dark-muted); padding-top: 3px; }
.contact-list dd { margin: 0; overflow-wrap: anywhere; }
.contact-list a { color: var(--on-dark); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { background: var(--graphite); color: var(--on-dark-muted); border-top: 1px solid #2b3138; padding-block: 28px 96px; font-size: .9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.site-footer a { color: var(--on-dark); }
@media (min-width: 901px) { .site-footer { padding-bottom: 28px; } }

/* ---------- barra mobile ---------- */
.mobile-bar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.mobile-bar .btn { flex: 1; min-height: 48px; padding: 0 12px; }
@media (max-width: 900px) { .mobile-bar { display: flex; } }

/* ---------- pagina testo (privacy) ---------- */
.doc { max-width: 760px; }
.doc h1 { font-size: var(--step-3); margin-bottom: 8px; }
.doc h2 { font-size: var(--step-2); margin: 48px 0 12px; }
.doc h3 { margin: 28px 0 8px; font-size: 1.1rem; }
.doc p, .doc ul { margin: 0 0 12px; }
.doc ul { padding-left: 1.2em; }
