:root {
  --bg: #f4f8fd;
  --paper: #ffffff;
  --ink: #17314f;
  --ink-soft: #57718d;
  --brand: #4978b0;
  --brand-strong: #355d8b;
  --accent: #dbe8f7;
  --line: #cedbed;
  --shadow: 0 12px 40px rgba(73, 120, 176, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 10% 10%, #e3eefb 0%, var(--bg) 35%),
    radial-gradient(circle at 90% 0%, #f7fbff 0%, transparent 30%),
    var(--bg);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

.bg-shape {
  position: fixed;
  border-radius: 999px;
  filter: blur(2px);
  z-index: -1;
  pointer-events: none;
}

.bg-shape-a {
  width: 280px;
  height: 280px;
  right: -80px;
  top: 90px;
  background: rgba(73, 120, 176, 0.14);
}

.bg-shape-b {
  width: 220px;
  height: 220px;
  left: -70px;
  top: 60%;
  background: rgba(124, 165, 214, 0.18);
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.section {
  padding: 4.5rem 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(244, 248, 253, 0.9);
  border-bottom: 1px solid rgba(73, 120, 176, 0.14);
}

.header-inner {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
}

.logo img {
  width: 350px;
  height: 150px;
  display: block;
}

.main-nav {
  display: flex;
  gap: 1.25rem;
}

.main-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.96rem;
}

.main-nav a:hover {
  color: var(--brand);
}

.btn {
  display: inline-block;
  border: none;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.2px;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: #ffffff;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(73, 120, 176, 0.28);
}

.btn-small {
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
}

.btn-ghost {
  background: rgba(73, 120, 176, 0.06);
  color: var(--brand-strong);
  border: 1px solid var(--brand-strong);
  box-shadow: none;
}

.hero {
  padding-top: 5.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.2rem;
  align-items: center;
}

.eyebrow {
  color: var(--brand-strong);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 0.78rem;
  margin-bottom: 0.4rem;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.2;
}

h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin-bottom: 1rem;
}

.lead {
  color: var(--ink-soft);
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.hero-image,
.studio figure,
.case,
.quote-box {
  margin: 0;
}

.hero-image img,
.studio img,
.case img,
.quote-box img {
  width: 100%;
  border-radius: 20px;
  display: block;
  object-fit: cover;
}

.hero-image img {
  min-height: 440px;
  box-shadow: var(--shadow);
}

.section-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  margin-bottom: 1.2rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.2rem;
  box-shadow: 0 8px 24px rgba(73, 120, 176, 0.08);
}

.card h3 {
  margin-bottom: 0.6rem;
}

.card p {
  color: var(--ink-soft);
  margin: 0;
}

.studio-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 1.4rem;
  align-items: center;
}

.studio-grid p {
  color: var(--ink-soft);
}

.mini-gallery {
  margin-top: 1.1rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.team-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(73, 120, 176, 0.08);
  margin: 0;
  display: flex;
  gap: 1.2rem;
  align-items: center;
  padding: 1.2rem;
}

.team-card img {
  width: 132px;
  height: 172px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.team-card figcaption h3 {
  margin-bottom: 0.3rem;
}

.team-card figcaption p {
  color: var(--ink-soft);
  margin: 0;
}

.studio-wide {
  margin: 1.6rem 0 0;
}

.studio-wide img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: 20px;
  display: block;
  box-shadow: 0 8px 24px rgba(73, 120, 176, 0.08);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.case {
  background: var(--paper);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(73, 120, 176, 0.08);
}

.case img {
  height: 270px;
}

.case figcaption {
  padding: 0.9rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.quote-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  gap: 1.5rem;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 2.5rem;
  text-align: center;
}

.quote-box img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  flex-shrink: 0;
  margin: 0;
}

blockquote {
  margin: 0;
  padding: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  color: var(--ink);
  max-width: 640px;
  text-align: center;
}

.site-footer {
  padding: 3rem 0;
  background: #294c73;
  color: #eff5fd;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
}

.site-footer h2,
.site-footer h3 {
  margin-bottom: 0.5rem;
}

.site-footer p {
  margin: 0.2rem 0;
  color: #d8e7f7;
}

.site-footer a {
  color: #ffffff;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.hours-list {
  margin-bottom: 0.8rem;
}

.hours-list p {
  margin: 0.12rem 0;
}

.travel-time {
  margin-bottom: 1rem;
  font-weight: 700;
  color: #eff5fd;
}

.site-footer .btn {
  margin-top: 0.8rem;
  background: linear-gradient(135deg, #ffffff, #dbe8f7);
  color: #294c73;
  box-shadow: none;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.75s ease forwards;
}

.reveal-1 {
  animation-delay: 0.1s;
}

.reveal-2 {
  animation-delay: 0.24s;
}

.reveal-3 {
  animation-delay: 0.36s;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .main-nav {
    display: none;
  }

  .logo img {
    width: 350px;
  }

  .hero-grid,
  .studio-grid,
  .cases-grid,
  .cards,
  .team-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-image img {
    min-height: 300px;
  }

  .case img {
    height: 230px;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 3.5rem 0;
  }

  .header-inner {
    min-height: 64px;
    flex-wrap: wrap;
  }

  .logo {
    width: 100%;
    justify-content: center;
  }

  .logo img {
    width: 124px;
  }

  .btn,
  .btn-small {
    width: 100%;
    text-align: center;
  }

  .hero-actions {
    width: 100%;
  }

  .quote-box {
    padding: 1.5rem;
  }
}

/* Popup Richiedi appuntamento */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(23, 49, 79, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: var(--paper);
  border-radius: 20px;
  padding: 2rem;
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow);
  position: relative;
  transform: translateY(12px);
  transition: transform 0.25s ease;
}

.modal-overlay.is-open .modal-box {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  border: none;
  background: rgba(73, 120, 176, 0.1);
  color: var(--ink);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  background: rgba(73, 120, 176, 0.2);
}

.modal-box h3 {
  font-family: "Playfair Display", serif;
  margin-bottom: 0.6rem;
}

.modal-box > p {
  color: var(--ink-soft);
}

.modal-contacts {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 1.2rem;
}

.modal-contact-link {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.modal-contact-link:hover {
  border-color: var(--brand);
  background: var(--accent);
}

.modal-contact-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--brand-strong);
  font-weight: 800;
}

body.modal-open {
  overflow: hidden;
}

/* Pagine Trattamenti */
.breadcrumb {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--brand-strong);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.treatment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.treatment-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.6rem;
  box-shadow: 0 8px 24px rgba(73, 120, 176, 0.08);
  text-decoration: none;
  color: var(--ink);
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.treatment-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.treatment-card h3 {
  margin-bottom: 0.5rem;
}

.treatment-card h3:last-child {
  margin-bottom: 0;
}

.treatment-card p {
  color: var(--ink-soft);
  margin: 0;
}

.content-page article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2.2rem;
  box-shadow: 0 8px 24px rgba(73, 120, 176, 0.08);
  max-width: 820px;
}

.content-page h2 {
  font-family: "Playfair Display", serif;
}

.content-page h3 {
  margin-top: 2rem;
  margin-bottom: 0.6rem;
  color: var(--brand-strong);
}

.content-page p {
  color: var(--ink-soft);
}

.content-page ul {
  color: var(--ink-soft);
  padding-left: 1.2rem;
}

.content-page li {
  margin-bottom: 0.35rem;
}

.content-page .lead {
  max-width: none;
}

.placeholder-note {
  color: var(--ink-soft);
  font-style: italic;
}

.source-note {
  color: var(--ink-soft);
  font-size: 0.85rem;
  margin-top: 2rem;
}

@media (max-width: 960px) {
  .treatment-grid {
    grid-template-columns: 1fr;
  }

  .content-page article {
    padding: 1.4rem;
  }
}
