/*=================================================
  House of Dogs — Redesign
  Main: #6A6A4E (sage). Teal retired 2026-10-26 — the --teal* tokens are legacy names that now hold sage shades
  Direction: Warm & Playful
=================================================*/

@import url('../fonts/fonts.css');

:root {
  --main: #6A6A4E;
  --main-20: rgba(106,106,78,0.20);
  --main-10: rgba(106,106,78,0.10);
  --teal: #6A6A4E;
  --teal-dark: #575740;
  --teal-glow: rgba(106,106,78,0.25);
  --teal-wash: #ECECE8;
  --cream: #FBF8F3;
  --sand: #F0EBE1;
  --dark: #1E1D1A;
  --dark-warm: #2C2A25;
  --text: #3A3733;
  --text-mid: #6B665D;
  --text-light: #9E9889;
  --white: #FFFFFF;
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 32px;
  --r-xl: 48px;
  --font-h: 'Instrument Serif', serif;
  --font-b: 'DM Sans', sans-serif;
  --ease: cubic-bezier(.4,0,.2,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: hidden; scroll-behavior: smooth; }
body {
  font-family: var(--font-b);
  font-size: 16px;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--teal); color: var(--white); }
ol, ul { list-style: none; }
a { text-decoration: none; color: inherit; transition: all .3s var(--ease); }
img { max-width: 100%; display: block; }

h1, h2, h3, h4, h5 { font-family: var(--font-h); line-height: 1.15; color: var(--dark-warm); }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h2 em, h1 em { font-style: italic; color: var(--teal); }
p { margin-bottom: 1rem; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--main); border-radius: 3px; }

/* ===== SKIP LINK ===== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 9999;
  background: var(--teal);
  color: var(--white);
  padding: .5rem 1rem;
  font-family: var(--font-b);
  font-size: .9rem;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ===== ANIMATIONS ===== */
@media (prefers-reduced-motion: no-preference) {
  .anim-fade {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
  }
  .anim-fade.visible {
    opacity: 1;
    transform: translateY(0);
  }
  @keyframes price-bounce {
    0% { transform: scale(1); }
    40% { transform: scale(1.2); }
    100% { transform: scale(1); }
  }
  .price-pop { animation: price-bounce .3s var(--ease-spring); }
  @keyframes bobble {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
  }
  @keyframes blobFloat {
    0% { border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%; }
    100% { border-radius: 40% 60% 50% 50% / 60% 40% 50% 60%; }
  }
  @keyframes navSlide {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .anim-fade { opacity: 1; transform: none; }
}

/* ===== SHARED UI ===== */
.label-pill {
  display: inline-block;
  font-family: var(--font-b);
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--teal);
  background: rgba(106,106,78,.12);
  padding: .4rem 1.1rem;
  border-radius: 100px;
  margin-bottom: 1.2rem;
}

.section-intro {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 3.5rem;
}
.section-desc {
  color: var(--text-mid);
  font-size: 1.05rem;
  margin-top: .8rem;
}

.btn-primary-hod {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-b);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--white);
  background: var(--teal);
  padding: .9rem 2rem;
  border-radius: 100px;
  border: 2px solid var(--teal);
  cursor: pointer;
  transition: all .35s var(--ease);
  box-shadow: 0 4px 16px var(--teal-glow);
}
.btn-primary-hod:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--teal-glow);
  color: var(--white);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-b);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--dark-warm);
  background: transparent;
  padding: .9rem 2rem;
  border-radius: 100px;
  border: 2px solid var(--main);
  cursor: pointer;
  transition: all .35s var(--ease);
}
.btn-ghost:hover {
  background: var(--main);
  color: var(--white);
  transform: translateY(-2px);
}

/* ===== FORMS ===== */
.hod-form input,
.hod-form textarea {
  width: 100%;
  font-family: var(--font-b);
  font-size: .82rem;
  color: var(--text);
  background: var(--white);
  border: 2px solid var(--sand);
  border-radius: var(--r-sm);
  padding: .6rem .9rem;
  margin-bottom: .65rem;
  transition: border-color .3s;
  outline: none;
}
.hod-form input:focus,
.hod-form textarea:focus {
  border-color: var(--teal);
}
.hod-form textarea {
  min-height: 130px;
  resize: vertical;
}
/* Date inputs — iOS/mobile fixes */
.hod-form input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
  min-height: 2.6rem;
  line-height: 1.4;
  color: var(--text);
}
.hod-form input[type="date"]:invalid,
.hod-form input[type="date"][value=""] {
  color: var(--text-mid);
}
#dateFieldsWrap .row {
  --bs-gutter-x: .65rem;
}
@media (max-width: 575px) {
  .hod-form input[type="date"] {
    font-size: 16px; /* prevents iOS zoom on focus */
    padding: .55rem .7rem;
  }
}
.hod-form .btn-primary-hod {
  width: 100%;
  justify-content: center;
  padding: 1rem;
  font-size: 1rem;
  margin-top: .5rem;
}
.hod-form label {
  display: block;
  font-family: var(--font-b);
  font-size: .72rem;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: .25rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ===== CONFIGURATOR FORM ===== */
.form-section {
  border-bottom: 1px solid var(--sand);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}
.form-section:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.form-section-label {
  font-family: var(--font-b);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--teal);
  margin-bottom: .8rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

/* ----- Consenso privacy ----- */
.form-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .1rem .75rem;
  align-items: start;
  margin: 1.4rem 0 .2rem;
  padding: .95rem 1.1rem;
  background: var(--cream);
  border: 1px solid var(--sand);
  border-radius: var(--r-sm);
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.form-consent input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  background: var(--white);
  border: 2px solid var(--main);
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  transition: all .25s var(--ease);
}
.form-consent input[type="checkbox"]:hover { border-color: var(--teal); }
.form-consent input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
.form-consent input[type="checkbox"]:checked {
  background: var(--teal);
  border-color: var(--teal);
}
.form-consent input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border-right: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(45deg);
}
.form-consent label {
  font-size: .84rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-mid);
  cursor: pointer;
  margin: 0;
  text-transform: none;
  letter-spacing: 0;
}
.form-consent label a {
  color: var(--teal);
  font-weight: 600;
  border-bottom: 1px solid var(--teal);
}
.form-consent label a:hover { color: var(--teal-dark); border-bottom-color: var(--teal-dark); }
.consent-req { color: var(--teal); font-weight: 700; }

.consent-error {
  grid-column: 2;
  display: none;
  margin: .35rem 0 0;
  font-size: .78rem;
  font-weight: 600;
  color: #C0392B;
}
.was-validated .form-consent:has(input:invalid) {
  border-color: #C0392B;
  background: rgba(192,57,43,.04);
}
.was-validated .form-consent input:invalid { border-color: #C0392B; }
.was-validated .form-consent:has(input:invalid) .consent-error { display: block; }
/* fallback for browsers without :has() */
.was-validated .form-consent.consent-invalid {
  border-color: #C0392B;
  background: rgba(192,57,43,.04);
}
.was-validated .form-consent.consent-invalid input { border-color: #C0392B; }
.was-validated .form-consent.consent-invalid .consent-error { display: block; }

.toggle-group {
  display: flex;
  gap: .4rem;
  margin-bottom: .65rem;
}
.toggle-btn {
  flex: 1;
  background: var(--white);
  border: 2px solid var(--sand);
  border-radius: var(--r-sm);
  padding: .45rem .6rem;
  text-align: center;
  color: var(--text-mid);
  font-family: var(--font-b);
  font-size: .78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .3s var(--ease);
}
.toggle-btn:hover { border-color: var(--main); color: var(--text); }
.toggle-btn.active {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(106,106,78,.2);
}
.toggle-group.toggle-error .toggle-btn {
  border-color: #dc3545;
  animation: headShake .4s ease;
}
@keyframes headShake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.service-toggle-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
  margin-bottom: .75rem;
}
.service-toggle-btn {
  background: var(--white);
  border: 2px solid var(--sand);
  border-radius: var(--r-md, 12px);
  padding: .8rem .6rem;
  text-align: center;
  color: var(--text-mid);
  cursor: pointer;
  transition: all .3s var(--ease);
}
.service-toggle-btn i { font-size: 1.15rem; display: block; margin-bottom: .2rem; }
.service-toggle-btn strong { display: block; font-size: .78rem; margin-bottom: .1rem; color: var(--text); }
.service-toggle-btn span { font-size: .65rem; opacity: .65; }
.service-toggle-btn:hover { border-color: var(--main); }
.service-toggle-btn.active {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(106,106,78,.25);
  transform: translateY(-2px);
}
.service-toggle-btn.active strong,
.service-toggle-btn.active span { color: var(--white); }
.service-toggle-btn.disabled {
  opacity: .35;
  cursor: not-allowed;
  pointer-events: none;
}
.service-error .service-toggle-btn { border-color: #dc3545; }

.service-hint {
  font-size: .8rem;
  color: #dc3545;
  margin-bottom: .75rem;
}

.taxi-address-wrap {
  margin-top: .25rem;
  animation: fadeSlide .3s var(--ease);
}
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-submit-row { text-align: center; margin-top: 1rem; }
.submit-note {
  font-size: .78rem;
  color: var(--text-light, #999);
  margin-top: .6rem;
}

.btn-whatsapp-fallback {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #25D366;
  color: #fff;
  font-family: var(--font-b, 'DM Sans', sans-serif);
  font-size: .9rem;
  font-weight: 600;
  padding: .8rem 1.5rem;
  border-radius: 10px;
  text-decoration: none;
  margin-top: 1rem;
  transition: all .2s ease;
}
.btn-whatsapp-fallback:hover {
  background: #1da851;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37,211,102,.3);
}

@media (max-width: 767px) {
  .service-toggle-group { grid-template-columns: 1fr; }
}

/* ===== NAVBAR ===== */
.navbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 0;
  background: transparent;
  transition: all .4s var(--ease);
}
.fixedmenu {
  position: fixed !important;
  background: rgba(251,248,243,.92) !important;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 1px 30px rgba(0,0,0,.06);
  padding: .6rem 0;
  animation: navSlide .4s var(--ease);
}
/* Subpages: the bar sits over a dark header photo — give it the same frosted cream as the scrolled bar */
.navbar.transparent-bg {
  background: rgba(251,248,243,.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 1px 30px rgba(0,0,0,.06);
}
.navbar-brand { width: 60px; transition: width .3s var(--ease); }
.fixedmenu .navbar-brand { width: 44px; }
.navbar-brand img { width: 100%; }

.navbar-nav .nav-link {
  font-family: var(--font-b);
  font-size: .85rem;
  font-weight: 500;
  color: var(--dark-warm);
  padding: .5rem .9rem !important;
  letter-spacing: .02em;
  transition: color .3s;
}
.navbar-nav .nav-link:hover { color: var(--teal) !important; }
.nav-icon { font-size: 1.1rem !important; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-b);
  font-size: .82rem;
  font-weight: 600;
  color: var(--white) !important;
  background: var(--teal);
  padding: .55rem 1.3rem;
  border-radius: 100px;
  transition: all .3s var(--ease);
}
.nav-cta:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
  color: var(--white) !important;
}

.navbar-toggler {
  border: none; padding: 6px; width: 32px;
}
.navbar-toggler > span {
  display: block; height: 2px; background: var(--dark-warm); border-radius: 2px;
}
.navbar-toggler > span + span { margin-top: 5px; }
.navbar-toggler > span:nth-child(2) { width: 70%; margin-left: auto; transition: .3s; }
.navbar-toggler > span:nth-child(3) { width: 40%; margin-left: auto; transition: .5s; }
.navbar-toggler:hover > span:nth-child(2),
.navbar-toggler:hover > span:nth-child(3) { width: 100%; }
.navbar-toggler:focus { box-shadow: none; }

@media (max-width: 767px) {
  #navbarTop {
    background: rgba(251,248,243,.97);
    backdrop-filter: blur(16px);
    margin-top: .5rem;
    border-radius: var(--r-md);
    padding: 1rem;
  }
}

/* ===== HERO (Light) ===== */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(170deg, var(--cream) 0%, var(--teal-wash) 50%, var(--cream) 100%);
}
.hero-content { position: relative; z-index: 2; }
/* New-location announcement pill (Oct 2026) — temporary, delete with its markup in index.php */
.news-pill {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .82rem;
  font-weight: 500;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--main-20);
  border-radius: 100px;
  padding: .3rem 1rem .3rem .3rem;
  margin-bottom: 1.4rem;
  box-shadow: 0 4px 14px var(--main-10);
  transition: all .3s var(--ease);
}
.news-pill strong {
  background: var(--main);
  color: var(--white);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .3rem .7rem;
  border-radius: 100px;
}
.news-pill i { transition: transform .3s var(--ease); }
.news-pill:hover { color: var(--text); border-color: var(--main); transform: translateY(-1px); }
.news-pill:hover i { transform: translateX(3px); }

.hero-eyebrow {
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--teal);
  margin-bottom: 1.5rem;
}
.hero-title {
  color: var(--dark-warm);
  margin-bottom: 1.2rem;
}
.accent-underline {
  position: relative;
  white-space: nowrap;
}
.accent-underline::after {
  content: '';
  position: absolute;
  left: 0; bottom: .08em;
  width: 100%; height: .12em;
  background: var(--teal);
  border-radius: 4px;
  opacity: .6;
}
.hero-desc {
  color: var(--text-mid);
  font-size: 1.1rem;
  max-width: 460px;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-image-blob {
  position: relative;
}
.hero-image-blob img {
  width: 100%;
  height: clamp(380px, 46vw, 560px);
  object-fit: cover;
  object-position: center 20%; /* the wall logo takes priority, then as much dog as fits */
  border-radius: 28px 28px 160px 28px;
  box-shadow: 0 20px 60px rgba(106,106,78,.15);
}
.hero-blob-bg {
  position: absolute;
  inset: -14px 18px -18px -18px;
  background: var(--teal);
  opacity: .07;
  border-radius: 34px 34px 175px 34px;
  transform: rotate(-3deg);
  z-index: -1;
  animation: blobFloat 10s ease-in-out infinite alternate;
}

.scroll-hint {
  position: absolute;
  bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: var(--text-light);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: .3rem;
}
.scroll-hint i { font-size: 1rem; animation: bobble 2s infinite; }

@media (max-width: 991px) {
  #hero { min-height: auto; padding: 7rem 0 3rem; }
  #hero .row { min-height: auto !important; }
  .hero-image-blob { margin-top: 2.5rem; max-width: 360px; margin-left: auto; margin-right: auto; }
  .hero-image-blob img {
    height: auto; width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 20px 20px 100px 20px;
  }
  .hero-blob-bg { inset: -10px 12px -12px -12px; border-radius: 26px 26px 115px 26px; }
  .scroll-hint { display: none; }
}
@media (max-width: 575px) {
  .hero-image-blob { max-width: 280px; }
}

/* ===== SERVIZI ===== */
#servizi {
  padding: 7rem 0;
  background: var(--white);
}
.services-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.svc-card {
  background: var(--cream);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all .4s var(--ease);
  display: block;
  color: inherit;
  border-left: 4px solid transparent;
}
.svc-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 64px rgba(0,0,0,.12);
  color: inherit;
  border-left-color: var(--teal);
}
.svc-card-visual {
  position: relative;
  height: 260px;
  overflow: hidden;
}
.svc-card-visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.svc-card:hover .svc-card-visual img { transform: scale(1.06); }
.svc-card-number {
  position: absolute;
  top: 1rem; right: 1rem;
  font-family: var(--font-h);
  font-size: 3rem;
  color: var(--white);
  opacity: .3;
  line-height: 1;
}
.svc-card-info { padding: 2rem 1.8rem 2.2rem; }
.svc-card-info h3 { margin-bottom: .6rem; }
.svc-card-info p {
  color: var(--text-mid);
  font-size: .95rem;
  margin-bottom: 1.2rem;
  line-height: 1.6;
}
.svc-link {
  font-size: .88rem;
  font-weight: 600;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  transition: gap .3s var(--ease);
}
.svc-card:hover .svc-link { gap: .8rem; }
.svc-cta {
  display: inline-block;
  margin-left: .8rem;
  font-size: .75rem;
  font-weight: 600;
  color: var(--white);
  background: var(--teal);
  padding: .3rem .7rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all .2s ease;
  vertical-align: middle;
}
.svc-cta:hover { background: #575740; transform: translateY(-1px); }

@media (max-width: 991px) {
  .services-row { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  #servizi { padding: 4rem 0; }
}

/* ===== TRUST STRIP ===== */
#trust {
  background: var(--white);
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--sand);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.trust-item { display: flex; align-items: center; gap: 1rem; }
.trust-item i {
  font-size: 1.6rem;
  color: var(--teal);
  flex-shrink: 0;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(106,106,78,.1);
  border-radius: var(--r-sm);
}
.trust-item strong { display: block; font-size: .9rem; color: var(--dark-warm); }
.trust-item span { display: block; font-size: .8rem; color: var(--text-mid); }

@media (max-width: 991px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .trust-grid { grid-template-columns: 1fr; gap: 1rem; } }

/* ===== CHI SIAMO ===== */
#chi_siamo {
  padding: 7rem 0;
  background: var(--cream);
  overflow: hidden;
}
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-image { position: relative; }
.about-image-frame {
  border-radius: var(--r-xl);
  overflow: hidden;
  position: relative;
  z-index: 2;
  box-shadow: 0 20px 60px rgba(0,0,0,.1);
}
.about-image-frame img {
  width: 100%; height: 500px;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.about-image-frame:hover img { transform: scale(1.04); }
.about-blob {
  position: absolute;
  width: 120%; height: 120%;
  top: -10%; left: -10%;
  background: var(--teal);
  opacity: .08;
  border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%;
  z-index: 1;
  animation: blobFloat 8s ease-in-out infinite alternate;
}
.about-text h2 { margin-bottom: 1.5rem; }
.about-text .lead-text {
  font-size: 1.1rem;
  color: var(--text);
  font-weight: 400;
  line-height: 1.8;
}
.about-text p { color: var(--text-mid); line-height: 1.8; }
.about-text .btn-primary-hod { margin-top: 1rem; }

@media (max-width: 991px) {
  .about-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-image-frame img { height: 350px; }
  .about-blob { display: none; }
  #chi_siamo { padding: 4rem 0; }
}

/* ===== AGGIORNAMENTI ===== */
#aggiornamenti {
  padding: 6rem 0;
  background: var(--white);
}
.updates-layout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4rem;
  align-items: center;
}
.updates-phone {
  justify-self: center;
}
.updates-phone img {
  width: 280px;
  border-radius: var(--r-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,.1);
}
.updates-text .label-pill { margin-bottom: 1rem; }
.updates-text h2 { margin-bottom: 1.2rem; }
.updates-text p {
  color: var(--text-mid);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 500px;
  margin-bottom: 1rem;
}
.updates-text p strong { color: var(--text); }
.updates-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
@media (max-width: 991px) {
  .updates-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  .updates-phone img { width: 220px; }
  .updates-text p { max-width: none; }
  .updates-actions { justify-content: center; }
}
@media (max-width: 575px) {
  #aggiornamenti { padding: 3rem 0; }
  .updates-phone img { width: 180px; }
}

/* ===== TARIFFE ===== */
#tariffe {
  padding: 7rem 0 5rem;
  background: var(--sand);
}

.size-toggle, .sede-toggle {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}
.size-btn, .sede-btn {
  background: var(--white);
  border: 2px solid var(--main-20);
  border-radius: var(--r-md);
  padding: 1.2rem 1.5rem;
  text-align: center;
  color: var(--text-mid);
  cursor: pointer;
  transition: all .35s var(--ease);
  min-width: 140px;
}
.size-btn:hover, .sede-btn:hover {
  border-color: var(--main);
  color: var(--text);
}
.size-btn.active, .sede-btn.active {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
  box-shadow: 0 8px 32px var(--teal-glow);
  transform: translateY(-3px);
}
.dog-icon { width: 48px; height: 48px; margin: 0 auto .6rem; display: block; }
.size-btn strong, .sede-btn strong { display: block; font-size: 1rem; margin-bottom: .1rem; }
.size-btn span, .sede-btn span { font-size: .75rem; opacity: .7; }

.price-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.price-card {
  background: var(--white);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.05);
  border-top: 4px solid var(--teal);
  transition: box-shadow .3s, transform .3s;
}
.price-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.1);
  transform: translateY(-4px);
}
.price-card-header {
  padding: 1.8rem 1.5rem 1.2rem;
  text-align: center;
}
.price-card-header i {
  font-size: 1.8rem;
  color: var(--teal);
  margin-bottom: .6rem;
  display: block;
}
.price-card-header h3 {
  color: var(--dark-warm);
  font-size: 1.4rem;
  margin-bottom: .3rem;
}
.price-note {
  font-size: .78rem;
  color: var(--text-mid);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.price-card-body { padding: 0 1.5rem 1.8rem; }
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: .6rem 0;
}
.price-row.sub { padding: .4rem 0 .4rem .6rem; }
.price-label { color: var(--text); font-size: .9rem; }
.price-label small { color: var(--text-mid); font-size: .78rem; }
.price-value, .price-value-static {
  font-family: var(--font-h);
  font-size: 1.3rem;
  color: var(--dark-warm);
  font-weight: 700;
  transition: transform .3s var(--ease-spring);
}
.price-sub-title {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--teal);
  margin-bottom: .3rem;
  margin-top: .3rem;
}
.price-divider { height: 1px; background: var(--main-20); margin: .8rem 0; }
.price-details p { color: var(--text-mid); font-size: .88rem; margin-bottom: .5rem; }
.small-note { color: var(--text-light) !important; font-size: .82rem !important; line-height: 1.5; }

.tariffe-footer { text-align: center; padding-top: 1rem; }
.tariffe-disclaimer {
  color: var(--text-light);
  font-size: .85rem;
  font-style: italic;
  margin-bottom: 1.5rem;
}
.tariffe-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

@media (max-width: 991px) {
  .price-cards { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto 1.5rem; }
  .size-btn, .sede-btn { min-width: 110px; padding: 1rem; }
  #tariffe { padding: 4rem 0 3rem; }
}
@media (max-width: 767px) {
  #tariffe { padding: 2.5rem 0 2rem; }
  #tariffe .section-intro { margin-bottom: 1.2rem; }
  #tariffe .section-intro h2 { font-size: 1.5rem; }
  #tariffe .label-pill { margin-bottom: .5rem; }

  .size-toggle, .sede-toggle { gap: .5rem; margin-bottom: 1.2rem; }
  .size-btn, .sede-btn { min-width: 0; flex: 1; padding: .6rem .4rem; border-radius: var(--r-sm); }
  .dog-icon { width: 28px; height: 28px; margin-bottom: .2rem; }
  .size-btn strong, .sede-btn strong { font-size: .82rem; margin-bottom: 0; }
  .size-btn span, .sede-btn span { font-size: .65rem; }
  .size-btn.active, .sede-btn.active { transform: translateY(-1px); }

  .price-cards { gap: .8rem; margin: 0 auto 1rem; }
  .price-card-header { padding: 1rem 1rem .6rem; }
  .price-card-header i { font-size: 1.2rem; margin-bottom: .3rem; }
  .price-card-header h3 { font-size: 1.1rem; margin-bottom: .15rem; }
  .price-note { font-size: .7rem; }
  .price-card-body { padding: 0 1rem 1rem; }
  .price-row { padding: .35rem 0; }
  .price-row.sub { padding: .25rem 0 .25rem .5rem; }
  .price-label { font-size: .82rem; }
  .price-label small { font-size: .72rem; }
  .price-value, .price-value-static { font-size: 1.1rem; }
  .price-sub-title { font-size: .7rem; margin-bottom: .15rem; margin-top: .15rem; }
  .price-divider { margin: .4rem 0; }
  .price-details p { font-size: .78rem; margin-bottom: .3rem; }
  .small-note { font-size: .74rem !important; }

  .tariffe-footer { padding-top: .5rem; }
  .tariffe-disclaimer { margin-bottom: .8rem; font-size: .78rem; }
  .tariffe-actions { gap: .6rem; }
}

/* ===== RECENSIONI ===== */
#recensioni {
  padding: 5rem 0;
  background: var(--teal-wash);
}
.reviews-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-top: .8rem;
  color: var(--text-mid);
  font-size: .85rem;
}
.reviews-google svg { width: 20px; height: 20px; }
.reviews-rating { font-family: var(--font-h); font-size: 1.5rem; font-weight: 700; color: var(--dark-warm); line-height: 1; }
.reviews-stars { color: #F5A623; font-size: 1.1rem; letter-spacing: 1px; }

.reviews-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1rem 0 2rem;
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}
.reviews-track::-webkit-scrollbar { display: none; }

.review-card {
  flex: 0 0 320px;
  background: var(--white);
  border-radius: var(--r-md);
  padding: 1.8rem;
  scroll-snap-align: start;
  min-height: 180px;
  box-shadow: 0 4px 16px rgba(0,0,0,.05);
}
.review-stars { color: #F5A623; font-size: 1rem; margin-bottom: .8rem; letter-spacing: 2px; }
.review-text {
  font-style: italic;
  color: var(--text);
  font-size: .95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.review-author { font-size: .8rem; color: var(--text-mid); }
.review-author strong { color: var(--dark-warm); font-weight: 600; }

/* ===== LOCATION ===== */
#location {
  padding: 7rem 0;
  background: var(--cream);
}
.location-collage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 1rem;
}
.loc-img {
  border-radius: var(--r-md);
  overflow: hidden;
}
.loc-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.loc-img:hover img { transform: scale(1.06); }
.loc-img--tall { grid-row: span 2; }
.location-collage[hidden] { display: none; }

@media (max-width: 767px) {
  #location { padding: 4rem 0; }
  .location-collage { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .loc-img--tall { grid-row: span 1; }
}
@media (max-width: 480px) {
  .location-collage { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: .6rem; }
}

/* ===== FAQ ===== */
#faq {
  padding: 7rem 0;
  background: var(--sand);
}
.faq-layout {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 4rem;
  align-items: start;
}
.faq-aside { position: sticky; top: 7rem; }
.faq-aside h2 { margin-bottom: .4rem; }
.faq-aside .section-desc { margin-bottom: 1.8rem; }

.faq-item {
  background: var(--white);
  border: 1px solid rgba(106,106,78,.16);
  border-radius: var(--r-md);
  margin-bottom: .75rem;
  overflow: hidden;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.faq-item:hover { border-color: var(--teal); }
.faq-item[open] {
  border-color: var(--teal);
  box-shadow: 0 6px 26px rgba(106,106,78,.13);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.5rem;
  font-family: var(--font-b);
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark-warm);
  transition: color .3s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--teal); }
.faq-item summary:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: -2px;
  border-radius: var(--r-md);
}
.faq-item summary::after {
  content: '';
  flex: none;
  margin-left: auto;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .35s var(--ease);
}
.faq-item[open] summary { color: var(--teal); }
.faq-item[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }

.faq-answer {
  padding: 0 1.5rem 1.35rem;
  color: var(--text-mid);
  font-size: .95rem;
  line-height: 1.75;
  animation: faqReveal .35s var(--ease);
}
.faq-answer p { margin-bottom: 0; }
.faq-answer a { color: var(--teal); font-weight: 600; border-bottom: 1px solid transparent; }
.faq-answer a:hover { border-bottom-color: var(--teal); }
.faq-answer strong { color: var(--text); }

@keyframes faqReveal {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .faq-answer { animation: none; }
  .faq-item summary::after { transition: none; }
}

@media (max-width: 991px) {
  #faq { padding: 5rem 0; }
  .faq-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .faq-aside { position: static; text-align: center; }
  .faq-aside .section-desc { max-width: 46ch; margin-left: auto; margin-right: auto; }
}
@media (max-width: 575px) {
  #faq { padding: 4rem 0; }
  .faq-item summary { padding: 1rem 1.15rem; font-size: .94rem; }
  .faq-answer { padding: 0 1.15rem 1.15rem; font-size: .9rem; }
}

/* ===== CONTATTI ===== */
#contatti { background: var(--white); overflow: hidden; }
.contatti-map { min-height: 500px; position: relative; }
.contatti-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-address {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(30,29,26,.85));
  color: var(--white);
  padding: 3rem 1.5rem 1.2rem;
  font-size: .95rem;
  font-weight: 500;
}
.contatti-form-wrap { background: var(--cream); }
.contatti-form-inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 2.5rem 2.5rem;
}
.contatti-form-inner h2 { margin-bottom: .5rem; }
.contatti-alt {
  margin-top: 2rem;
  display: flex; gap: 2rem; flex-wrap: wrap;
}
.contatti-alt a {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--text-mid); font-size: .9rem; font-weight: 500;
}
.contatti-alt a:hover { color: var(--teal); }

@media (max-width: 991px) {
  .contatti-form-inner { padding: 3rem 1.5rem; }
}

/* ===== FOOTER ===== */
footer {
  background: var(--dark) !important;
  color: rgba(255,255,255,.6);
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding: 4rem 0 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-logo { width: 60px; margin-bottom: 1rem; filter: brightness(10); }
.footer-brand p { font-size: .88rem; line-height: 1.7; color: rgba(255,255,255,.45); }
.footer-links h4 {
  font-family: var(--font-b);
  font-size: .8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em;
  color: rgba(255,255,255,.3); margin-bottom: 1rem;
}
.footer-links a {
  display: block; color: rgba(255,255,255,.55);
  font-size: .9rem; padding: .3rem 0; transition: color .3s;
}
.footer-links a:hover { color: var(--teal); }
.footer-bottom { padding: 1.5rem 0; text-align: center; }
.footer-bottom p { font-size: .78rem; color: rgba(255,255,255,.3); margin-bottom: .4rem; }
.footer-bottom a { color: rgba(255,255,255,.35); }
.footer-bottom a:hover { color: var(--teal); }

@media (max-width: 767px) {
  .footer-top { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 0 2rem; }
}

/* ========================================
   INTERNAL PAGES (keep existing subpages working)
======================================== */
.highlights { color: var(--teal) !important; }
.title_section { font-weight: 800; text-transform: uppercase; color: var(--white); }
.title_paragraph { font-weight: 700; font-size: 2rem; }
.no-padding { padding: 0 !important; }
p.p-small, p.small { font-size: .85rem !important; }

#hero_intern { height: 40vh; min-height: 280px; position: relative; margin-top: 102px; } /* start below the opaque subpage navbar (102px tall) */
.hero_intern_img { position: absolute; width: 100%; height: 100%; z-index: -2; }
.chi_siamo .hero_intern_img { background: var(--dark-warm); }
.asilo .hero_intern_img { background: url(../img/asilo/IMG_6764.webp) center 62% / cover no-repeat; }
.pensione .hero_intern_img { background: url(../img/pensione/IMG_6768.webp) center 66% / cover no-repeat; }
.taxi_dog .hero_intern_img { background: url(../img/header_taxi.webp) center / cover no-repeat; }
.grazie .hero_intern_img { background: url(../img/header-thanks.webp) center / cover no-repeat; }
.regolamento .hero_intern_img { background: url(../img/header_law.webp) center / cover no-repeat; }
.intern_overlay { background: linear-gradient(180deg, rgba(30,29,26,.3), rgba(30,29,26,.6)); position: absolute; width: 100%; height: 100%; z-index: -1; }

.bullet-point { max-width: 20px; }
.fotogallery { margin-bottom: 60px; }

/* Scroll-snap gallery — pure CSS, no JS dependency */
.snap-gallery {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-padding: 0 16px;
  padding: 0 16px;
  scrollbar-width: none;       /* Firefox */
}
.snap-gallery::-webkit-scrollbar { display: none; }  /* Chrome/Safari */
.snap-gallery img {
  flex: 0 0 auto;
  width: 42vw;
  height: 50vh;
  object-fit: cover;
  border-radius: var(--r-sm);
  scroll-snap-align: start;
}
@media (max-width: 991px) {
  .snap-gallery img { width: 70vw; height: 45vh; }
}
@media (max-width: 575px) {
  .snap-gallery { gap: 10px; padding: 0 12px; scroll-padding: 0 12px; }
  .snap-gallery img { width: 85vw; height: 40vh; }
}

.button {
  display: inline-block;
  font-family: var(--font-b);
  font-size: .9rem;
  padding: .85rem 2.2rem;
  text-transform: uppercase;
  text-align: center;
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: 100px;
  transition: all .35s var(--ease);
  cursor: pointer;
}
.btn-first {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 4px 16px var(--teal-glow);
}
.navbar-nav .nav-link.btn-first { color: var(--white) !important; } /* subpage nav phone button: beat the nav-link colour */
.btn-first:hover {
  background: var(--teal-dark);
  color: var(--white) !important;
  transform: translateY(-2px);
}
.btn-first-text { color: var(--teal); font-weight: 600; }

p.autorizzazione-txt { font-size: 1.05rem; }
.dog { position: absolute; right: 20px; top: -85px; width: 160px; opacity: .8; }
.fix_button_law { position: fixed; bottom: 10px; right: 10px; }

/* ===== GOOGLE MAPS — caricata solo dopo il consenso (click-to-load) ===== */
.map-placeholder {
  min-height: 500px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  text-align: center;
  padding: 3rem 2rem 5.5rem;
  background-color: var(--teal-wash);
  background-image: radial-gradient(rgba(106,106,78,.22) 1.2px, transparent 1.2px);
  background-size: 18px 18px;
  color: var(--text-mid);
}
.map-placeholder-icon { font-size: 2.6rem; color: var(--teal); line-height: 1; }
.map-placeholder-title { font-family: var(--font-h); font-size: 1.6rem; color: var(--dark-warm); margin: 0; }
.map-placeholder-text { font-size: .9rem; max-width: 32ch; margin: 0 0 .5rem; }
.map-placeholder-link { font-size: .85rem; color: var(--teal-dark); text-decoration: underline; text-underline-offset: 2px; }
.map-placeholder-link:hover { color: var(--teal); }
.map-placeholder-text .map-placeholder-link { white-space: nowrap; }
