:root {
  --font-body: "Manrope", "Public Sans", sans-serif;
  --font-heading: "Lexend", "Manrope", sans-serif;

  --bg-main: #f5faf8;
  --bg-main-gradient:
    radial-gradient(circle at 8% 10%, rgba(255, 138, 26, 0.1), transparent 34%),
    radial-gradient(circle at 92% 12%, rgba(20, 184, 166, 0.12), transparent 30%);
  --bg-section: #ffffff;
  --bg-alt: #edf6f3;

  --hero-gradient:
    radial-gradient(circle at 84% 16%, rgba(20, 184, 166, 0.22), transparent 34%),
    radial-gradient(circle at 14% 18%, rgba(255, 138, 26, 0.2), transparent 34%),
    linear-gradient(135deg, #e9f8f6 0%, #e7f2fb 45%, #effaf5 100%);

  --primary: #134f5f;
  --primary-dark: #0d3c48;
  --accent: #14b8a6;
  --cta: #ff8a1a;

  --text-main: #18343d;
  --text-soft: #4d6a72;
  --text-inverse: #f5fcfb;

  --border-soft: #d7e5e2;
  --border-strong: #c8ddd9;
  --shadow-soft: 0 10px 28px rgba(13, 60, 72, 0.08);
  --shadow-card: 0 8px 20px rgba(13, 60, 72, 0.08);
  --focus-ring: #1f9be6;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-main-gradient), var(--bg-main);
  color: var(--text-main);
  color-scheme: light;
  line-height: 1.6;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--primary);
}

p {
  color: var(--text-soft);
}

img {
  max-width: 100%;
  height: auto;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  background: #0f2337;
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  z-index: 1000;
}

.skip-link:focus {
  top: 12px;
}

.container {
  max-width: 1120px;
  margin: auto;
  padding: 0 20px;
}

section {
  padding: 96px 0;
  scroll-margin-top: 100px;
}

section h2 {
  text-align: center;
  font-size: 31px;
  letter-spacing: 0.01em;
  margin-bottom: 56px;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}

.header-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-header {
  height: 54px;
  width: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.08;
}

.brand strong {
  font-size: 18px;
  letter-spacing: 0.5px;
  color: var(--primary);
}

.brand small {
  font-size: 14px;
  color: var(--text-soft);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-menu a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.24s ease;
}

.nav-menu a:hover {
  color: var(--primary-dark);
}

.hero {
  position: relative;
  padding: 146px 0 120px;
  text-align: center;
  background: var(--hero-gradient);
  border-bottom: 1px solid var(--border-soft);
}

.hero h1 {
  max-width: 920px;
  margin: 0 auto 20px;
  font-size: 48px;
  line-height: 1.12;
  color: #0f4250;
}

.hero p {
  max-width: 840px;
  margin: 0 auto 38px;
  font-size: 21px;
  color: #365f69;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.btn-primary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  background: linear-gradient(125deg, #1e97e8 0%, #14b8a6 100%);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(13, 60, 72, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(13, 60, 72, 0.24);
  background: linear-gradient(125deg, #1a88d3 0%, #109f91 100%);
}

.hero .btn-primary {
  background: linear-gradient(125deg, #ff981f 0%, #ff692a 100%);
  padding: 17px 36px;
  box-shadow: 0 14px 34px rgba(255, 105, 42, 0.34);
}

.hero .btn-primary:hover {
  background: linear-gradient(125deg, #f0830f 0%, #f3571c 100%);
  box-shadow: 0 18px 38px rgba(255, 105, 42, 0.42);
  transform: translateY(-3px) scale(1.01);
}

.hero-app-link {
  margin: 0;
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--primary-dark);
  text-decoration: none;
  border-bottom: 2px solid rgba(19, 79, 95, 0.3);
  padding-bottom: 2px;
  transition: color 0.24s ease, border-color 0.24s ease, transform 0.24s ease;
}

.hero-app-link:hover {
  color: var(--primary);
  border-color: rgba(19, 79, 95, 0.6);
  transform: translateY(-1px);
}

.hero-app-link span {
  font-size: 1.05em;
}

.btn-prenota {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px 10px 12px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  color: #ffffff !important;
  background: linear-gradient(125deg, #ff981f 0%, #ff692a 100%);
  box-shadow: 0 8px 18px rgba(255, 105, 42, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-prenota:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(255, 105, 42, 0.34);
  background: linear-gradient(125deg, #f0830f 0%, #f3571c 100%);
}

.logo-miodottore {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.grid,
.method-steps {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.card {
  flex: 1;
  min-width: 280px;
  background: var(--bg-section);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 30px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 28px rgba(13, 60, 72, 0.14);
  border-color: var(--border-strong);
}

.card h3 {
  margin-bottom: 12px;
  color: var(--primary);
}

.chi-sono {
  background: var(--bg-section);
}

.chi-sono-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 52px;
  align-items: center;
}

.chi-sono-foto img {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

.chi-sono-testo p {
  margin-bottom: 1.16rem;
}

.dove-ricevo {
  background: var(--bg-alt);
  padding: 96px 0 0;
}

.dove-ricevo-indirizzo {
  text-align: center;
  margin-top: -36px;
  margin-bottom: 40px;
  color: var(--text-soft);
  font-size: 15px;
}

.map-full {
  width: 100%;
  height: 680px;
}

.map-full iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.reviews {
  background: var(--bg-section);
}

.google-reviews-wrapper {
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.google-reviews-wrapper iframe {
  display: block;
  width: 100%;
  border: 0;
  height: clamp(560px, 75vh, 900px);
}

.cta {
  text-align: center;
  padding: 94px 20px;
  color: var(--text-main);
  background:
    radial-gradient(circle at 12% 16%, rgba(255, 152, 31, 0.14), transparent 34%),
    linear-gradient(140deg, #e7f6f2 0%, #eaf6fd 54%, #edf9f4 100%);
  border-top: 1px solid var(--border-soft);
}

.cta h2 {
  color: var(--primary);
}

.cta-text {
  margin: 20px 0 36px;
  color: var(--text-soft);
}

.cta .btn-primary {
  margin: 8px;
  background: linear-gradient(125deg, #1e97e8 0%, #14b8a6 100%);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(13, 60, 72, 0.2);
}

.cta .btn-primary:hover {
  background: linear-gradient(125deg, #1a88d3 0%, #109f91 100%);
}

footer {
  background: #f3f8f7;
  color: var(--text-main);
  text-align: center;
  padding: 30px 20px;
  font-size: 14px;
  border-top: 1px solid var(--border-soft);
}

footer a {
  color: var(--primary-dark);
}

#contatti {
  scroll-margin-top: 100px;
}

#perche h2 {
  position: relative;
  padding-bottom: 14px;
}

#perche h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 74px;
  height: 4px;
  border-radius: 2px;
  background: var(--cta);
}

#perche .card:hover {
  border-color: rgba(255, 138, 26, 0.5);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
}

@media (max-width: 1024px) {
  .header-inner {
    padding: 14px 20px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero p {
    font-size: 19px;
  }
}

@media (max-width: 768px) {
  section {
    padding: 74px 0;
  }

  section h2 {
    font-size: 27px;
    margin-bottom: 38px;
  }

  .hero {
    padding: 112px 0 104px;
  }

  .hero h1 {
    font-size: 33px;
  }

  .hero p {
    font-size: 18px;
  }

  .hero-actions {
    gap: 14px;
  }

  .hero-app-link {
    font-size: 15px;
  }

  .grid,
  .method-steps {
    flex-direction: column;
    gap: 20px;
  }

  .chi-sono-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }

  .map-full {
    height: 420px;
  }

  .brand {
    gap: 10px;
  }

  .logo-header {
    height: 44px;
  }

  .brand strong {
    font-size: 14px;
    letter-spacing: 0.3px;
  }

  .brand small {
    font-size: 12px;
  }

  .cta .btn-primary {
    display: block;
    max-width: 320px;
    margin: 10px auto;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    width: auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(15, 53, 60, 0.14);
    max-height: calc(100dvh - 120px);
    overflow-y: auto;
    z-index: 101;
  }

  .nav-menu a {
    width: 100%;
    display: block;
    padding: 12px 0;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu .btn-prenota {
    justify-content: center;
    margin-top: 8px;
  }

  .header-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero h1 {
    font-size: 29px;
  }

  .hero p {
    font-size: 16px;
  }

  .card {
    min-width: 0;
    padding: 24px;
  }

  .map-full {
    height: 340px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    animation: none !important;
    transition: none !important;
  }
}
