/* =====================================================================
   STUDIO DENTISTICO SASSI-COK — FOGLIO DI STILE
   Colori e caratteri sono definiti una volta sola qui in cima.
   ===================================================================== */

@font-face { font-family: "Lato"; src: url("../fonts/lato-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Lato"; src: url("../fonts/lato-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Raleway"; src: url("../fonts/raleway-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Raleway"; src: url("../fonts/raleway-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Raleway"; src: url("../fonts/raleway-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --navy: #465682;          /* titoli, testo del menu, pulsante "Invia", footer */
  --blue: #6188c7;          /* fasce blu medie, colore del menu attivo */
  --light: #a7c5e8;         /* fasce azzurre */
  --pale: #e1ecfd;          /* barra in alto */
  --text: #1d1d1f;          /* testo normale */
  --white: #fff;
  --heading: "Raleway", Arial, sans-serif;
  --body: "Lato", Arial, sans-serif;
  --container: 1080px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--light); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.75; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { font-family: var(--heading); font-weight: 700; color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: 46px; color: var(--white); }
h2 { font-size: 40px; }
h3 { font-size: 20px; font-weight: 600; }
h4 { font-size: 20px; font-weight: 600; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 80%; max-width: var(--container); margin: 0 auto; }
.section { padding: 80px 0; }
.band-light { background: var(--light); }
.band-mid { background: var(--blue); }
.kicker { font-family: var(--heading); font-weight: 600; text-transform: uppercase; letter-spacing: 2px; color: var(--white); margin-bottom: .6em; }
.section-title { text-align: center; color: var(--white); margin-bottom: 1.3em; }
h2.light { color: var(--light); }
.rounded { border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.15); }

.btn {
  display: inline-block; margin-top: .8em; padding: 14px 32px;
  background: var(--white); color: var(--navy); border: 0; border-radius: 40px;
  font-family: var(--body); font-weight: 700; font-size: 15px; cursor: pointer;
  box-shadow: 0 12px 18px -6px rgba(0,0,0,.3); transition: transform .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-dark { background: var(--navy); color: var(--white); text-transform: uppercase; box-shadow: none; }

/* ---------- Barra in alto ---------- */
.site-header { background: var(--pale); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 30px; min-height: 100px; }
.logo img { width: 300px; }
.main-menu { margin-left: auto; }
.main-menu ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; }
.main-menu a { font-family: var(--heading); font-weight: 600; color: var(--navy); font-size: 16px; }
.main-menu .current a, .main-menu a:hover { color: var(--blue); text-decoration: none; }
.header-phone { display: flex; align-items: center; gap: 12px; font-family: var(--heading); font-weight: 600; font-size: 18px; color: var(--blue); white-space: nowrap; }
.header-phone svg { width: 30px; height: 30px; fill: var(--navy); }
.header-phone:hover { text-decoration: none; }
.menu-toggle { display: none; }

/* ---------- Testata delle pagine (foto sfumata nel blu, bordo inferiore ondulato) ---------- */
.hero {
  position: relative; padding: 140px 0 200px; color: var(--white);
  background-color: var(--blue);
  background-image: radial-gradient(circle at top right, rgba(255,255,255,0) 20%, var(--blue) 100%), var(--img, none);
  background-size: cover; background-position: right center;
  clip-path: polygon(0 0, 100% 0, 100% 89%, 22% 100%, 0 91%);
  margin-bottom: -50px; z-index: 1;
}
.hero h1 { max-width: 560px; }
.hero-sub { font-size: 18px; color: rgba(255,255,255,.85); }
.hero .kicker { color: rgba(255,255,255,.85); }
.hero-home { background-position: center top; }
.hero-short { padding: 110px 0 170px; background-image: radial-gradient(circle at top right, #fff 7%, var(--blue) 94%); }
.hero-tall { padding: 200px 0 230px; background-position: right 19% center; }
.hero + .section { padding-top: 130px; }

/* ---------- Due colonne: foto + testo ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split p { font-size: 16px; }
.band-mid .split p { color: var(--text); }

/* ---------- Home: riquadri dei trattamenti ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.tile {
  position: relative; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background-image: radial-gradient(circle at right, rgba(138,182,247,.07) 8%, rgba(151,189,240,.65) 52%, #a7c5e8 100%), var(--img);
  background-size: cover; background-position: center;
  box-shadow: 0 12px 18px -6px rgba(0,0,0,.3);
  color: var(--white); font-weight: 700; text-align: center; line-height: 1.3;
  text-shadow: 0 1px 6px rgba(0,0,0,.25); transition: transform .25s;
}
.tile img { width: 64px; height: 64px; border-radius: 50%; background: var(--white); transition: transform .25s; }
.tile:hover { text-decoration: none; transform: translateY(-4px); }
.tile:hover img { transform: scale(1.08); }

/* ---------- Home: foto della sala d'attesa ---------- */
.studio-photo {
  height: 480px; background-color: var(--light);
  background-image: radial-gradient(circle at top left, rgba(237,239,250,0) 20%, #edeffa 80%), var(--img);
  background-size: cover; background-position: center;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 22% 82%, 0 30%);
}
.studio-text { padding-top: 40px; }
.studio-text .kicker { color: var(--white); }

/* ---------- Trattamenti ---------- */
.treatments { display: grid; grid-template-columns: repeat(3, 1fr); gap: 60px 40px; }
.treatments img { border-radius: 8px; margin-bottom: 22px; aspect-ratio: 1; object-fit: cover; }
.treatments p { font-size: 14px; }

/* ---------- Personale ---------- */
.staff { display: grid; grid-template-columns: repeat(4, 1fr); gap: 50px 40px; }
.staff figure { margin: 0; }
.staff img { border-radius: 6px; aspect-ratio: 5 / 7; object-fit: cover; width: 100%; margin-bottom: 14px; }
.staff img.no-photo { object-fit: contain; padding: 22%; background: rgba(255,255,255,.35); opacity: .7; }
.staff strong { display: block; font-family: var(--heading); font-weight: 700; color: var(--white); font-size: 16px; margin-bottom: 6px; }
.staff figcaption { color: var(--navy); font-size: 14px; line-height: 1.5; }

/* ---------- Fascia contatti (orari, recapiti, modulo) ---------- */
.contact-band { background: var(--blue); color: var(--white); }
.contact-band-grid { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 40px; align-items: center; }
.info-col { text-align: center; }
.info-col h4 { color: var(--navy); }
.info-col a { color: var(--white); }
.info-col a.mail { color: var(--navy); }
.form-col h2 { color: var(--white); text-align: center; font-size: 34px; }

.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form label { display: block; margin-bottom: 14px; }
.contact-form input, .contact-form textarea {
  width: 100%; border: 0; border-radius: 22px; padding: 12px 18px; background: var(--white);
  font-family: var(--body); font-size: 15px; color: var(--text);
}
.contact-form textarea { border-radius: 22px; resize: vertical; }
.contact-form .btn { width: 100%; margin-top: 0; }
.hp { position: absolute; left: -9999px; }
.privacy-note { font-size: 13px; margin-bottom: 10px; opacity: .9; }
.contact-band .privacy-note a { color: var(--white); text-decoration: underline; }
.form-message { padding: 12px 18px; border-radius: 8px; margin-bottom: 16px; font-weight: 700; }
.form-message.ok { background: #e3f6e8; color: #1d6b36; }
.form-message.error { background: #fde8e8; color: #9b1c1c; }
.form-message a { color: inherit; text-decoration: underline; }

/* ---------- Pagina Contatti ---------- */
.contact-card {
  background: #f7faff; border-radius: 6px; padding: 40px 50px; margin-bottom: 50px;
  box-shadow: 0 12px 30px rgba(0,0,0,.08); display: grid; grid-template-columns: 1fr 1fr; gap: 30px;
}
.contact-card h4 { font-size: 17px; margin-top: 1.2em; }
.contact-card h4:first-child { margin-top: 0; }
.contact-card p, .contact-card a { color: var(--blue); }
.contact-page-form { max-width: 760px; margin: 0 auto; }
.contact-page-form h2 { text-align: center; font-size: 34px; }

/* ---------- Mappa ---------- */
.map { position: relative; background: var(--white); }
.map iframe { position: relative; display: block; width: 100%; height: 450px; border: 0; }
.map-note { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; margin: 0; padding: 20px; text-align: center; color: var(--navy); }
.map-link { z-index: 1; position: absolute; left: 16px; bottom: 16px; background: var(--white); padding: 6px 14px; border-radius: 20px; font-size: 14px; box-shadow: 0 2px 8px rgba(0,0,0,.2); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--white); text-align: center; padding: 60px 0 40px; }
.footer-logo { width: 260px; margin: 0 auto 30px; }
.footer-menu { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 30px; }
.footer-menu a { color: var(--white); font-family: var(--heading); font-weight: 700; }
.footer-legal { font-size: 13px; opacity: .85; }
.footer-legal a { color: var(--white); }

/* ---------- Pulsante WhatsApp ---------- */
.whatsapp { position: fixed; right: 24px; bottom: 24px; z-index: 60; width: 64px; height: 64px; filter: drop-shadow(0 4px 8px rgba(0,0,0,.25)); }

/* ---------- Tablet ---------- */
@media (max-width: 980px) {
  h1 { font-size: 36px; }
  h2 { font-size: 32px; }
  .header-inner { flex-wrap: wrap; gap: 0; min-height: 80px; }
  .logo img { width: 220px; }
  .menu-toggle {
    display: block; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative;
  }
  .menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
    position: absolute; left: 8px; width: 28px; height: 3px; background: var(--navy); border-radius: 2px; content: ""; transition: .2s;
  }
  .menu-toggle span { top: 20px; }
  .menu-toggle span::before { top: -9px; left: 0; }
  .menu-toggle span::after { top: 9px; left: 0; }
  .site-header.open .menu-toggle span { background: transparent; }
  .site-header.open .menu-toggle span::before { top: 0; transform: rotate(45deg); }
  .site-header.open .menu-toggle span::after { top: 0; transform: rotate(-45deg); }
  .main-menu { display: none; width: 100%; order: 3; margin: 0; }
  .site-header.open .main-menu { display: block; }
  .main-menu ul { flex-direction: column; gap: 0; padding: 6px 0 12px; }
  .main-menu li a { display: block; padding: 10px 0; border-top: 1px solid rgba(70,86,130,.12); }
  .header-phone { order: 4; width: 100%; justify-content: center; padding: 8px 0 14px; }
  .hero { background-image: radial-gradient(circle at top right, rgba(255,255,255,0) 20%, var(--blue) 100%), var(--img-sm, none); padding: 110px 0 150px; }
  .hero-short { background-image: radial-gradient(circle at top right, #fff 7%, var(--blue) 94%); }
}
@media (max-width: 600px) {
  .hero:not(.hero-short) { background-image: linear-gradient(rgba(97,136,199,.35), rgba(97,136,199,.8)), var(--img-sm, none); }
}
@media (max-width: 980px) {
  .studio-photo { background-image: radial-gradient(circle at top left, rgba(237,239,250,0) 20%, #edeffa 80%), var(--img-sm); height: 320px; }
  .split, .contact-band-grid { grid-template-columns: 1fr; gap: 36px; }
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .treatments { grid-template-columns: repeat(2, 1fr); }
  .staff { grid-template-columns: repeat(3, 1fr); gap: 36px 24px; }
}

/* ---------- Telefono ---------- */
@media (max-width: 600px) {
  .container { width: auto; margin: 0 20px; }
  .section { padding: 60px 0; }
  h1 { font-size: 30px; }
  h2, .form-col h2 { font-size: 28px; }
  .tiles { grid-template-columns: 1fr; }
  .tile { aspect-ratio: 16 / 9; }
  .treatments { grid-template-columns: 1fr; gap: 44px; }
  .staff { grid-template-columns: repeat(2, 1fr); gap: 30px 16px; }
  .contact-form .row { grid-template-columns: 1fr; gap: 0; }
  .contact-card { grid-template-columns: 1fr; padding: 30px 24px; }
  .whatsapp { width: 54px; height: 54px; right: 16px; bottom: 16px; }
  .map iframe { height: 340px; }
}
