/* OHM Keypads — foglio di stile */
:root {
  --bg: #F3EFE7;
  --ink: #17150F;
  --dark: #15130F;
  --darker: #0B0A08;
  --cream: #FBF9F4;
  --sand: #E7E1D5;
  --line: #E2DBCC;
  --line-dark: #3A352C;
  --muted: #5E574B;
  --muted-2: #3B362D;
  --accent: #7A5A2B;
  --gold: #D9BE8C;
  --gold-2: #C9A871;
  --on-dark: #EDE6D8;
  --on-dark-2: #CFC6B5;
  --on-dark-3: #8C8375;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pad: 80px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: #4F3A1A; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }
.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--gold); color: var(--dark); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 16px; top: 16px; }

/* Testi ricorrenti */
.eyebrow { font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent); }
.dark .eyebrow { color: var(--gold-2); }
.h1, .h2 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1; }
.h1 { font-size: clamp(48px, 6.2vw, 88px); line-height: 0.98; letter-spacing: -0.01em; }
.h2 { font-size: clamp(36px, 4.2vw, 60px); }
.lead { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted); max-width: 480px; }
.dark .lead { color: var(--on-dark-2); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 30px; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500; border: 1px solid transparent; cursor: pointer; font-family: inherit; }
.btn-gold { background: var(--gold); color: var(--dark); }
.btn-gold:hover { background: #E6CFA3; color: var(--dark); }
.btn-dark { background: var(--dark); color: var(--on-dark); }
.btn-dark:hover { background: #2A261F; color: var(--on-dark); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--on-dark); }
.link-caps { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; }
.dark { background: var(--dark); color: var(--on-dark); }
.cream { background: var(--cream); }
.sand { background: var(--sand); }
.section { padding-top: 100px; padding-bottom: 100px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 56px; }
.section-head .titles { display: flex; flex-direction: column; gap: 16px; }

/* Header */
.site-header { background: var(--dark); color: var(--on-dark); border-bottom: 1px solid #2E2A23; position: sticky; top: 0; z-index: 50; }
.site-header .wrap { height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; color: var(--on-dark); }
.logo:hover { color: var(--on-dark); }
.logo .l1 { font-size: 26px; letter-spacing: 0.42em; font-weight: 500; padding-left: 0.42em; line-height: 1.1; }
.logo .l2 { font-size: 9px; letter-spacing: 0.5em; color: #A89F8E; padding-left: 0.5em; line-height: 1.2; }
.nav { display: flex; gap: 40px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }
.nav a { color: var(--on-dark); }
.nav a:hover, .nav a[aria-current="page"] { color: #E6CFA3; }
.header-tools { display: flex; align-items: center; gap: 28px; }
.lang { display: flex; gap: 10px; font-size: 12px; letter-spacing: 0.12em; }
.lang a { color: #A89F8E; }
.lang a[aria-current="true"] { color: var(--on-dark); }
.lang span { color: #6B6457; }
.btn-pro { padding: 13px 22px; border: 1px solid #B08D57; color: #E6CFA3; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; }
.btn-pro:hover { background: #B08D57; color: var(--dark); }
.menu-toggle { display: none; width: 44px; height: 44px; background: transparent; border: 0; padding: 0; align-items: center; justify-content: center; cursor: pointer; }
.mobile-menu { display: none; }

/* Apertura home */
.hero { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 780px; }
.hero-text { padding: 120px var(--pad) 80px; display: flex; flex-direction: column; justify-content: center; gap: 32px; max-width: 720px; margin-left: auto; width: 100%; }
.hero-text .h1 em { font-style: italic; color: var(--gold); }
.hero-text p { margin: 0; max-width: 520px; font-size: 19px; line-height: 1.6; font-weight: 300; color: var(--on-dark-2); }
.hero-media { position: relative; background: var(--darker); overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-caption { position: absolute; right: 32px; bottom: 28px; font-size: 12px; letter-spacing: 0.12em; color: var(--on-dark-2); text-shadow: 0 1px 3px rgba(0,0,0,0.6); }

/* Punti di forza */
.strengths { border-bottom: 1px solid var(--line); }
.strengths .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; padding-top: 64px; padding-bottom: 64px; }
.strength { display: flex; flex-direction: column; gap: 10px; padding-right: 24px; border-right: 1px solid var(--line); }
.strength:last-child { border-right: 0; }
.strength .t { font-family: var(--serif); font-size: 40px; line-height: 1; }
.strength .d { font-size: 15px; line-height: 1.5; color: var(--muted); }

/* Collezioni */
.cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.coll-card { display: flex; flex-direction: column; gap: 22px; color: var(--ink); }
.coll-card:hover { color: var(--ink); }
.coll-card .img { height: 300px; background: #FFF; overflow: hidden; }
.coll-card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.coll-card:hover .img img { transform: scale(1.03); }
.coll-card .row { display: flex; justify-content: space-between; align-items: baseline; }
.coll-card .name { font-size: 22px; letter-spacing: 0.32em; font-weight: 500; }
.coll-card .more { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.coll-card .desc { font-size: 15px; line-height: 1.55; color: var(--muted); }

/* Atelier */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.step { display: flex; flex-direction: column; gap: 18px; }
.step .img { height: 300px; overflow: hidden; background: var(--sand); }
.step .img img { width: 100%; height: 100%; object-fit: cover; }
.step .n { font-family: var(--serif); font-size: 20px; color: var(--accent); }
.step .t { font-size: 18px; font-weight: 500; }
.step .d { font-size: 14px; line-height: 1.55; color: var(--muted); }

/* Finiture home */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 80px; align-items: stretch; }
.finish-img { background: #000; overflow: hidden; min-height: 520px; }
.finish-img img { width: 100%; height: 100%; object-fit: cover; }
.finish-text { display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.finish-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 24px; font-size: 14px; color: var(--muted-2); margin: 0; padding: 0; list-style: none; }

/* Integrazione */
.integration-claim { padding: 30px 0; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); font-family: var(--serif); font-size: 32px; line-height: 1.2; color: var(--on-dark); }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 40px; font-size: 15px; line-height: 1.5; color: var(--on-dark-2); margin: 36px 0 0; padding: 0; list-style: none; }
.feature-grid li { padding-top: 14px; border-top: 1px solid var(--line-dark); }
.stack { display: flex; flex-direction: column; gap: 28px; }

/* Installazioni */
.project .img { height: 340px; overflow: hidden; background: var(--sand); }
.project .img img { width: 100%; height: 100%; object-fit: cover; }
.project { display: flex; flex-direction: column; gap: 16px; }
.project .t { font-size: 18px; font-weight: 500; }
.project .d { font-size: 14px; color: var(--muted); }

/* Area progettisti + modulo */
.pro-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.pro-list { display: flex; flex-direction: column; gap: 12px; font-size: 15px; color: var(--muted-2); margin: 0; padding: 0; list-style: none; }
.pro-list li { padding-bottom: 12px; border-bottom: 1px solid var(--on-dark-2); }
.pro-img { overflow: hidden; background: var(--on-dark-2); min-height: 420px; }
.pro-img img { width: 100%; height: 100%; object-fit: cover; }
.form { background: var(--cream); padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea { min-height: 46px; border: 1px solid var(--on-dark-2); background: #FFF; padding: 0 12px; font: inherit; font-size: 15px; text-transform: none; letter-spacing: 0; color: var(--ink); border-radius: 0; width: 100%; }
.field textarea { padding: 12px; min-height: 120px; resize: vertical; line-height: 1.5; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--muted); }
.check input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--dark); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { font-size: 14px; padding: 12px 14px; background: #F6E3DF; color: #6B1E12; }

/* Showroom */
.map-card { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: var(--sand); border: 1px solid var(--on-dark-2); color: var(--muted); min-height: 380px; text-align: center; padding: 24px; overflow: hidden; }
.map-card:hover { color: var(--ink); background: #DDD5C6; }
.map-card .addr { font-family: var(--serif); font-size: 28px; color: var(--ink); }
.map-card .cta { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.map-card svg.grid { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.35; pointer-events: none; }
.map-card > *:not(svg.grid) { position: relative; }

/* Footer */
.site-footer { background: var(--dark); color: var(--on-dark-2); }
.site-footer .wrap { padding-top: 80px; padding-bottom: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 40px; font-size: 14px; line-height: 2; }
.foot-col { display: flex; flex-direction: column; }
.foot-col .h { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--on-dark-3); }
.foot-col a { color: var(--on-dark-2); }
.foot-col a:hover { color: var(--on-dark); }
.foot-brand { display: flex; flex-direction: column; gap: 14px; }
.foot-brand .logo { align-items: flex-start; }
.foot-brand .logo .l1, .foot-brand .logo .l2 { padding-left: 0; }
.payoff { font-size: 11px; letter-spacing: 0.24em; line-height: 1.6; color: #A89F8E; }
.foot-bottom { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 64px; padding-top: 24px; border-top: 1px solid #2E2A23; font-size: 12px; color: var(--on-dark-3); line-height: 1.6; }
.foot-bottom a { color: var(--on-dark-3); }
.foot-bottom a:hover { color: var(--on-dark-2); }

/* Pagina serie */
.series-bar { background: var(--cream); border-bottom: 1px solid var(--line); }
.series-bar .wrap { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.crumbs { display: flex; gap: 12px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: #7D7466; }
.crumbs [aria-current] { color: var(--ink); }
.tabs { display: flex; gap: 8px; }
.tab { min-height: 44px; padding: 0 26px; display: inline-flex; align-items: center; border: 1px solid var(--on-dark-2); color: var(--ink); font-size: 13px; letter-spacing: 0.28em; }
.tab:hover { border-color: var(--ink); color: var(--ink); }
.tab[aria-current="page"] { background: var(--dark); border-color: var(--dark); color: var(--on-dark); }
.series-hero { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 600px; }
.series-hero .media { overflow: hidden; background: var(--darker); }
.series-hero .media img { width: 100%; height: 100%; object-fit: cover; }
.series-hero .text { padding: 80px var(--pad); display: flex; flex-direction: column; justify-content: center; gap: 26px; }
.series-hero .h1 { font-size: clamp(44px, 4.8vw, 68px); line-height: 1; }
.series-hero p { margin: 0; max-width: 500px; font-size: 17px; line-height: 1.6; font-weight: 300; color: var(--on-dark-2); }
.configs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.config { display: flex; flex-direction: column; gap: 10px; }
.config .draw { height: 130px; background: #FFF; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.config .plate { position: relative; border: 1.4px solid var(--ink); box-sizing: border-box; }
.config .plate > span { position: absolute; box-sizing: border-box; }
.config .name { font-size: 13px; line-height: 1.35; }
.specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; padding-top: 28px; margin-top: 44px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.5; }
.specs .k { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 6px; }
.specs .actions { display: flex; gap: 12px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.specs .actions .btn { font-size: 12px; letter-spacing: 0.14em; padding: 0 24px; font-weight: 400; }
.fin-section .wrap { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; }
.swatches { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 16px 14px; align-content: start; margin: 0; padding: 0; list-style: none; }
.swatch { display: flex; flex-direction: column; gap: 6px; }
.swatch .img { height: 64px; overflow: hidden; border: 1px solid var(--on-dark-2); }
.swatch .img img { width: 100%; height: 100%; object-fit: cover; }
.swatch .n { font-size: 11px; line-height: 1.3; color: var(--muted-2); }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.gallery figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.gallery .img { height: 180px; background: #FFF; overflow: hidden; }
.gallery .img img { width: 100%; height: 100%; object-fit: cover; }
.gallery .t { font-size: 14px; font-weight: 500; line-height: 1.3; }
.gallery .f { font-size: 13px; color: var(--muted); }

/* Pagine di testo (privacy, note legali, grazie) */
.page-text { max-width: 820px; padding-top: 80px; padding-bottom: 100px; }
.page-text h1 { font-family: var(--serif); font-weight: 400; font-size: 52px; line-height: 1.05; margin: 0 0 24px; }
.page-text h2 { font-family: var(--serif); font-weight: 500; font-size: 26px; margin: 40px 0 10px; }
.page-text p, .page-text li { color: var(--muted-2); }
.page-text .note { font-size: 13px; color: var(--muted); border-left: 2px solid var(--gold-2); padding-left: 12px; }

/* Tablet */
@media (max-width: 1180px) {
  :root { --pad: 40px; }
  .nav { gap: 22px; font-size: 12px; }
  .btn-pro { display: none; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .configs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .swatches { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
}

/* Telefono */
@media (max-width: 860px) {
  :root { --pad: 20px; }
  body { font-size: 15px; }
  .site-header .wrap { height: 64px; }
  .logo .l1 { font-size: 20px; }
  .logo .l2 { font-size: 7px; }
  .nav, .header-tools .btn-pro { display: none; }
  .header-tools { gap: 12px; }
  .menu-toggle { display: inline-flex; }
  .mobile-menu { display: none; background: var(--dark); border-top: 1px solid #2E2A23; }
  .mobile-menu.open { display: block; }
  .mobile-menu a { display: block; padding: 14px 20px; color: var(--on-dark); font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; border-bottom: 1px solid #2E2A23; }
  .section { padding-top: 56px; padding-bottom: 56px; }
  .section-head { flex-direction: column; align-items: flex-start; margin-bottom: 28px; gap: 16px; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-media { order: -1; height: 300px; }
  .hero-caption { right: 16px; bottom: 12px; font-size: 11px; }
  .hero-text { padding: 36px var(--pad); gap: 20px; }
  .hero-text p { font-size: 16px; }
  .hero-text .btn { width: 100%; }
  .strengths .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; padding-top: 36px; padding-bottom: 36px; }
  .strength { border-right: 0; padding-right: 0; }
  .strength .t { font-size: 28px; }
  .strength .d { font-size: 13px; }
  .cards-3 { grid-template-columns: 1fr; gap: 36px; }
  .coll-card .img { height: 230px; }
  .steps { grid-template-columns: 1fr; }
  .step .img { height: 240px; }
  .split, .pro-grid, .series-hero, .fin-section .wrap { grid-template-columns: 1fr; gap: 32px; }
  .finish-img { min-height: 230px; height: 230px; }
  .finish-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .integration-claim { font-size: 24px; padding: 20px 0; }
  .feature-grid { grid-template-columns: 1fr; gap: 14px; }
  .project .img { height: 260px; }
  .pro-img { min-height: 260px; height: 260px; }
  .form { padding: 22px; }
  .map-card { min-height: 260px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .foot-bottom { flex-direction: column; gap: 8px; margin-top: 36px; }
  .series-hero { min-height: 0; }
  .series-hero .media { height: 280px; }
  .series-hero .text { padding: 36px var(--pad); }
  .tabs { width: 100%; }
  .tab { flex: 1; justify-content: center; padding: 0 8px; letter-spacing: 0.18em; }
  .configs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .specs { grid-template-columns: 1fr; gap: 20px; }
  .specs .actions { justify-content: flex-start; }
  .specs .actions .btn { width: 100%; }
  .swatches { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .gallery .img { height: 140px; }
  .page-text h1 { font-size: 38px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .coll-card .img img { transition: none; } }

/* Le ancore non finiscono sotto l'intestazione fissa */
section[id], footer[id] { scroll-margin-top: 96px; }
@media (max-width: 860px) { section[id], footer[id] { scroll-margin-top: 64px; } }
