/* =========================================================
   PLUS DIMENSIONE SALUTE — Clinic design system (v2)
   Clean · professional · trustworthy dental network style
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Lora:ital,wght@0,500;0,600;1,500&display=swap');

:root {
  /* --- Brand --- */
  --azzurro:      #2e8fd6;   /* primary, trust */
  --azzurro-dark: #1f6fac;
  --azzurro-50:   #eef6fc;
  --azzurro-100:  #d6eafa;

  --glicine:      #8a78c9;   /* secondary, calm */
  --glicine-dark: #6f5cb0;
  --glicine-50:   #f2effa;
  --glicine-100:  #e6dff5;

  --arancio:      #f08a3c;   /* accent, call-to-action */
  --arancio-dark: #e0751f;
  --arancio-50:   #fff3ea;
  --arancio-100:  #ffe2cc;

  /* --- Neutrals (clean, faint cool) --- */
  --ink:    #1c2733;
  --ink-2:  #38434f;
  --slate:  #5b6672;
  --slate-2:#8a939d;
  --line:   #e6eaef;
  --line-2: #f1f4f7;
  --paper:  #ffffff;
  --paper-2:#f7f9fb;
  --paper-3:#eef2f6;

  /* --- Radii --- */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 999px;

  /* --- Shadows (soft, clean) --- */
  --sh-xs: 0 1px 2px rgba(28,39,51,.06);
  --sh-sm: 0 4px 14px -6px rgba(28,39,51,.14);
  --sh-md: 0 14px 36px -16px rgba(28,39,51,.22);
  --sh-lg: 0 30px 64px -26px rgba(28,39,51,.30);

  /* --- Type --- */
  --font-sans: 'Manrope', system-ui, -apple-system, sans-serif;
  --font-serif: 'Lora', Georgia, serif;

  /* --- Layout --- */
  --maxw: 1200px;
  --gutter: clamp(18px, 5vw, 56px);
  --nav-h: 78px;
  --topbar-h: 40px;

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

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){ html { scroll-behavior:auto; } }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink-2);
  background: var(--paper);
  line-height: 1.62;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1,h2,h3,h4 { margin: 0; color: var(--ink); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; font-family: var(--font-sans); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

/* --- Type scale --- */
.display { font-size: clamp(2.4rem, 5.2vw, 4.1rem); line-height: 1.04; letter-spacing: -.03em; }
.h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
.h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
.h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-size: .8rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--azzurro);
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--arancio); border-radius: 2px; }
.eyebrow.center { justify-content: center; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: var(--slate); line-height: 1.6; }
.muted { color: var(--slate); }
.serif { font-family: var(--font-serif); font-weight: 600; font-style: italic; }

/* --- Layout helpers --- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-wide { max-width: 1360px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(60px, 9vw, 116px); position: relative; }
.section-sm { padding-block: clamp(40px, 6vw, 72px); }
.center { text-align: center; }
.bg-soft { background: var(--paper-2); }
.bg-blue { background: var(--azzurro-50); }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-weight: 700; font-size: 1rem;
  padding: .92em 1.6em; border-radius: var(--r-pill);
  border: 1.5px solid transparent; line-height: 1; white-space: nowrap;
  transition: transform .25s var(--ease-out), box-shadow .3s var(--ease-out), background .25s, color .25s, border-color .25s;
}
.btn svg { width: 1.1em; height: 1.1em; }
.btn-primary { background: var(--arancio); color: #fff; box-shadow: 0 12px 26px -12px rgba(240,138,60,.7); }
.btn-primary:hover { background: var(--arancio-dark); transform: translateY(-2px); }
.btn-blue { background: var(--azzurro); color: #fff; box-shadow: 0 12px 26px -12px rgba(46,143,214,.6); }
.btn-blue:hover { background: var(--azzurro-dark); transform: translateY(-2px); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--azzurro); color: var(--azzurro); transform: translateY(-2px); }
.btn-ghost-w { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.5); backdrop-filter: blur(6px); }
.btn-ghost-w:hover { background: rgba(255,255,255,.24); transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.btn-lg { padding: 1.05em 1.9em; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* =========================================================
   Top bar + Navigation
   ========================================================= */
.topbar {
  background: var(--ink); color: #cdd6df;
  height: var(--topbar-h); font-size: .85rem;
  display: flex; align-items: center;
}
.topbar .wrap-wide { display: flex; align-items: center; gap: 1.4rem; width: 100%; }
.topbar a { display: inline-flex; align-items: center; gap: .45em; color: #cdd6df; transition: color .2s; }
.topbar a:hover { color: #fff; }
.topbar svg { width: 15px; height: 15px; color: var(--arancio); }
.topbar .sep { margin-left: auto; }
.topbar .tb-social { display: flex; gap: .9rem; }
@media (max-width: 760px){ .topbar { display: none; } }

.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h); background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center;
  transition: box-shadow .3s var(--ease);
}
.nav.scrolled { box-shadow: var(--sh-sm); }
.nav .wrap-wide { display: flex; align-items: center; gap: 2rem; width: 100%; }
.brand { display: flex; align-items: center; gap: .7rem; flex: none; }
.brand-logo { height: 66px; width: auto; flex: none; display: block; max-width: none; }
@media (max-width: 600px){ .brand-logo { height: 52px; } }
.footer-logo { height: 54px; margin-bottom: .4rem; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 12px; flex: none;
  background: linear-gradient(135deg, var(--azzurro), var(--glicine));
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.05rem;
}
.brand-name { font-weight: 800; font-size: 1.1rem; color: var(--ink); letter-spacing: -.02em; line-height: 1.1; }
.brand-name small { display: block; font-size: .62rem; font-weight: 600; letter-spacing: .14em; color: var(--slate-2); text-transform: uppercase; margin-top: 2px; }
.nav-links { display: flex; gap: .2rem; margin-left: auto; align-items: center; }
.nav-links > a {
  font-weight: 600; font-size: .96rem; color: var(--ink-2);
  padding: .6em .95em; border-radius: var(--r-sm); position: relative;
  transition: color .2s, background .2s;
}
.nav-links > a:hover { color: var(--azzurro); }
.nav-links > a.active { color: var(--azzurro); }
.nav-links > a.active::after {
  content: ''; position: absolute; left: .95em; right: .95em; bottom: 4px; height: 2px;
  background: var(--arancio); border-radius: 2px;
}
.nav-cta { margin-left: .8rem; }
.nav-burger { display: none; }
@media (max-width: 940px){
  .nav-links, .nav-cta { display: none; }
  .nav-burger {
    display: grid; place-items: center; margin-left: auto;
    width: 46px; height: 46px; border-radius: 12px;
    background: var(--paper-2); border: 1px solid var(--line); color: var(--ink);
  }
}

/* =========================================================
   Mobile menu
   ========================================================= */
.mobile-menu {
  position: fixed; inset: 0; z-index: 200; background: #fff;
  display: flex; flex-direction: column; padding: 18px var(--gutter);
  transform: translateX(100%); transition: transform .4s var(--ease); visibility: hidden;
}
.mobile-menu.open { transform: none; visibility: visible; }
.mm-top { display: flex; align-items: center; height: var(--nav-h); }
.mm-close { margin-left: auto; width: 46px; height: 46px; border-radius: 12px; background: var(--paper-2); border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); }
.mm-links { display: flex; flex-direction: column; margin-top: 1rem; }
.mm-links a { font-size: 1.3rem; font-weight: 700; color: var(--ink); padding: .7em 0; border-bottom: 1px solid var(--line-2); }
.mm-links a:hover { color: var(--azzurro); }
.mm-cta { margin-top: auto; display: flex; flex-direction: column; gap: 12px; padding-bottom: 12px; }

/* =========================================================
   Image placeholders
   ========================================================= */
.ph {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--azzurro-100), var(--glicine-100));
  display: flex; align-items: center; justify-content: center;
}
.ph::before {
  content: ''; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.34) 0 2px, transparent 2px 13px);
  opacity: .55;
}
.ph::after {
  content: attr(data-label); position: relative;
  font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--azzurro-dark); background: rgba(255,255,255,.75);
  padding: .5em .9em; border-radius: var(--r-pill); backdrop-filter: blur(4px);
}
.ph.img { background-size: cover; background-position: center; }
.ph.img::before, .ph.img::after { display: none; }

/* =========================================================
   Footer
   ========================================================= */
.footer { background: var(--ink); color: #aeb8c2; padding-block: clamp(48px,7vw,84px) 28px; }
.footer h4 { color: #fff; font-size: .95rem; letter-spacing: .04em; margin-bottom: 1.1rem; }
.footer a { color: #aeb8c2; transition: color .2s; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.4fr; gap: 2.4rem; }
.footer .brand-name { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.6rem; padding-top: 1.5rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .84rem; color: var(--slate-2); }
.foot-social { display: flex; gap: 10px; margin-top: 1.3rem; }
.foot-social a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; transition: background .25s; }
.foot-social a:hover { background: var(--azzurro); }
.foot-social svg { width: 19px; height: 19px; }
@media (max-width: 860px){ .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 520px){ .footer-grid { grid-template-columns: 1fr; } }

/* =========================================================
   Reveal on scroll
   ========================================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce){ .reveal { opacity: 1; transform: none; transition: none; } }

/* =========================================================
   Floating contact buttons
   ========================================================= */
.float-bar { position: fixed; right: clamp(14px,3vw,26px); bottom: clamp(14px,3vw,26px); z-index: 90; display: flex; flex-direction: column; gap: 12px; }
.float-btn { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff; border: none; box-shadow: var(--sh-lg); transition: transform .25s var(--ease-out); position: relative; }
.float-btn:hover { transform: scale(1.08); }
.float-btn svg { width: 26px; height: 26px; }
.float-wa { background: #25d366; }
.float-call { background: var(--azzurro); }
.float-btn .pulse { position: absolute; inset: 0; border-radius: 50%; animation: pulse 2.4s ease-out infinite; }
.float-wa .pulse { box-shadow: 0 0 0 0 rgba(37,211,102,.5); }
.float-call .pulse { box-shadow: 0 0 0 0 rgba(46,143,214,.5); }
@keyframes pulse { to { box-shadow: 0 0 0 16px rgba(37,211,102,0); } }
@media (prefers-reduced-motion: reduce){ .float-btn .pulse { animation: none; } }

/* utilities */
.pill { display: inline-flex; align-items: center; gap: .5em; font-size: .82rem; font-weight: 700; padding: .5em 1em; border-radius: var(--r-pill); background: var(--azzurro-50); color: var(--azzurro-dark); }

/* Testo leggermente più piccolo sui telefoni per evitare righe troppo strette */
@media (max-width: 560px){ body { font-size: 16px; } }
