/* Struttura comune. Colori e font sono nel file del tema (tema-*.css). */

:root { color-scheme: light; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-ink); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-title); font-weight: var(--title-weight); line-height: 1.1; margin: 0 0 .5em; letter-spacing: var(--title-tracking); }
h1 { font-size: clamp(2.4rem, 7vw, 4rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); }
h3 { font-size: 1.15rem; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
section.wrap { padding-top: 72px; padding-bottom: 72px; }
section > p { max-width: 60ch; color: var(--muted); }

/* Barra in alto */
.topbar { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; min-height: 60px; flex-wrap: wrap; }
.brand { font-family: var(--font-title); font-weight: var(--title-weight); font-size: 1.15rem; color: var(--text); text-decoration: none; }
.topbar ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 6px 0; }
.topbar ul a { color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 500; }
.topbar ul a:hover { color: var(--accent-ink); }
.topbar ul { margin-left: auto; }

/* Selettore lingua */
.lang { display: flex; flex-shrink: 0; padding: 3px; border-radius: 999px; background: var(--accent-soft); }
.lang a { padding: 6px 11px; border-radius: 999px; font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-decoration: none; color: var(--accent-ink); }
.lang a[aria-current] { background: var(--accent); color: var(--on-accent); }
.legal-nav { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.lang-link { font-weight: 600; }

/* Apertura */
.hero { position: relative; padding: 40px 0 64px; overflow: hidden; }
.hero > .wrap { position: relative; z-index: 1; }
.paws { position: absolute; left: 0; bottom: 0; width: min(46%, 520px); color: var(--accent); opacity: .14; pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-block; background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; font-size: .85rem; padding: 6px 14px; border-radius: 999px; margin: 0 0 1.2em; }
.hl { color: var(--accent-ink); }
.lead { font-size: 1.25rem; color: var(--muted); margin: 0 0 1.8em; max-width: 30ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-photos { position: relative; justify-self: center; width: min(100%, 420px); }
.hero-portrait { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--blob); background: var(--accent-soft); }
.bubble { position: absolute; width: 36%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 6px solid var(--bg); }
.b1 { left: -10%; bottom: 0; }
.b2 { right: -6%; top: -4%; width: 30%; }

.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: transform .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--accent); color: var(--on-accent); }
.btn.ghost { background: var(--accent-soft); color: var(--accent-ink); }
.btn.light { background: var(--on-accent); color: var(--accent-ink); }

/* Icone disegnate (sprite SVG nella pagina) */
.ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 14px; }
.ico svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ico.sm { width: 42px; height: 42px; border-radius: 13px; margin-bottom: 10px; }
.ico.sm svg { width: 24px; height: 24px; }
#i-zampa, .paws { fill: currentColor; stroke: none; }
.ico svg use[href="#i-zampa"] { fill: currentColor; stroke: none; }

/* Chi è */
.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.about p { margin-top: 0; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.facts li { background: var(--surface); border-radius: 18px; padding: 18px 20px; display: flex; gap: 14px; align-items: center; }
.facts .ico { margin: 0; flex-shrink: 0; background: var(--bg); }
.facts strong { display: block; font-family: var(--font-title); font-weight: var(--title-weight); font-size: 1.15rem; color: var(--accent-ink); }
.facts span { color: var(--muted); font-size: .95rem; }

/* Animali */
.pets { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 28px; }
.pets img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 20px; }
.pets { grid-auto-flow: dense; }
.pets img.feature { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; height: 100%; }
.pets img.wide { grid-column: span 2; aspect-ratio: auto; height: 100%; }

/* Servizi */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-top: 28px; }
.card { background: var(--surface); border-radius: 22px; padding: 24px; }
.card p { margin: 0; color: var(--muted); }

/* Ambulatorio */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 28px; }
.gallery figure { margin: 0; }
.gallery img { border-radius: 18px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.gallery figcaption { color: var(--muted); font-size: .9rem; margin-top: 8px; }

/* Orari e dove */
.info { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; background: var(--surface); border-radius: 28px; padding: 40px; }
.booking { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-top: 16px; background: var(--accent-soft); border-radius: 28px; padding: 32px 40px; }
.booking h2 { margin-bottom: .3em; }
.booking p { margin: 0 0 .5em; max-width: 52ch; }
.hours { border-collapse: collapse; width: 100%; }
.hours th, .hours td { text-align: left; vertical-align: top; padding: 12px 0; border-bottom: 1px solid var(--line); }
.hours th { font-weight: 600; padding-right: 16px; }
.note { color: var(--muted); }
address { font-style: normal; font-size: 1.1rem; margin-bottom: 1.2em; }

/* Recensioni */
.reviews { background: var(--accent); color: var(--on-accent); border-radius: 28px; padding: 48px 40px; text-align: center; }
.reviews p { max-width: 48ch; margin: 0 auto 1.6em; opacity: .92; }
.score { display: flex; flex-direction: column; align-items: center; }
.score strong { font-family: var(--font-title); font-weight: var(--title-weight); font-size: 4rem; line-height: 1; }

.btn.outline { color: var(--on-accent); box-shadow: inset 0 0 0 2px var(--on-accent); }
.actions.center { justify-content: center; }

/* Urgenze */
.urgent { background: var(--alert-soft); border-radius: 28px; padding: 40px; }
.urgent h2 { color: var(--alert); }
.urgent > p { max-width: 64ch; }
.urgent a:not(.btn) { color: var(--alert); font-weight: 600; }
.urgent .btn.primary { background: var(--alert); }
.checklist { list-style: none; margin: 8px 0 28px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 8px 24px; }
.checklist li { position: relative; padding-left: 26px; }
.checklist li::before { content: ""; position: absolute; left: 4px; top: .6em; width: 10px; height: 10px; border-radius: 50%; background: var(--alert); }

/* Diagnostica e consulenze */
.section-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: .5em; }
.section-head h2 { margin: 0; }
.pill { display: inline-block; background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: .85rem; padding: 6px 14px; border-radius: 999px; }
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0; }
.services.two { grid-template-columns: repeat(2, 1fr); }
.service { background: var(--surface); border-radius: 22px; padding: 22px; border-left: 5px solid var(--accent); }
.service h3 { margin-bottom: 6px; }
.service p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Viaggi */
h3.sub { font-size: 1.3rem; margin: 40px 0 16px; }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.steps li { counter-increment: step; background: var(--surface); border-radius: 22px; padding: 22px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 700; margin-bottom: 12px; }
.steps strong { display: block; font-size: 1.1rem; margin-bottom: 6px; }
.steps span { color: var(--muted); font-size: .95rem; }
.travel-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 32px; }
.travel-box { border: 2px solid var(--accent-soft); border-radius: 22px; padding: 22px; }
.travel-box h3 { font-size: 1.05rem; color: var(--accent-ink); }
.travel-box p { margin: 0; color: var(--muted); font-size: .95rem; }
.travel-box p + p { margin-top: .8em; }
.asl { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 16px; padding: 18px 22px; border-radius: 18px; background: var(--accent-soft); }
.asl strong { display: block; }
.asl span { color: var(--muted); font-size: .95rem; }
.asl .btn.ghost { background: var(--bg); }
.ticks { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 32px; }
.ticks li { position: relative; padding-left: 30px; color: var(--muted); }
.ticks li strong { color: var(--text); }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-size: .8rem; font-weight: 700; display: grid; place-items: center; margin-top: 2px; }

/* Elenchi numerati dentro le schede (es. trasporto dei serpenti) */
.card ol { margin: 0 0 .8em; padding-left: 1.2em; color: var(--muted); }
.card ol li { margin-bottom: .45em; padding-left: .2em; }
.card ol li::marker { color: var(--accent-ink); font-weight: 700; }

/* Elenchi puntati dentro le schede (es. cane e gatto in ambulatorio) */
.card ul { margin: 0; padding-left: 1.1em; color: var(--muted); }
.card ul li { margin-bottom: .55em; padding-left: .2em; }
.card ul li::marker { color: var(--accent-ink); }
.card ul strong { color: var(--text); }
.pulizia { display: flex; flex-direction: column; gap: 4px; margin-top: 16px; padding: 18px 22px; border-radius: 18px; background: var(--accent-soft); }
.pulizia strong { color: var(--accent-ink); }

/* Fauna selvatica e sezioni nuove */
.steps.five { grid-template-columns: repeat(5, 1fr); }
#vacanza .booking, #holiday .booking { margin-top: 28px; }
#esotici .grid, #vacanza .grid, #holiday .grid, #exotics .grid { margin-bottom: 8px; }
.contacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.contact { background: var(--accent-soft); border-radius: 18px; padding: 18px 22px; display: flex; flex-direction: column; gap: 4px; }
.contact strong { color: var(--accent-ink); }
.contact span { color: var(--text); font-size: .95rem; }

/* Domande frequenti */
.faq { display: grid; gap: 10px; margin-top: 24px; max-width: 780px; }
.faq details { background: var(--surface); border-radius: 18px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 600; padding: 18px 32px 18px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--accent-ink); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; color: var(--muted); }

footer { padding: 48px 0; color: var(--muted); font-size: .9rem; }
footer p { margin: 0 0 .75em; }
.logo { width: 180px; border-radius: 12px; margin-bottom: 16px; }

.legal { padding: 48px 16px; max-width: 760px; }
.legal h2 { font-size: 1.3rem; margin-top: 1.6em; }

/* Barra contatti fissa: solo su telefono */
.actionbar { display: none; }

@media (max-width: 760px) {
  html { scroll-padding-top: 56px; -webkit-text-size-adjust: 100%; }
  body { font-size: 16px; padding-bottom: calc(76px + env(safe-area-inset-bottom)); -webkit-tap-highlight-color: transparent; }
  section.wrap { padding-top: 44px; padding-bottom: 44px; }

  /* Menu su una riga, scorrevole di lato */
  .topbar .wrap { flex-wrap: nowrap; min-height: 52px; }
  .brand { flex-shrink: 0; font-size: 1.05rem; }
  .topbar .wrap { gap: 10px; }
  .topbar ul { flex: 1; min-width: 0; margin-left: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 0; padding: 0; -webkit-mask-image: linear-gradient(to right, #000 85%, transparent); mask-image: linear-gradient(to right, #000 85%, transparent); }
  .topbar ul::-webkit-scrollbar { display: none; }
  .topbar ul a { display: block; padding: 14px 10px; white-space: nowrap; }

  /* Apertura: foto sopra, più piccola, pulsanti a tutta larghezza */
  .hero { padding: 16px 0 36px; }
  .hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .hero-photos { order: -1; width: 220px; margin: 8px auto 0; }
  .hero-text { text-align: center; }
  .lead { margin-left: auto; margin-right: auto; font-size: 1.1rem; margin-bottom: 1.4em; }
  .hero .actions { display: grid; grid-template-columns: 1fr 1fr; }
  .btn { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 16px; text-align: center; }
  .hide-sm { display: none; }

  .about, .info { grid-template-columns: 1fr; }
  .about { gap: 24px; }
  .facts { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .facts li { padding: 14px 12px; flex-direction: column; align-items: flex-start; gap: 8px; }
  .paws { width: 100%; opacity: .1; }
  .facts strong { font-size: .95rem; line-height: 1.25; margin-bottom: 4px; }
  .facts span { font-size: .8rem; line-height: 1.35; display: block; }

  .pets { grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 20px; }
  .pets img { border-radius: 14px; }

  /* Servizi più compatti */
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
  .card { padding: 16px; border-radius: 18px; }
  .card h3 { font-size: 1rem; margin-bottom: .35em; }
  .ico { width: 44px; height: 44px; border-radius: 14px; margin-bottom: 10px; }
  .ico svg { width: 24px; height: 24px; }
  .card p { font-size: .9rem; line-height: 1.45; }

  .gallery { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; }
  .gallery img { border-radius: 14px; }

  .info { padding: 24px 20px; gap: 28px; border-radius: 22px; }
  .info .actions, .booking .actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .booking { padding: 24px 20px; border-radius: 22px; }
  .reviews { padding: 36px 20px; border-radius: 22px; }
  .reviews .actions { display: grid; grid-template-columns: 1fr; }
  .urgent { padding: 28px 20px; border-radius: 22px; }
  .urgent .btn { width: 100%; }
  .checklist { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr 1fr; gap: 10px; margin: 20px 0; }
  .service { padding: 16px; border-radius: 18px; border-left-width: 4px; }
  .service h3 { font-size: 1rem; }
  .service p { font-size: .88rem; line-height: 1.45; }
  #diagnostica .actions { display: grid; grid-template-columns: 1fr 1fr; }
  h3.sub { margin-top: 32px; font-size: 1.15rem; }
  .steps, .steps.five { grid-template-columns: 1fr 1fr; gap: 10px; }
  .contacts { grid-template-columns: 1fr; gap: 10px; margin-top: 20px; }
  #in-visita .grid, #visiting .grid, #esotici .grid, #exotics .grid, #vacanza .grid, #holiday .grid, #selvatici .services, #wildlife .services { grid-template-columns: 1fr; }
  .contact { padding: 16px 18px; }
  .steps li { padding: 16px; border-radius: 18px; }
  .steps li::before { width: 30px; height: 30px; margin-bottom: 8px; }
  .steps strong { font-size: 1rem; }
  .steps span { font-size: .88rem; line-height: 1.45; display: block; }
  .travel-grid { grid-template-columns: 1fr; gap: 10px; margin-top: 24px; }
  .travel-box { padding: 18px; border-radius: 18px; }
  .ticks { grid-template-columns: 1fr; }
  #viaggi .actions { display: grid; grid-template-columns: 1fr; }
  .asl { padding: 16px 18px; }
  .asl .btn { width: 100%; }
  .faq details { padding: 0 18px; }
  .faq summary { padding: 16px 28px 16px 0; }
  .score strong { font-size: 3.2rem; }
  .logo { width: 150px; }

  .actionbar {
    display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
  }
  .actionbar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    min-height: 56px; border-radius: 16px; text-decoration: none;
    font-weight: 600; font-size: .8rem; color: var(--accent-ink); background: var(--accent-soft);
  }
  .actionbar a.main { background: var(--accent); color: var(--on-accent); }
  .actionbar svg { width: 22px; height: 22px; fill: currentColor; }
}

@media (max-width: 360px) {
  .grid, .facts, .services { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}

a[href^="tel"], .nowrap { white-space: nowrap; }

@media (min-width: 761px) and (max-width: 980px) {
  .steps, .steps.five { grid-template-columns: 1fr 1fr; }
  .travel-grid { grid-template-columns: 1fr; }
  .contacts { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr 1fr; }
}

/* Contenitore nascosto delle icone */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Copyright */
.copy { margin-top: 1.2em; padding-top: 1em; border-top: 1px solid var(--line); font-size: .85rem; }
