/* ===========================================================
   INFORMABED — Sistemi di riposo
   Design system: editorial / luxury · blu notte + beige
   Display: Fraunces · Body: Hanken Grotesk
   =========================================================== */

/* ---------- Tokens ---------- */
:root {
  --ink:        #0f2236;
  --blue:       #244f6e;
  --blue-2:     #3a6f93;
  --powder:     #bcd3e0;
  --powder-2:   #dcebe0; /* fallback */
  --cream:      #f6f0e6;
  --paper:      #fbf8f2;
  --sand:       #e7dcc9;
  --line:       #e3d8c6;
  --brass:      #b8915a;
  --white:      #ffffff;

  --ink-rgb: 15, 34, 54;

  --shadow-sm: 0 2px 10px rgba(15,34,54,.06);
  --shadow-md: 0 16px 40px -18px rgba(15,34,54,.28);
  --shadow-lg: 0 40px 90px -40px rgba(15,34,54,.45);

  --radius: 18px;
  --radius-lg: 28px;

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);

  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-body: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 1.02rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; border-radius: 4px; }

/* ---------- Type ---------- */
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.01em;
  font-optical-sizing: auto;
}
.eyebrow {
  font-family: var(--f-body);
  font-weight: 700;
  font-size: .76rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--blue-2);
  display: inline-flex;
  align-items: center;
  gap: .6em;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: currentColor;
  opacity: .6;
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: #46586b; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 130px); }
.section--tight { padding-block: clamp(48px, 6vw, 84px); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink);
  --fg: var(--paper);
  display: inline-flex; align-items: center; gap: .6em;
  padding: .95em 1.6em;
  background: var(--bg); color: var(--fg);
  border-radius: 100px;
  font-weight: 600; font-size: .98rem;
  letter-spacing: .01em;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s;
  box-shadow: var(--shadow-sm);
  will-change: transform;
}
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn svg { width: 1.05em; height: 1.05em; }
.btn--blue { --bg: var(--blue); --fg: #fff; }
.btn--ghost {
  --bg: transparent; --fg: var(--ink);
  border: 1.5px solid rgba(var(--ink-rgb), .22);
  box-shadow: none;
}
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--light { --bg: var(--paper); --fg: var(--ink); }
.link-arrow {
  font-weight: 600; color: var(--blue);
  display: inline-flex; align-items: center; gap: .5em;
  transition: gap .3s var(--ease);
}
.link-arrow:hover { gap: .85em; }
.link-arrow svg { width: 16px; height: 16px; }

/* ===========================================================
   HEADER
   =========================================================== */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251,248,242,.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s, box-shadow .4s, background .4s;
}
.site-header.is-stuck { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(15,34,54,.5); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; height: 78px;
}
.brand img { height: 40px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  position: relative;
  padding: .5em .9em;
  font-weight: 500; font-size: .98rem;
  border-radius: 8px;
  transition: color .25s;
}
.nav-links a::after {
  content: ""; position: absolute; left: .9em; right: .9em; bottom: .28em;
  height: 1.5px; background: var(--blue); transform: scaleX(0);
  transform-origin: left; transition: transform .35s var(--ease);
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--blue); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-phone {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 600; font-size: .95rem;
}
.nav-phone svg { width: 16px; height: 16px; color: var(--blue-2); }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 10px; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 22px; height: 2px; background: var(--ink);
  border-radius: 2px; transition: transform .3s var(--ease), opacity .2s;
  margin-inline: auto;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

/* Dropdown Catalogo */
.nav-item.has-sub { position: relative; display: flex; align-items: center; }
.nav-sub-toggle { display: inline-flex; align-items: center; gap: .35em; cursor: pointer; }
.nav-chevron {
  width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease);
}
.nav-item.has-sub:hover .nav-chevron,
.nav-item.has-sub:focus-within .nav-chevron { transform: rotate(180deg); }
.nav-sub {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px;
  margin: 0; padding: 8px; list-style: none;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-md); z-index: 60;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.nav-item.has-sub:hover .nav-sub,
.nav-item.has-sub:focus-within .nav-sub { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-sub a { display: block; white-space: nowrap; }
.nav-sub a::after { display: none; }

/* ===========================================================
   HERO
   =========================================================== */
.hero {
  position: relative;
  background:
    radial-gradient(120% 90% at 85% 8%, rgba(58,111,147,.10), transparent 55%),
    linear-gradient(180deg, var(--cream), var(--paper));
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(15,34,54,.05) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%);
          mask-image: linear-gradient(180deg, #000, transparent 70%);
  opacity: .5; pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 5vw, 72px); align-items: center;
  padding-block: clamp(48px, 7vw, 96px);
}
.hero-copy .badge {
  display: inline-flex; align-items: center; gap: .55em;
  background: var(--ink); color: var(--paper);
  padding: .42em .9em; border-radius: 100px;
  font-size: .78rem; font-weight: 600; letter-spacing: .04em;
  margin-bottom: 22px;
}
.hero-copy .badge b { color: var(--powder); }
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  letter-spacing: -.02em;
}
.hero h1 em { font-style: italic; color: var(--blue); }
.hero-copy p.lead { margin-top: 22px; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-trust {
  display: flex; gap: 28px; margin-top: 42px; flex-wrap: wrap;
  padding-top: 26px; border-top: 1px solid var(--line);
}
.hero-trust .stat strong {
  font-family: var(--f-display); font-size: 1.7rem; display: block; line-height: 1;
}
.hero-trust .stat span { font-size: .82rem; color: #5d6b78; letter-spacing: .02em; }

.hero-figure { position: relative; }
.hero-figure img {
  width: 100%; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3.4; object-fit: cover;
}
.hero-figure .float-card {
  position: absolute; left: -22px; bottom: 26px;
  background: rgba(251,248,242,.92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 16px; padding: 14px 18px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow-md);
}
.hero-figure .float-card .dot {
  width: 38px; height: 38px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--blue-2), var(--blue));
  display: grid; place-items: center; color: #fff; flex: none;
}
.hero-figure .float-card .dot svg { width: 18px; height: 18px; }
.hero-figure .float-card small { color: #5d6b78; font-size: .76rem; display: block; }
.hero-figure .float-card strong { font-size: .96rem; }

/* ===========================================================
   VALUE / FEATURE CARDS
   =========================================================== */
.section-head { max-width: 60ch; margin-bottom: clamp(34px, 5vw, 60px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); margin-top: 16px; }
.section-head p { margin-top: 18px; }

.feature-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.feature {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px 32px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--powder); }
.feature .ico {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(155deg, var(--cream), var(--sand));
  display: grid; place-items: center; color: var(--blue);
  margin-bottom: 22px;
}
.feature .ico svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.24rem; margin-bottom: 8px; }
.feature p { font-size: .94rem; color: #56646f; }

/* ===========================================================
   SPLIT (tech / about teaser)
   =========================================================== */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 72px); align-items: center;
}
.split--rev .split-media { order: 2; }
.split-media { position: relative; }
.split-media img {
  width: 100%; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); aspect-ratio: 5/4; object-fit: cover;
}
.split-media .tag {
  position: absolute; top: 18px; left: 18px;
  background: rgba(15,34,54,.86); color: var(--paper);
  font-size: .76rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: .5em 1em; border-radius: 100px; backdrop-filter: blur(4px);
}
.split-body h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-top: 16px; }
.split-body p { margin-top: 18px; }
.check-list { margin-top: 26px; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 13px; align-items: flex-start; font-size: .98rem; }
.check-list .ck {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--blue); color: #fff; display: grid; place-items: center; margin-top: 2px;
}
.check-list .ck svg { width: 13px; height: 13px; }
.split-body .btn { margin-top: 32px; }

.section--cream { background: linear-gradient(180deg, var(--cream), #f1e9da); }
.section--ink { background: var(--ink); color: var(--cream); }
.section--ink h2 { color: var(--paper); }
.section--ink .lead { color: #b9c6d2; }

/* ===========================================================
   PRODUCT CARDS / SHOP
   =========================================================== */
.filters {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  margin-bottom: 44px;
}
.filter-btn {
  padding: .58em 1.2em; border-radius: 100px;
  border: 1.5px solid var(--line); background: var(--white);
  font-weight: 600; font-size: .9rem; color: #54626e;
  transition: all .3s var(--ease);
}
.filter-btn:hover { border-color: var(--powder); color: var(--ink); }
.filter-btn.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.product-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
}
.product-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .4s;
}
.product-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); border-color: var(--powder); }
.product-media {
  position: relative; aspect-ratio: 4/5; overflow: hidden;
  background: var(--cream);
}
.product-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease);
}
.product-card:hover .product-media img { transform: scale(1.05); }
.product-cat {
  position: absolute; top: 14px; left: 14px;
  background: rgba(251,248,242,.9); backdrop-filter: blur(4px);
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue); padding: .42em .8em; border-radius: 100px;
}
.product-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-body h3 { font-size: 1.3rem; }
.product-body p { font-size: .9rem; color: #56646f; flex: 1; }
.product-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.product-actions .price { font-size: .82rem; color: #7a8893; font-weight: 600; }
.product-actions .btn { padding: .62em 1.1em; font-size: .86rem; }

/* ---------- Scheda tecnica (product detail) ---------- */
.spec-table {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; margin: 0;
  box-shadow: var(--shadow-sm);
}
.spec-row { display: grid; grid-template-columns: 38% 1fr; gap: 16px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.spec-row:last-child { border-bottom: 0; }
.spec-row dt { font-weight: 700; font-size: .9rem; color: #3c4b59; margin: 0; }
.spec-row dd { margin: 0; font-size: .94rem; color: #56646f; }
.product-card .product-body h3 a { transition: color .25s; }
.product-card:hover .product-body h3 a { color: var(--blue); }

/* ===========================================================
   CTA BAND
   =========================================================== */
.cta-band {
  position: relative; overflow: hidden;
  background:
    radial-gradient(90% 120% at 12% 0%, rgba(58,111,147,.5), transparent 60%),
    var(--ink);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 72px);
  display: grid; grid-template-columns: 1.4fr auto; gap: 30px; align-items: center;
}
.cta-band::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 20px 20px; opacity: .6;
  pointer-events: none;
}
.cta-band .actions { position: relative; z-index: 2; }
.cta-band > * { position: relative; }
.cta-band h2 { color: var(--paper); font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.cta-band p { color: #b9c6d2; margin-top: 12px; max-width: 48ch; }
.cta-band .actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===========================================================
   ABOUT / TEAM / VALUES
   =========================================================== */
.page-hero {
  background:
    radial-gradient(100% 100% at 90% 0%, rgba(58,111,147,.1), transparent 55%),
    linear-gradient(180deg, var(--cream), var(--paper));
  padding-block: clamp(56px, 8vw, 110px);
  text-align: center;
}
.page-hero h1 { font-size: clamp(2.5rem, 5.5vw, 4rem); margin-top: 18px; }
.page-hero p { margin-inline: auto; margin-top: 20px; max-width: 56ch; }
.breadcrumb { font-size: .82rem; color: #7a8893; letter-spacing: .04em; }
.breadcrumb a:hover { color: var(--blue); }

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.value-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.value-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.value-card .n { font-family: var(--f-display); font-size: 1.1rem; color: var(--brass); }
.value-card h3 { font-size: 1.3rem; margin: 14px 0 8px; }
.value-card p { font-size: .94rem; color: #56646f; }

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.team-card { text-align: center; }
.team-card .ph {
  border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; margin-bottom: 14px;
  box-shadow: var(--shadow-sm); background: var(--cream);
}
.team-card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.team-card:hover .ph img { transform: scale(1.05); }
.team-card h3 { font-size: 1.1rem; }
.team-card span { font-size: .84rem; color: var(--blue-2); font-weight: 600; }

.facts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--white);
}
.facts .fact { padding: 30px; text-align: center; border-right: 1px solid var(--line); }
.facts .fact:last-child { border-right: 0; }
.facts .fact strong { font-family: var(--f-display); font-size: 2.2rem; display: block; color: var(--blue); line-height: 1; }
.facts .fact span { font-size: .86rem; color: #5d6b78; margin-top: 8px; display: block; }

/* ===========================================================
   CONTACT
   =========================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 64px); align-items: start; }
.contact-card-list { display: grid; gap: 16px; }
.contact-card {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; transition: border-color .3s, transform .3s var(--ease);
}
.contact-card:hover { border-color: var(--powder); transform: translateX(4px); }
.contact-card .ic {
  flex: none; width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(155deg, var(--cream), var(--sand));
  display: grid; place-items: center; color: var(--blue);
}
.contact-card .ic svg { width: 22px; height: 22px; }
.contact-card h3 { font-size: 1.06rem; font-family: var(--f-body); font-weight: 700; }
.contact-card a, .contact-card p { font-size: .96rem; color: #46586b; }
.contact-card a:hover { color: var(--blue); }

.form {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 40px);
  box-shadow: var(--shadow-sm);
}
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .82rem; font-weight: 600; letter-spacing: .03em; margin-bottom: 7px; color: #3c4b59; }
.field input, .field textarea {
  width: 100%; padding: .85em 1em;
  border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--paper); font: inherit; color: var(--ink);
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-2); background: #fff;
  box-shadow: 0 0 0 4px rgba(58,111,147,.12);
}
.field textarea { resize: vertical; min-height: 130px; }
.form .btn { width: 100%; justify-content: center; margin-top: 4px; }
.form-note { font-size: .8rem; color: #7a8893; margin-top: 14px; text-align: center; }

.map-embed {
  margin-top: 22px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.map-embed iframe { display: block; width: 100%; height: 280px; border: 0; filter: grayscale(.15) contrast(1.02); }

/* ===========================================================
   FOOTER
   =========================================================== */
.site-footer { background: var(--ink); color: #c4d0db; padding-block: clamp(54px, 7vw, 86px) 30px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; }
.footer-brand img { height: 38px; margin-bottom: 18px; filter: brightness(0) invert(1); opacity: .92; }
.footer-brand p { font-size: .92rem; color: #95a6b4; max-width: 34ch; }
.footer-soc { display: flex; gap: 10px; margin-top: 20px; }
.footer-soc a {
  width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.14); display: grid; place-items: center;
  color: #c4d0db; transition: background .3s, color .3s, transform .3s var(--ease);
}
.footer-soc a:hover { background: var(--blue); color: #fff; transform: translateY(-3px); border-color: var(--blue); }
.footer-soc svg { width: 18px; height: 18px; }
.footer-col h4 { font-family: var(--f-body); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: #7e909e; margin-bottom: 16px; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: .94rem; color: #c4d0db; transition: color .25s; }
.footer-col a:hover { color: #fff; }
.footer-col address { font-style: normal; font-size: .92rem; color: #95a6b4; line-height: 1.8; }
.footer-bottom {
  margin-top: 46px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .82rem; color: #7e909e;
}

/* ===========================================================
   WhatsApp floating
   =========================================================== */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 70;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 14px 30px -8px rgba(37,211,102,.6);
  transition: transform .35s var(--ease);
}
.wa-float:hover { transform: scale(1.08) translateY(-2px); }
.wa-float svg { width: 28px; height: 28px; }

/* ===========================================================
   Toast (fallback telefono desktop)
   =========================================================== */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  z-index: 90;
  background: var(--ink); color: var(--paper);
  padding: .85em 1.4em; border-radius: 100px;
  font-size: .95rem; font-weight: 600; letter-spacing: .01em;
  box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ===========================================================
   Reveal animations
   =========================================================== */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }
[data-reveal][data-delay="4"] { transition-delay: .32s; }

/* Hero load stagger */
.hero-copy > * { opacity: 0; animation: rise .9s var(--ease) forwards; }
.hero-copy > *:nth-child(1) { animation-delay: .05s; }
.hero-copy > *:nth-child(2) { animation-delay: .15s; }
.hero-copy > *:nth-child(3) { animation-delay: .25s; }
.hero-copy > *:nth-child(4) { animation-delay: .35s; }
.hero-copy > *:nth-child(5) { animation-delay: .45s; }
.hero-figure { opacity: 0; animation: rise 1s var(--ease) .25s forwards; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { order: -1; }
  .hero-figure img { aspect-ratio: 16/11; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts .fact:nth-child(2) { border-right: 0; }
  .facts .fact { border-bottom: 1px solid var(--line); }
}
@media (max-width: 820px) {
  .nav-links, .nav-phone { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  .nav-links.is-open {
    display: flex; position: absolute; top: 78px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 16px var(--gutter) 24px; box-shadow: var(--shadow-md);
  }
  .nav-links.is-open a { padding: .8em .4em; font-size: 1.05rem; }
  .nav-links.is-open a::after { display: none; }
  .nav-links.is-open .nav-item.has-sub { flex-direction: column; align-items: stretch; }
  .nav-links.is-open .nav-sub {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; background: transparent; padding: 0 0 0 12px;
    max-height: 0; overflow: hidden; transition: max-height .25s var(--ease);
  }
  .nav-links.is-open .nav-item.has-sub.is-open .nav-sub { max-height: 320px; }
  .nav-links.is-open .nav-item.has-sub.is-open .nav-chevron { transform: rotate(180deg); }
  .split { grid-template-columns: 1fr; }
  .split--rev .split-media { order: -1; }
  .values-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; }
}
/* Header mobile: hamburger sx | logo centrato reale | Contattaci dx */
@media (max-width: 768px) {
  .site-header .wrap { padding-inline: 15px; }
  .nav { position: relative; height: 74px; gap: 0; }
  .brand { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
  .brand img { display: block; width: clamp(95px, 27vw, 115px); height: auto; max-width: none; object-fit: contain; }
  .nav-toggle { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); margin: 0; }
  .nav-cta { position: static; gap: 0; }
  /* Contattaci → pulsante icona-sola 44x44, simmetrico all'hamburger */
  .nav-cta .btn {
    position: absolute; right: 15px; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; padding: 0; gap: 0;
    border-radius: 12px; justify-content: center;
  }
  .nav-cta .btn:hover { transform: translateY(-50%); }
  .nav-cta .btn .btn-label { display: none; }
  .nav-cta .btn svg { width: 20px; height: 20px; }
  .nav-links.is-open { top: 74px; }
}
@media (max-width: 540px) {
  .feature-grid, .product-grid, .team-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .facts .fact { border-right: 0; border-bottom: 1px solid var(--line); }
  .form .row { grid-template-columns: 1fr; }
  .hero-trust { gap: 20px; }
  .footer-top { grid-template-columns: 1fr; }
}

/* Cookie bar */
.cookie-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999; background: #0f172a; color: #e5e7eb; box-shadow: 0 -6px 24px rgba(0,0,0,.18); transform: translateY(110%); transition: transform .3s ease; }
.cookie-bar.is-show { transform: translateY(0); }
.cookie-bar__in { max-width: 1100px; margin: 0 auto; padding: 16px 20px; display: flex; gap: 16px 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cookie-bar__txt { margin: 0; font-size: .9rem; line-height: 1.55; flex: 1 1 320px; }
.cookie-bar__txt a { color: #93c5fd; text-decoration: underline; }
.cookie-bar__act { display: flex; gap: 10px; flex: 0 0 auto; }
.cookie-bar__btn { cursor: pointer; border-radius: 999px; padding: .6em 1.5em; font: inherit; font-weight: 600; font-size: .9rem; line-height: 1.2; border: 1.5px solid transparent; transition: filter .15s, background .15s; }
.cookie-bar__btn--accept { background: #2563eb; color: #fff; }
.cookie-bar__btn--accept:hover { filter: brightness(1.08); }
.cookie-bar__btn--reject { background: transparent; color: #e5e7eb; border-color: #475569; }
.cookie-bar__btn--reject:hover { background: rgba(255,255,255,.08); }
@media (max-width: 560px) { .cookie-bar__act { width: 100%; } .cookie-bar__btn { flex: 1; } }
