/* ==========================================================
   Clinica Veterinaria San Rocco - Pisa
   Demo realizzata da Future Is Now - futureisnow.cloud
   Palette: Verde menta #52B788 | Coral #FF9F7F | Off-white
   ========================================================== */

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

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

:root {
  --green: #52B788;
  --green-dark: #2D6A4F;
  --green-light: #B7E4C7;
  --green-soft: rgba(82, 183, 136, 0.1);
  --coral: #FF9F7F;
  --coral-dark: #F4845F;
  --bg: #F8FBF9;
  --white: #FFFFFF;
  --ink: #1B2D2A;
  --ink-soft: #5A6B68;
  --border: #E5EEE9;
  --shadow-sm: 0 1px 3px rgba(27, 45, 42, 0.06);
  --shadow-md: 0 4px 16px rgba(27, 45, 42, 0.10);
  --shadow-lg: 0 12px 32px rgba(27, 45, 42, 0.14);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Lora', Georgia, serif;
  --container: 1200px;
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- NAV --- */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 100;
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.brand-logo { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-serif); font-size: 22px; font-weight: 600; color: var(--green-dark); }
.brand-sub { font-size: 12px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.05em; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: var(--transition);
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  transition: var(--transition);
}
.nav-links a:hover { color: var(--green); }
.nav-cta {
  background: var(--green);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 9999px;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--green-dark); }

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-align: center;
}
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--green-dark); border-color: var(--green); }
.btn-ghost:hover { background: var(--green-soft); }
.btn-large { padding: 18px 40px; font-size: 17px; }
.btn-block { width: 100%; }

/* --- HERO --- */
.hero {
  padding: 80px 0 100px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--white) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green-dark);
  background: var(--green-soft);
  padding: 6px 14px;
  border-radius: 6px;
  margin-bottom: 24px;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--ink);
}
.hero h1 em { color: var(--green-dark); font-style: italic; }
.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin-bottom: 32px;
  line-height: 1.6;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-trust {
  display: flex;
  gap: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hero-trust > div { display: flex; flex-direction: column; }
.hero-trust strong {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--green-dark);
  font-weight: 600;
}
.hero-trust span { font-size: 13px; color: var(--ink-soft); }
.hero-image {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-image img {
  width: 100%;
  height: 540px;
  object-fit: cover;
}
.hero-image-tag {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--white);
  padding: 16px 20px;
  border-radius: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  box-shadow: var(--shadow-lg);
  max-width: 240px;
}
.hero-image-tag span { font-size: 32px; }
.hero-image-tag p { font-size: 13px; line-height: 1.4; }

/* --- INTRO STATEMENT --- */
.intro-statement {
  padding: 80px 0;
  background: var(--green-dark);
  color: var(--white);
  text-align: center;
}
.intro-quote {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.4;
  max-width: 900px;
  margin: 0 auto;
}
.intro-quote em { color: var(--coral); font-style: italic; }

/* --- SECTIONS BASE --- */
section { padding: 100px 0; }
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}
.section-head h2 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 16px;
}
.section-head h2 em { color: var(--green-dark); font-style: italic; }
.section-sub {
  font-size: 1.1rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* --- CHI SIAMO --- */
.section-chi { background: var(--bg); }
.chi-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.chi-image { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-md); }
.chi-image img { width: 100%; height: 480px; object-fit: cover; }
.chi-text h2 {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 600;
  margin-bottom: 24px;
  line-height: 1.2;
}
.chi-text h2 em { color: var(--green-dark); font-style: italic; }
.chi-text p {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.credentials { margin-top: 28px; }
.credentials li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--ink);
}

/* --- AMBULATORI / PER CHI --- */
.perchi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.perchi-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
}
.perchi-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--green);
}
.perchi-icon { font-size: 40px; display: block; margin-bottom: 16px; }
.perchi-card h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--ink);
}
.perchi-card p { font-size: 14px; color: var(--ink-soft); line-height: 1.6; }

/* --- SERVIZI --- */
.section-servizi { background: var(--bg); }
.servizi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.servizio-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 36px;
  position: relative;
  transition: var(--transition);
}
.servizio-card.featured {
  border-color: var(--green);
  box-shadow: var(--shadow-md);
}
.servizio-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.servizio-badge {
  position: absolute;
  top: -12px;
  right: 28px;
  background: var(--coral);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.servizio-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green-dark);
  background: var(--green-soft);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 16px;
}
.servizio-card h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--ink);
}
.servizio-desc {
  color: var(--ink-soft);
  margin-bottom: 20px;
  font-size: 15px;
}
.servizio-card ul { margin-bottom: 24px; }
.servizio-card ul li {
  padding: 6px 0 6px 24px;
  font-size: 14px;
  position: relative;
  color: var(--ink);
}
.servizio-card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}
.servizio-price {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--green-dark);
}
.servizio-price span {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 400;
}

/* --- METODO --- */
.metodo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.metodo-step { position: relative; }
.step-num {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  color: var(--coral);
  line-height: 1;
  margin-bottom: 16px;
}
.metodo-step h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--ink);
}
.metodo-step p { font-size: 14px; color: var(--ink-soft); line-height: 1.6; }

/* --- TESTIMONIANZE --- */
.section-testi { background: var(--bg); }
.testi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.testi-card {
  background: var(--white);
  border-radius: 18px;
  padding: 32px;
  border: 1px solid var(--border);
}
.testi-stars { color: var(--coral); margin-bottom: 16px; font-size: 18px; }
.testi-text {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.6;
  margin-bottom: 20px;
}
.testi-author { display: flex; gap: 14px; align-items: center; }
.testi-author img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}
.testi-author strong { display: block; color: var(--ink); }
.testi-author span { font-size: 13px; color: var(--ink-soft); }

/* --- FAQ --- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
  padding-right: 32px;
  position: relative;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
  font-weight: 300;
  color: var(--green);
  transition: var(--transition);
}
.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}
.faq-item p {
  margin-top: 16px;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* --- CTA BANNER --- */
.section-banner { padding: 60px 0; background: var(--green-soft); }
.banner-inner {
  background: var(--green-dark);
  color: var(--white);
  border-radius: 24px;
  padding: 60px;
  text-align: center;
}
.banner-inner h2 {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  margin-bottom: 16px;
}
.banner-inner h2 em { color: var(--coral); font-style: italic; }
.banner-inner p {
  font-size: 1.1rem;
  margin-bottom: 32px;
  opacity: 0.9;
}
.banner-inner .btn-primary { background: var(--coral); color: var(--white); }
.banner-inner .btn-primary:hover { background: var(--coral-dark); }

/* --- CONTATTI --- */
.contatti-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
}
.contatti-text h2 {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  margin-bottom: 20px;
  line-height: 1.2;
}
.contatti-text h2 em { color: var(--green-dark); font-style: italic; }
.contatti-text p { color: var(--ink-soft); margin-bottom: 28px; }
.contatti-info { margin-bottom: 28px; }
.contatti-info > div {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  align-items: flex-start;
  border-bottom: 1px solid var(--border);
}
.contatti-info span:first-child { font-size: 22px; }
.contatti-info strong {
  display: block;
  color: var(--ink);
  margin-bottom: 2px;
}
.contatti-form-wrap {
  background: var(--bg);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid var(--border);
}
.contatti-form h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 24px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contatti-form label {
  display: block;
  margin-bottom: 18px;
}
.contatti-form label > span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.contatti-form input,
.contatti-form select,
.contatti-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  background: var(--white);
  transition: var(--transition);
}
.contatti-form input:focus,
.contatti-form select:focus,
.contatti-form textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
}
.form-check {
  display: flex !important;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--ink-soft);
}
.form-check input { width: auto !important; margin-top: 3px; }
.form-promise {
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
}

/* --- FOOTER --- */
.footer {
  background: var(--green-dark);
  color: var(--white);
  padding: 80px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer .brand-name { color: var(--white); display: block; margin-bottom: 4px; }
.footer .brand-sub { color: var(--green-light); display: block; margin-bottom: 16px; }
.footer p { font-size: 14px; opacity: 0.85; line-height: 1.6; }
.footer h4 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: var(--coral);
}
.footer ul li { padding: 4px 0; }
.footer a { font-size: 14px; opacity: 0.85; transition: var(--transition); }
.footer a:hover { opacity: 1; color: var(--coral); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  opacity: 0.7;
  flex-wrap: wrap;
  gap: 12px;
}

/* --- DEMO BADGE --- */
.demo-badge {
  position: fixed;
  bottom: 16px;
  right: 16px;
  background: #3AA6B9;
  color: var(--white);
  padding: 12px 18px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(58, 166, 185, 0.4);
  font-size: 13px;
  max-width: 380px;
  z-index: 200;
}
.demo-badge a { color: var(--white); text-decoration: underline; font-weight: 600; }
.demo-badge a:hover { color: #CAE6E8; }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .servizi-grid, .testi-grid { grid-template-columns: 1fr; }
  .perchi-grid, .metodo-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .hero { padding: 50px 0 70px; }
  .hero-grid, .chi-grid, .contatti-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero h1, .chi-text h2, .contatti-text h2, .banner-inner h2 { font-size: 2rem; }
  .section-head h2, .intro-quote { font-size: 1.6rem; }
  section { padding: 60px 0; }
  .nav-links {
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-200%);
    transition: var(--transition);
    z-index: 99;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: block; }
  .perchi-grid, .metodo-grid, .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-trust { gap: 20px; flex-wrap: wrap; }
  .hero-image img { height: 380px; }
  .banner-inner { padding: 40px 24px; }
  .demo-badge { right: 8px; left: 8px; max-width: none; font-size: 12px; }
}
