/* ============================================================
   Ferramenta Mosoni — modern static site
   Design: palette ispirata al logo — azzurro + verde + petrolio
   ============================================================ */

:root {
  --bg: #f5f9f6;
  --surface: #ffffff;
  --ink: #14242e;
  --ink-2: #28383f;
  --muted: #5c6b72;
  --line: #dde8e1;
  --brand: #4e9e3a;
  --brand-2: #3b7d2c;
  --brand-soft: #e7f3df;
  --azure: #3d8bbe;
  --azure-2: #2c6d99;
  --azure-soft: #e2eff8;
  --dark: #0f2330;
  --dark-2: #173244;
  --green: #1e9e6a;
  --red: #d64545;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(15, 35, 48, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 35, 48, 0.14);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --container: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: min(var(--container), 92vw);
  margin-inline: auto;
}

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.25rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--brand-2);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--brand); border-radius: 2px; }
.lead { color: var(--muted); font-size: 1.08rem; max-width: 62ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.85rem 1.6rem; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; cursor: pointer;
  border: 2px solid transparent; transition: all 0.25s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-2); transform: translateY(-2px); box-shadow: 0 12px 24px rgba(78, 158, 58, 0.35); }
.btn-ghost { border-color: rgba(255,255,255,0.5); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-whatsapp { background: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1eb856; transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(245, 249, 246, 0.88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(0,0,0,0.05); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 1rem; }
.brand { display: flex; align-items: center; }
.brand-img { height: 46px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 0.35rem; }
.main-nav a {
  padding: 0.55rem 0.95rem; border-radius: 999px;
  font-size: 0.92rem; font-weight: 500; color: var(--ink-2);
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover { background: var(--brand-soft); color: var(--brand-2); }
.main-nav a.active { background: var(--ink); color: #fff; }
.header-cta { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1.2rem; }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; border-radius: 10px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px auto; border-radius: 2px; transition: 0.3s; }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--surface); padding: 1rem 5vw 1.4rem;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: 0.25s ease;
  }
  .main-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav a { padding: 0.8rem 1rem; }
  .header-cta { display: none; }
  .nav-whatsapp { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; margin-top: 0.6rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 82vh;
  display: flex; align-items: center;
  color: #fff; overflow: hidden; isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(105deg, rgba(11,29,40,0.92) 20%, rgba(11,29,40,0.55) 60%, rgba(11,29,40,0.25)),
    var(--img, url("/images/negozio.jpg")) center/cover no-repeat,
    var(--dark);
}
.hero-content { padding: 6rem 0 7rem; max-width: 720px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: rgba(61,139,190,0.22); border: 1px solid rgba(61,139,190,0.55);
  color: #9cccec; padding: 0.45rem 1rem; border-radius: 999px;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 1.4rem;
}
.hero h1 { margin-bottom: 1.2rem; }
.hero h1 em { font-style: italic; color: #9cccec; }
.hero p { font-size: 1.15rem; color: rgba(255,255,255,0.82); max-width: 56ch; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 2.6rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16);
  backdrop-filter: blur(6px); padding: 0.5rem 1rem; border-radius: 999px;
  font-size: 0.85rem; color: rgba(255,255,255,0.9);
}
.chip svg { width: 15px; height: 15px; color: #9cccec; }

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; }
.section-alt { background: var(--surface); }
.section-dark { background: var(--dark); color: #fff; }
.section-head { max-width: 680px; margin-bottom: 3rem; }
.section-head h2 { margin: 0.6rem 0 0.9rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.8rem;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(78,158,58,0.4); }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--brand-soft); color: var(--brand-2);
  display: grid; place-items: center; margin-bottom: 1.1rem;
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.95rem; }

/* card servizio con foto di copertina */
.card-img { padding: 0; overflow: hidden; }
.svc-img { width: 100%; height: 160px; object-fit: cover; display: block; }
.svc-body { padding: 0 1.8rem 1.8rem; }
.svc-body .card-icon {
  margin-top: -26px; position: relative;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}

/* ---------- Category strip ---------- */
.cat-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  min-height: 190px; display: flex; align-items: flex-end;
  color: #fff; isolation: isolate;
  transition: transform 0.3s;
}
.cat-card:hover { transform: translateY(-5px); }
.cat-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: var(--img), linear-gradient(160deg, #173244, #0f2330);
  background-size: cover; background-position: center;
  transition: transform 0.5s;
}
.cat-card:hover::before { transform: scale(1.06); }
.cat-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(11,29,40,0.85), rgba(11,29,40,0.08) 60%);
}
.cat-card div { padding: 1.3rem 1.4rem; }
.cat-card h3 { font-size: 1.15rem; }
.cat-card span { font-size: 0.82rem; color: rgba(255,255,255,0.75); }

/* ---------- Story split ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3.5rem; align-items: center; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 2rem; } }
.split-media {
  position: relative; border-radius: var(--radius); overflow: hidden;
  min-height: 420px;
  background-image: var(--img), linear-gradient(160deg, #173244, #0f2330);
  background-size: cover; background-position: center;
  box-shadow: var(--shadow-lg);
}
.split-media .year-badge,
.tl-preview .year-badge {
  position: absolute; bottom: 1.4rem; left: 1.4rem;
  background: var(--brand); color: #fff; border-radius: 14px;
  padding: 0.9rem 1.3rem; text-align: center; line-height: 1.1;
  box-shadow: 0 10px 26px rgba(0,0,0,0.3);
}
.year-badge b { font-family: var(--font-display); font-size: 1.9rem; display: block; }
.year-badge small { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; }
.split-body h2 { margin: 0.6rem 0 1.1rem; }
.split-body p { color: var(--muted); margin-bottom: 1rem; }
.check-list { margin: 1.4rem 0 1.8rem; display: grid; gap: 0.7rem; }
.check-list li { display: flex; gap: 0.7rem; align-items: flex-start; font-weight: 500; font-size: 0.97rem; }
.check-list svg { width: 20px; height: 20px; color: var(--brand-2); flex-shrink: 0; margin-top: 2px; }

/* ---------- Product cards ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2.4rem; }
.filter-btn {
  padding: 0.55rem 1.15rem; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--surface);
  font-size: 0.88rem; font-weight: 600; color: var(--muted);
  cursor: pointer; transition: 0.2s;
}
.filter-btn:hover { border-color: var(--brand); color: var(--brand-2); }
.filter-btn.active { background: var(--ink); border-color: var(--ink); color: #fff; }

.product-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-media {
  position: relative; aspect-ratio: 4/3;
  background-image: var(--img), linear-gradient(150deg, #efe9df, #ded5c6);
  background-size: cover; background-position: center;
}
.product-badges { position: absolute; top: 0.9rem; left: 0.9rem; display: flex; flex-direction: column; gap: 0.4rem; align-items: flex-start; }
.badge {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em;
  padding: 0.3rem 0.7rem; border-radius: 999px; text-transform: uppercase;
}
.badge-discount { background: var(--red); color: #fff; }
.badge-tag { background: var(--ink); color: #fff; }
.badge-tag.new { background: var(--green); color: #fff; }
.product-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.product-cat { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-2); font-weight: 700; margin-bottom: 0.35rem; }
.product-body h3 { font-size: 1.12rem; margin-bottom: 0.35rem; }
.product-body > p { color: var(--muted); font-size: 0.9rem; flex: 1; }
.price-row { display: flex; align-items: baseline; gap: 0.7rem; margin-top: 1rem; }
.price { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--ink); }
.price-old { color: var(--muted); text-decoration: line-through; font-size: 0.98rem; }
.product-note { font-size: 0.8rem; color: var(--muted); margin-top: 0.5rem; }
.product-cta { margin-top: 1.1rem; padding: 0.65rem 1.2rem; font-size: 0.85rem; justify-content: center; }

/* ---------- CTA banner ---------- */
.cta-banner {
  border-radius: calc(var(--radius) + 6px);
  background:
    linear-gradient(100deg, rgba(11,29,40,0.94) 35%, rgba(11,29,40,0.6)),
    url("/images/negozio.jpg") center/cover;
  color: #fff; padding: 4rem 3rem;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.cta-banner h2 { margin-bottom: 0.6rem; }
.cta-banner p { color: rgba(255,255,255,0.78); max-width: 48ch; }
.cta-banner .actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }
@media (max-width: 640px) { .cta-banner { padding: 2.6rem 1.6rem; } }

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.stat b { font-family: var(--font-display); font-size: clamp(1.9rem, 3.4vw, 2.6rem); color: var(--brand); display: block; }
.stat span { color: rgba(255,255,255,0.65); font-size: 0.9rem; }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); gap: 1.6rem; } }

/* ---------- Brands ---------- */
.brand-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; display: flex; flex-direction: column; gap: 0.5rem;
  transition: 0.3s;
}
.brand-card:hover { border-color: rgba(78,158,58,0.45); box-shadow: var(--shadow); transform: translateY(-4px); }
.brand-logo {
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 700;
  color: var(--ink); display: flex; align-items: center; gap: 0.6rem;
}
.brand-logo::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--brand); }
.brand-logo img { max-height: 46px; width: auto; max-width: 190px; object-fit: contain; }
.brand-logo:has(img)::before { display: none; }
.brand-card p { color: var(--muted); font-size: 0.9rem; flex: 1; }
.brand-link { font-size: 0.85rem; font-weight: 600; color: var(--brand-2); display: inline-flex; align-items: center; gap: 0.3rem; }
.brand-link:hover { text-decoration: underline; }

/* ---------- Strip loghi marchi (home) ---------- */
.logo-strip {
  border-block: 1px solid var(--line); background: var(--surface);
  overflow: hidden; padding: 1.1rem 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.logo-track { display: flex; gap: 3.6rem; width: max-content; animation: logoScroll 46s linear infinite; }
.logo-strip:hover .logo-track, .logo-strip:focus-within .logo-track { animation-play-state: paused; }
.logo-track a { display: flex; align-items: center; height: 46px; flex: none; }
.logo-track img {
  max-height: 46px; width: auto; max-width: 140px; object-fit: contain;
  filter: grayscale(1); opacity: 0.6; transition: filter 0.3s, opacity 0.3s, transform 0.3s;
}
.logo-track a:hover img, .logo-track a:focus-visible img { filter: none; opacity: 1; transform: scale(1.14); }
@keyframes logoScroll { to { transform: translateX(calc(-50% - 1.8rem)); } }
@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; }
  .logo-strip { overflow-x: auto; }
}

/* ---------- Cataloghi: banner promo + accordion per marchio ---------- */
.cat-banner {
  display: flex; align-items: center; gap: 1.3rem;
  background: linear-gradient(90deg, var(--azure), var(--azure-2));
  color: #fff; border-radius: var(--radius); padding: 1.1rem 1.6rem;
  margin-bottom: 1.6rem; box-shadow: var(--shadow); transition: transform 0.3s, box-shadow 0.3s;
}
.cat-banner:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.cat-banner img { height: 44px; width: auto; }
.cat-banner strong { flex: 1; font-size: 1.02rem; }

.cat-groups { display: grid; gap: 1rem; }
.cat-group {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.cat-group summary {
  display: flex; align-items: center; gap: 1.1rem;
  padding: 1rem 1.4rem; cursor: pointer; list-style: none; user-select: none;
}
.cat-group summary::-webkit-details-marker { display: none; }
.cat-group summary:hover { background: var(--brand-soft); }
.cg-logo { height: 40px; max-width: 160px; width: auto; object-fit: contain; }
.cg-name { flex: 1; font-weight: 700; font-size: 1.08rem; }
.cat-group summary svg { color: var(--muted); transform: rotate(90deg); transition: transform 0.25s; flex-shrink: 0; }
.cat-group[open] summary svg { transform: rotate(-90deg); }
.cg-body { border-top: 1px solid var(--line); padding: 1.5rem; }

/* marchio con un solo link: riga-pulsante invece di menu a tendina */
.cat-single {
  display: flex; align-items: center; gap: 1.1rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.05rem 1.3rem; transition: 0.25s;
}
.cat-single:hover { background: var(--brand-soft); border-color: rgba(78,158,58,0.4); transform: translateY(-2px); }
.cat-single svg { color: var(--muted); flex-shrink: 0; }
.cs-label { color: var(--muted); font-size: 0.85rem; font-weight: 600; }

.cat-links {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem;
}
.cat-link {
  display: flex; flex-direction: column; gap: 0.7rem;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 1.1rem; background: var(--bg); transition: 0.25s; text-align: left;
}
.cat-link img { width: 100%; height: 120px; object-fit: contain; }
.cat-link:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-3px); }
.cat-link span { font-weight: 600; font-size: 0.93rem; }
.cat-link svg { color: var(--brand-2); margin-left: auto; }

.cat-products {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem;
  margin-bottom: 1.4rem;
}
.cat-prod {
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 1.1rem; background: var(--bg); text-align: center; transition: 0.25s;
}
.cat-prod:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-3px); }
.cat-prod img { width: 100%; height: 150px; object-fit: contain; margin-bottom: 0.7rem; }
.cat-prod strong { font-size: 0.9rem; }

/* ---------- Contact ---------- */
.info-card { display: flex; gap: 1.1rem; align-items: flex-start; }
.info-card .card-icon { width: 46px; height: 46px; margin: 0; flex-shrink: 0; }
.info-card h3 { font-size: 1.05rem; margin-bottom: 0.2rem; }
.info-card p, .info-card a { color: var(--muted); font-size: 0.94rem; }
.info-card a:hover { color: var(--brand-2); }
.info-card a strong { color: var(--ink); font-size: 1.05rem; }
.info-card a strong:hover { color: var(--brand-2); }

.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 2.6rem; align-items: start; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2.2rem; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1.1rem; }
.field label { font-size: 0.85rem; font-weight: 600; }
.field input, .field select, .field textarea {
  font: inherit; padding: 0.75rem 1rem; border-radius: 10px;
  border: 1.5px solid var(--line); background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(78,158,58,0.15);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.8rem; color: var(--muted); margin-top: 0.9rem; }
.form-success { display: none; background: #e8f7ef; border: 1px solid #bfe6d2; color: #146c46; border-radius: 10px; padding: 0.9rem 1.1rem; margin-bottom: 1.2rem; font-size: 0.92rem; }
.form-success.show { display: block; }

/* ---------- Hours ---------- */
.hours-card { background: var(--dark); color: #fff; border-radius: var(--radius); padding: 2rem; }
.hours-card h3 { margin-bottom: 1.2rem; display: flex; align-items: center; gap: 0.7rem; }
.status-pill {
  font-family: var(--font-body); font-size: 0.75rem; font-weight: 700;
  padding: 0.3rem 0.8rem; border-radius: 999px; letter-spacing: 0.06em; text-transform: uppercase;
}
.status-pill.open { background: rgba(30,158,106,0.2); color: #4ed6a0; border: 1px solid rgba(30,158,106,0.5); }
.status-pill.closed { background: rgba(214,69,69,0.18); color: #ff9b9b; border: 1px solid rgba(214,69,69,0.45); }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: 0.7rem 0; border-bottom: 1px solid rgba(255,255,255,0.09); font-size: 0.95rem; }
.hours-table tr:last-child td { border-bottom: none; }
.hours-table td:first-child { color: rgba(255,255,255,0.6); }
.hours-table td:last-child { text-align: right; font-weight: 600; }
.hours-table tr.today td { color: #9cccec; font-weight: 700; }
.hours-table tr.today td:first-child { color: #9cccec; }

.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.map-frame iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: rgba(255,255,255,0.72); padding: 4.5rem 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: #fff; font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer-grid ul { display: grid; gap: 0.6rem; font-size: 0.93rem; }
.footer-grid a:hover { color: #9cccec; }
.footer-brand p { font-size: 0.93rem; max-width: 34ch; margin-top: 0.9rem; }
.footer-brand .brand-img { height: 40px; }
.social-link { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1.2rem; color: #9cccec; font-weight: 600; font-size: 0.9rem; }
.social-link svg { width: 18px; height: 18px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.4rem 0; font-size: 0.8rem; color: rgba(255,255,255,0.45);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.footer-bottom a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom a:hover { color: #9cccec; }

/* ---------- Legal page (privacy/cookie policy) ---------- */
.legal { max-width: 780px; }
.legal-updated { font-size: 0.85rem; color: var(--muted); margin-bottom: 2.2rem; }
.legal-block { margin-bottom: 2.4rem; }
.legal-block h2 { font-size: 1.3rem; margin-bottom: 0.7rem; }
.legal-block p, .legal-block li { color: var(--muted); line-height: 1.75; }
.legal-block ul { padding-left: 1.25rem; margin: 0.6rem 0; }
.legal-block li { margin-bottom: 0.45rem; }
.legal-block a { color: var(--brand); }
.legal-block code {
  background: var(--surface); border: 1px solid rgba(15,35,48,0.08);
  border-radius: 6px; padding: 0.1em 0.4em; font-size: 0.85em;
}

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Language switcher ---------- */
.header-right { display: flex; align-items: center; gap: 0.9rem; }
.lang-switch { display: flex; gap: 0.15rem; border: 1px solid var(--line); border-radius: 999px; padding: 0.2rem; }
.lang-switch a {
  padding: 0.35rem 0.55rem; border-radius: 999px; color: var(--muted);
  display: flex; align-items: center;
}
.lang-switch a img { width: 19px; height: auto; border-radius: 3px; display: block; }
.lang-switch a:hover { color: var(--brand-2); }
.lang-switch a.current { background: var(--ink); color: #fff; }
.nav-whatsapp { display: none; }
@media (max-width: 880px) { .lang-switch { display: flex; } .nav-whatsapp svg { width: 18px; height: 18px; } }

/* hours note inside dark card */
.hours-note { margin-top: 1.2rem; font-size: 0.82rem; color: rgba(255,255,255,0.5); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background:
    linear-gradient(100deg, rgba(11,29,40,0.93) 30%, rgba(11,29,40,0.55)),
    var(--img, linear-gradient(150deg, #173244, #0f2330)) center/cover;
  color: #fff; padding: 5.5rem 0;
}
.page-hero h1 { margin: 0.6rem 0 0.9rem; }
.page-hero p { color: rgba(255,255,255,0.78); max-width: 58ch; font-size: 1.08rem; }

/* ---------- Gallery grid + lightbox ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.g-item {
  position: relative; display: block; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; background: var(--dark);
}
.g-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s; }
.g-item:hover img { transform: scale(1.05); }
.g-zoom {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(15,35,48,0.4); color: #fff; opacity: 0; transition: opacity 0.3s;
}
.g-item:hover .g-zoom, .g-item:focus-visible .g-zoom { opacity: 1; }
.g-zoom svg { width: 34px; height: 34px; }
@media (max-width: 760px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .gallery-grid { grid-template-columns: 1fr; } }

.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(10,22,31,0.93);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: min(92vw, 1100px); max-height: 84vh;
  border-radius: var(--radius); box-shadow: var(--shadow-lg); object-fit: contain;
}
.lightbox button {
  position: absolute; width: 46px; height: 46px; border-radius: 50%; border: none;
  background: rgba(255,255,255,0.14); color: #fff; cursor: pointer;
  display: grid; place-items: center; font-size: 1.6rem; line-height: 1;
  transition: background 0.25s;
}
.lightbox button:hover { background: var(--brand); }
.lb-close { top: 1.3rem; right: 1.3rem; }
.lb-prev { left: 1.3rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1.3rem; top: 50%; transform: translateY(-50%); }
.lb-count {
  position: absolute; bottom: 1.3rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.75); font-size: 0.85rem; font-weight: 600;
}

/* ---------- Story page: timeline ---------- */
.timeline {
  margin-top: 2rem; padding-left: 2.2rem; position: relative;
  border-left: 2px solid var(--line);
}
.tl-item {
  position: relative; padding: 0.55rem 0.9rem 1.6rem; margin-left: -0.9rem;
  border-radius: var(--radius-sm); cursor: pointer; transition: background 0.25s;
}
.tl-item:last-child { padding-bottom: 0.55rem; }
.tl-item:hover, .tl-item:focus-visible, .tl-item.active { background: var(--brand-soft); }
.tl-item:hover::before, .tl-item.active::before { transform: scale(1.35); }
.tl-item.active .tl-year { color: var(--brand); }
.tl-item::before {
  content: ""; position: absolute; left: calc(-1.3rem - 7px); top: 0.95rem;
  width: 12px; height: 12px; border-radius: 50%; transition: transform 0.25s;
  background: var(--brand); border: 3px solid var(--bg); box-shadow: 0 0 0 2px var(--brand);
}
.tl-year {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 600;
  color: var(--brand-2); display: block; margin-bottom: 0.15rem;
}
.tl-item h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.tl-item p { color: var(--muted); font-size: 0.95rem; }

/* anteprima foto sincronizzata con la timeline (hover / focus / scroll) */
.tl-preview {
  position: sticky; top: 6.5rem; align-self: start;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3; background: var(--dark);
}
.tl-preview img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: opacity 0.35s;
}
@media (max-width: 880px) { .tl-preview { position: relative; top: 0; order: -1; } }

/* ---------- Story page: photo strip ---------- */
.photo-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.photo-strip img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
@media (max-width: 760px) { .photo-strip { grid-template-columns: 1fr; } }

/* ---------- Story page: team ---------- */
.member-card { text-align: center; padding: 2rem 1.4rem; }
.member-photo {
  width: 110px; height: 110px; border-radius: 50%; object-fit: cover;
  margin: 0 auto 1.1rem; box-shadow: var(--shadow);
}
.member-avatar {
  width: 110px; height: 110px; border-radius: 50%;
  margin: 0 auto 1.1rem; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-2);
  font-family: var(--font-display); font-size: 1.9rem; font-weight: 600;
}
.member-card p { color: var(--muted); font-size: 0.88rem; }

/* ---------- Story page: reviews ---------- */
.review-card { position: relative; padding: 2rem 1.7rem 1.6rem; }
.review-card::before {
  content: "\201C"; font-family: var(--font-display); font-size: 3.6rem;
  color: var(--brand); line-height: 1; display: block; margin-bottom: 0.4rem;
}
.review-card p { color: var(--ink-2); font-size: 0.98rem; }
.review-card cite {
  display: block; margin-top: 1rem; font-style: normal;
  font-weight: 600; font-size: 0.85rem; color: var(--brand-2);
}
