/* =========================================================
   Mormile Arredamenti — stile chiaro ed essenziale
   Un solo font (Manrope), fondo bianco, foto protagoniste.
   ========================================================= */

/* Font Manrope ospitato sul sito (niente richieste a Google Fonts: più veloce e conforme GDPR) */
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/manrope-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/manrope-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }


:root {
  --bg: #ffffff;
  --bg-soft: #f6f4f0;
  --bg-dark: #1c1c1c;
  --text: #1c1c1c;
  --muted: #6a6a6a;
  --line: #e7e3dc;
  --accent: #b08a3e;      /* oro del logo 40 anni, solo per piccoli dettagli */
  --font: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 100px; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Tipografia ---------- */
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -.02em; line-height: 1.12; margin: 0; }
.h1 { font-size: clamp(38px, 5.4vw, 72px); font-weight: 600; letter-spacing: -.03em; line-height: 1.04; }
.h2 { font-size: clamp(30px, 3.6vw, 48px); }
.h3 { font-size: clamp(22px, 2vw, 28px); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 16px; }
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.6; color: var(--muted); margin: 0; max-width: 62ch; }
.muted { color: var(--muted); }
.prose p { margin: 0 0 1.1em; color: #3d3d3d; }
.prose p:last-child { margin-bottom: 0; }

/* ---------- Bottoni ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 26px; font-size: 15px; font-weight: 600; text-decoration: none; border: 1px solid transparent; border-radius: 999px; transition: background .2s, color .2s, border-color .2s; white-space: nowrap; }
.btn-dark { background: var(--text); color: #fff; }
.btn-dark:hover { background: #3a3a3a; }
.btn-light { background: #fff; color: var(--text); }
.btn-light:hover { background: var(--bg-soft); }
.btn-outline { border-color: var(--text); color: var(--text); background: transparent; }
.btn-outline:hover { background: var(--text); color: #fff; }
.link { font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link:hover { color: var(--accent); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ---------- Top bar ---------- */
.topbar { background: var(--bg-soft); font-size: 13px; color: var(--muted); }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.topbar-right { display: flex; gap: 24px; }
.topbar a { text-decoration: none; color: var(--text); font-weight: 600; }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #3f9a54; margin-right: 8px; vertical-align: 1px; }
.status-dot.closed { background: #c2533f; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; gap: 32px; height: 84px; }
/* Il logo originale ha "mor" bianco: lo rendiamo scuro mantenendo il grigio e la virgola rossa */
.brand img, .logo-dark { filter: invert(1) hue-rotate(180deg); }
.brand { flex: none; display: block; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--text); padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav a:hover { color: var(--accent); }
.nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.header-cta { padding: 11px 20px; font-size: 14px; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: #fff; margin-left: auto; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.burger span { width: 18px; height: 1.5px; background: var(--text); transition: transform .25s; }
body.nav-open .burger span:first-child { transform: translateY(3.75px) rotate(45deg); }
body.nav-open .burger span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

@media (max-width: 1100px) {
  .header-cta { display: none; }
  .burger { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; height: calc(100dvh - 84px); background: #fff; flex-direction: column; gap: 0; margin: 0;
    padding: 12px var(--gutter) 40px; overflow: auto; opacity: 0; pointer-events: none; transform: translateY(-6px); transition: .2s var(--ease);
  }
  .nav a { font-size: 24px; font-weight: 600; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--line); }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav { opacity: 1; pointer-events: auto; transform: none; }
}
@media (max-width: 640px) {
  .hide-sm { display: none; }
  .header .wrap { height: 70px; }
  .brand img { height: 36px; }
  .nav { height: calc(100dvh - 70px); }
}

/* ---------- Sezioni ---------- */
.section { padding: clamp(64px, 9vw, 128px) 0; }
.section-soft { background: var(--bg-soft); }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 56px); }
.head > div { max-width: 680px; }
.head .lead { margin-top: 16px; }

/* Intestazione delle pagine interne */
.page-head { padding: clamp(48px, 7vw, 96px) 0 clamp(32px, 4vw, 56px); }
.page-head .lead { margin-top: 20px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 22px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.page-cover { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; background: var(--bg-soft); }
@media (max-width: 760px) { .page-cover { aspect-ratio: 4 / 3; } }

/* ---------- Home: hero ---------- */
.hero-img { position: relative; height: min(72vh, 760px); min-height: 380px; background: var(--bg-soft); overflow: hidden; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero-img img.is-active { opacity: 1; }
.hero-text { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px 80px; align-items: end; padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 6vw, 88px); }
.hero-text .lead { margin-bottom: 28px; }
@media (max-width: 900px) { .hero-text { grid-template-columns: 1fr; } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 28px 24px 0 0; }
.stat b { display: block; font-size: clamp(32px, 3.4vw, 46px); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.stat span { font-size: 15px; color: var(--muted); }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; gap: 0 16px; } }

/* ---------- Griglie di immagini ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 24px; }
.tile { text-decoration: none; display: block; }
.tile-img { overflow: hidden; background: var(--bg-soft); aspect-ratio: 4 / 3; }
.tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.tile:hover .tile-img img { transform: scale(1.04); }
.tile h3 { font-size: 21px; margin-top: 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tile h3::after { content: "→"; font-weight: 400; transition: transform .2s; }
.tile:hover h3::after { transform: translateX(4px); }
.tile p { margin: 6px 0 0; font-size: 15px; color: var(--muted); }
@media (max-width: 900px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } }

/* ---------- Blocco immagine + testo ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.split-img img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; background: var(--bg-soft); }
.split .lead { margin: 18px 0 28px; }
.checks { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 12px; }
.checks li { padding-left: 30px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 16px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }

/* ---------- Servizi / card testuali ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.feature { border-top: 1px solid var(--text); padding-top: 22px; }
.feature span { font-size: 14px; font-weight: 600; color: var(--accent); }
.feature h3 { font-size: 20px; margin: 10px 0 8px; }
.feature p { margin: 0; font-size: 15.5px; color: var(--muted); }
@media (max-width: 1000px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* Servizi dettagliati */
.service { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; padding: clamp(40px, 5vw, 72px) 0; border-top: 1px solid var(--line); }
.service:nth-child(even) > .service-img { order: 2; }
.service-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--bg-soft); }
.service h2 { font-size: clamp(26px, 2.6vw, 36px); margin: 8px 0 18px; }
@media (max-width: 900px) { .service { grid-template-columns: 1fr; } .service:nth-child(even) > .service-img { order: 0; } }

/* Passi del percorso */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-size: 15px; font-weight: 700; color: var(--accent); padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.steps h3 { font-size: 19px; margin-bottom: 8px; }
.steps p { margin: 0; font-size: 15px; color: var(--muted); }
@media (max-width: 1000px) { .steps { grid-template-columns: 1fr 1fr; gap: 32px 24px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Banda invito ---------- */
.cta-band { position: relative; color: #fff; background: var(--bg-dark); overflow: hidden; }
.cta-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.cta-band .wrap { position: relative; padding-top: clamp(72px, 10vw, 140px); padding-bottom: clamp(72px, 10vw, 140px); }
.cta-band .lead { color: rgba(255,255,255,.85); margin: 18px 0 32px; }
.cta-band .btn-outline { border-color: #fff; color: #fff; }
.cta-band .btn-outline:hover { background: #fff; color: var(--text); }

/* ---------- Marchi ---------- */
.brands { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.brands div { display: grid; place-items: center; text-align: center; min-height: 104px; padding: 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.brands small { display: block; font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
@media (max-width: 1000px) { .brands { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .brands { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Azienda: storia ---------- */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: grid; grid-template-columns: 160px 1fr; gap: 32px; padding: 32px 0; border-top: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline .year { font-size: 40px; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.timeline h3 { font-size: 21px; margin-bottom: 8px; }
.timeline p { margin: 0; color: var(--muted); }
@media (max-width: 700px) { .timeline li { grid-template-columns: 1fr; gap: 10px; } .timeline .year { font-size: 32px; } }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.values h3 { font-size: 21px; margin: 0 0 10px; }
.values p { margin: 0; color: var(--muted); }
@media (max-width: 800px) { .values { grid-template-columns: 1fr; } }
.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; background: var(--bg-soft); }
.gallery img:first-child { grid-row: span 2; aspect-ratio: 4 / 3; }
@media (max-width: 700px) { .gallery { grid-template-columns: 1fr; grid-template-rows: none; } .gallery img:first-child { grid-row: auto; } }

/* ---------- Staff ---------- */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 24px; }
.team-lg { grid-template-columns: repeat(3, 1fr); }
.person-img { aspect-ratio: 1; background: var(--bg-soft); display: grid; place-items: center; overflow: hidden; }
.person-img img { width: 100%; height: 100%; object-fit: cover; }
.person-img .initials { font-size: 44px; font-weight: 600; color: #c9c3b8; letter-spacing: -.02em; }
.person h3 { font-size: 19px; margin-top: 16px; }
.person .role { font-size: 15px; color: var(--accent); font-weight: 600; margin: 2px 0 8px; }
.person p { margin: 0; font-size: 15px; color: var(--muted); }
.person.todo .person-img { border: 1px dashed #cfc8bb; }
.todo-note { display: inline-block; font-size: 13px; background: #fff4d6; color: #7a5a12; padding: 6px 12px; border-radius: 999px; margin-top: 16px; }
@media (max-width: 1000px) { .team, .team-lg { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .team, .team-lg { grid-template-columns: 1fr; } }

/* ---------- Contatti ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.info-list { display: grid; gap: 0; margin: 0; }
.info-list > div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.info-list > div:last-child { border-bottom: 1px solid var(--line); }
.info-list dt { font-size: 14px; font-weight: 600; color: var(--muted); }
.info-list dd { margin: 0; }
.info-list a { text-decoration: none; font-weight: 600; }
.hours { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 360px; }
.hours li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.hours li > span:last-child { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.hours time, .hours span { white-space: nowrap; font-variant-numeric: tabular-nums; }
.hours li.today { color: var(--accent); font-weight: 600; }
.hours li.today > span:first-child::after { content: "oggi"; margin-left: 8px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; border: 1px solid currentColor; vertical-align: 2px; }
.map { position: relative; aspect-ratio: 16 / 9; background: var(--bg-soft); margin-top: 32px; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-btn { position: absolute; inset: 0; width: 100%; border: 0; background: var(--bg-soft) center / cover; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 24px; }
.map-btn b { background: #fff; padding: 12px 22px; border-radius: 999px; font-weight: 600; box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.map-btn small { color: var(--muted); font-size: 13px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .info-list > div { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- Form ---------- */
.form-card { background: var(--bg-soft); padding: clamp(24px, 4vw, 48px); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field.full, .form .full { grid-column: 1 / -1; }
.field label, .field legend { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; padding: 13px 14px; background: #fff; border: 1px solid #d8d3ca; border-radius: 6px; color: var(--text); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--text); }
.field textarea { min-height: 120px; resize: vertical; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 9px 16px; border: 1px solid #d8d3ca; border-radius: 999px; background: #fff; font-size: 15px; cursor: pointer; user-select: none; }
.chip input:checked + span { background: var(--text); border-color: var(--text); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.check { display: flex; gap: 12px; font-size: 14px; color: var(--muted); }
.check input { margin-top: 4px; accent-color: var(--text); }
.form-ok { display: none; grid-column: 1 / -1; padding: 16px 18px; background: #fff; border-left: 3px solid var(--accent); }
.form.sent .form-ok { display: block; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

/* ---------- Catalogo ---------- */
.cat-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.tabs { display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { background: none; border: 0; border-bottom: 2px solid transparent; padding: 14px 0; font-size: 16px; font-weight: 500; color: var(--muted); white-space: nowrap; margin-bottom: -1px; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--text); font-weight: 600; }
.tab sup { font-size: 11px; color: var(--accent); margin-left: 2px; }
.view-switch { display: flex; gap: 4px; background: var(--bg-soft); border-radius: 999px; padding: 4px; }
.view-switch button { background: none; border: 0; padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); }
.view-switch button[aria-pressed="true"] { background: #fff; color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.cat-tools { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 24px 0; }
.subchips { display: flex; flex-wrap: wrap; gap: 8px; }
.subchip { background: #fff; border: 1px solid #d8d3ca; border-radius: 999px; padding: 7px 14px; font-size: 14px; }
.subchip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: #fff; }
.search input { font: inherit; font-size: 15px; padding: 10px 16px; border: 1px solid #d8d3ca; border-radius: 999px; width: 260px; max-width: 100%; }
.search input:focus { outline: none; border-color: var(--text); }
.count { font-size: 14px; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 40px 24px; padding-bottom: 96px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); padding-bottom: 0; }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .grid-4 { grid-template-columns: 1fr; } }
.card { text-decoration: none; display: flex; flex-direction: column; }
.card-img { position: relative; overflow: hidden; background: var(--bg-soft); aspect-ratio: 4 / 3; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card-img img { transform: scale(1.04); }
.card-brand { position: absolute; top: 12px; left: 12px; background: #fff; padding: 4px 10px; font-size: 12px; font-weight: 600; border-radius: 999px; }
.card-meta { font-size: 13px; color: var(--muted); margin-top: 14px; }
.card h3 { font-size: 19px; margin: 4px 0 6px; }
.card:hover h3 { color: var(--accent); }
.card p { margin: 0; font-size: 15px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.empty { grid-column: 1 / -1; text-align: center; padding: 64px 0; color: var(--muted); }

/* Sfogliabile */
.flip-wrap { display: none; padding: 32px 0 96px; }
.flip-wrap.active { display: block; }
.flip-stage { background: var(--bg-soft); padding: clamp(20px, 4vw, 48px) clamp(8px, 3vw, 32px); }
.page { background: #fff; color: var(--text); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.page-inner { height: 100%; display: flex; flex-direction: column; padding: 8%; }
.page-inner img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--bg-soft); }
.page-meta { font-size: 11px; color: var(--muted); margin-top: 7%; display: flex; justify-content: space-between; }
.page h3 { font-size: clamp(16px, 1.9vw, 24px); margin: 3% 0; }
.page p { font-size: clamp(11px, 1vw, 14px); color: var(--muted); margin: 0; line-height: 1.5; }
.page-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 4%; }
.page-link { color: var(--text); font-weight: 600; text-decoration: none; }
.page-cover { background: #fff; }
.page-cover .page-inner { justify-content: space-between; padding: 12% 10%; }
.page-cover img.cover-logo { width: 70%; aspect-ratio: auto; background: none; filter: invert(1) hue-rotate(180deg); }
.page-cover h2 { font-size: clamp(24px, 3.2vw, 44px); letter-spacing: -.03em; }
.page-section { background: var(--bg-soft); }
.page-section .page-inner { justify-content: center; }
.page-section h2 { font-size: clamp(24px, 3.2vw, 44px); }
.flip-controls { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 24px; }
.flip-controls button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid #d8d3ca; background: #fff; font-size: 18px; }
.flip-controls button:hover { border-color: var(--text); }
.flip-controls .pg { font-size: 14px; color: var(--muted); min-width: 80px; text-align: center; }
.flip-hint { text-align: center; color: var(--muted); font-size: 14px; margin-top: 12px; }

/* ---------- Scheda prodotto ---------- */
.pd-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px 0; }
.pd-top .crumbs { margin: 0; }
.pnav { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); flex: none; }
.pnav a { width: 38px; height: 38px; border: 1px solid #d8d3ca; border-radius: 50%; display: grid; place-items: center; text-decoration: none; }
.pnav a:hover { border-color: var(--text); }
@media (max-width: 640px) { .pd-top .crumbs > :nth-child(-n+4) { display: none; } }
.pd-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; padding-bottom: clamp(56px, 8vw, 104px); }
.pd-media { position: sticky; top: 110px; }
.pd-main { position: relative; margin: 0; background: var(--bg-soft); }
.pd-main img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; cursor: zoom-in; }
.pd-zoom { position: absolute; right: 14px; bottom: 14px; padding: 8px 14px; border-radius: 999px; border: 0; background: #fff; font-size: 13px; font-weight: 600; }
.pd-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; margin-top: 10px; }
.pd-thumbs button { padding: 0; border: 2px solid transparent; background: none; }
.pd-thumbs button[aria-current] { border-color: var(--text); }
.pd-thumbs img { aspect-ratio: 1; object-fit: cover; }
.pd-info h1 { font-size: clamp(32px, 3.6vw, 48px); }
.pd-code { font-size: 14px; color: var(--muted); margin: 10px 0 24px; }
.pd-desc p { margin: 0 0 14px; color: #3d3d3d; }
.pd-specs { margin: 28px 0 0; }
.pd-specs h2 { font-size: 15px; margin-bottom: 8px; }
.pd-specs div { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; }
.pd-specs dt { color: var(--muted); }
.pd-specs dd { margin: 0; font-weight: 600; }
.pd-perks { list-style: none; padding: 20px; margin: 28px 0; background: var(--bg-soft); display: grid; gap: 10px; font-size: 15px; }
.pd-perks b { font-weight: 600; }
.pd-mini { display: flex; gap: 16px; align-items: center; margin-top: 28px; padding: 12px; background: #fff; max-width: 420px; }
.pd-mini img { width: 84px; height: 64px; object-fit: cover; }
.pd-mini small { display: block; font-size: 13px; color: var(--muted); }
@media (max-width: 900px) { .pd-grid { grid-template-columns: 1fr; } .pd-media { position: static; } .pd-specs div { grid-template-columns: 1fr 1.4fr; } }
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(255,255,255,.97); display: flex; align-items: center; justify-content: center; padding: 56px 16px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox button { position: absolute; top: 16px; right: 16px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 600; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-dark); color: rgba(255,255,255,.72); padding: 72px 0 28px; font-size: 15px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1fr; gap: 40px; }
.footer-brand img { height: 52px; width: auto; }
.footer-brand p { max-width: 36ch; margin: 20px 0 0; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }
.social { display: flex; gap: 16px; margin-top: 18px; }
.social a { color: #fff; font-weight: 600; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.12); margin-top: 56px; padding-top: 24px; font-size: 13px; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }

/* Barra contatti mobile */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar { display: grid; grid-template-columns: 1fr 1.4fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; border-top: 1px solid var(--line); }
  .mobile-bar a { padding: 15px 8px; text-align: center; text-decoration: none; font-weight: 600; font-size: 15px; }
  .mobile-bar a + a { background: var(--text); color: #fff; }
  body { padding-bottom: 52px; }
}

.tile-static h3::after { display: none; }

/* ---------- Marchi ---------- */
.brand-list { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 32px; }
.brand-item { display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; align-items: center; text-decoration: none; }
.brand-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--bg-soft); transition: opacity .3s; }
.brand-item:hover img { opacity: .88; }
.brand-item h2 { font-size: 26px; }
.brand-item .role { color: var(--accent); font-weight: 600; font-size: 15px; margin: 4px 0 10px; }
.brand-item p { margin: 0 0 14px; font-size: 15.5px; color: var(--muted); }
.brand-item:hover .link { color: var(--accent); }
@media (max-width: 1000px) { .brand-list { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .brand-item { grid-template-columns: 1fr; } }
a.brands-link, .brands a { text-decoration: none; display: grid; place-items: center; text-align: center; min-height: 104px; padding: 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 600; }
.brands a:hover { background: var(--bg-soft); }

h1, h2, .h1, .h2 { text-wrap: balance; }
.lead { text-wrap: pretty; }
.team-lg { max-width: 960px; }
@media (max-width: 640px) { .hero-img { height: 52vh; min-height: 300px; } .hero-text { padding-top: 32px; } }
