/* BandaBau centro cinofilo — foglio di stile
   Palette dal loro marchio: carbone, lime acido, viola. Motivo: i cartelli numerati di un percorso di Rally Obedience. */
:root {
  --coal: #161616;
  --coal-2: #232323;
  --lime: #b3ff00;
  --lime-2: #d9ff80;
  --violet: #6b38b4;
  --violet-d: #55299a;
  --paper: #f5f4ee;
  --paper-2: #eae8df;
  --white: #fffefa;
  --ink: #1b1b1a;
  --ink-2: #4a4a46;
  --line: #d4d1c5;
  --disp: 'Bitter', Georgia, serif;
  --body: 'Atkinson Hyperlegible', system-ui, sans-serif;
  --wrap: 1180px;
  --head-h: 74px;
  --gut: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--head-h) + 10px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17.5px; line-height: 1.62; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet-d); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3 { margin: 0; font-family: var(--disp); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--lime); color: var(--coal); padding: 10px 14px; z-index: 100; font-weight: 700; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.preview-strip { min-height: 28px; display: flex; align-items: center; justify-content: center; background: var(--lime); color: var(--coal); font-size: 12px; font-weight: 700; letter-spacing: .03em; padding: 4px 12px; text-align: center; line-height: 1.3; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--coal); transition: box-shadow .3s; }
.site-header.is-compact { box-shadow: 0 10px 24px -18px rgba(0, 0, 0, .9); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--head-h); transition: height .3s; }
.site-header.is-compact .header-inner { height: 60px; }
.brand img { height: 56px; width: auto; transition: height .3s; }
.site-header.is-compact .brand img { height: 46px; }
.nav ul { display: flex; align-items: center; gap: 2px; }
.nav a { display: block; padding: 8px 13px; color: #f1f0ea; text-decoration: none; font-weight: 700; font-size: 16px; border-radius: 999px; transition: background .2s, color .2s; }
.nav a:hover, .nav a:focus-visible { background: var(--coal-2); color: var(--lime); }
.nav-cta a { background: var(--lime); color: var(--coal); margin-left: 10px; padding: 9px 18px; }
.nav-cta a:hover { background: #fff; color: var(--coal); }
.menu-toggle { display: none; }

/* comuni */
.eyebrow { font-family: var(--body); font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--violet-d); margin: 0 0 14px; }
.eyebrow-dark { color: var(--lime); }
h2 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.04; font-weight: 800; letter-spacing: -.015em; margin-bottom: 20px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 24px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .2s, background .2s, color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-lime { background: var(--lime); color: var(--coal); }
.btn-lime:hover { background: #fff; color: var(--coal); }
.btn-ghost { border-color: #5a5a55; color: #f1f0ea; }
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); }
.btn-dark { background: var(--coal); color: #fff; }
.btn-dark:hover { background: var(--violet-d); color: #fff; }
.btn-line { border-color: var(--coal); color: var(--coal); background: transparent; }
.btn-line:hover { background: var(--coal); color: #fff; }

.js .rv { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; transition-delay: calc(var(--d, 0) * 90ms); }
.js .rv.in { opacity: 1; transform: none; }

/* hero */
.hero { background: var(--coal); color: #f1f0ea; padding: 56px 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; padding-bottom: 64px; }
h1 { font-size: clamp(48px, 6.6vw, 92px); line-height: .98; font-weight: 800; letter-spacing: -.025em; margin-bottom: 26px; }
.mark { display: inline-block; position: relative; color: var(--coal); padding: 0 .1em .06em; margin-top: .06em; background: var(--lime); z-index: 0; transform: rotate(-1.2deg); }
.mark::before { content: ""; position: absolute; inset: -.1em -.32em -.12em -.26em; background: url(img/macchia.png) center / 100% 100% no-repeat; z-index: -1; }
.hero-lead { font-size: 19px; color: #cfcdc4; max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-fig { position: relative; }
.hero-stain { position: absolute; width: 78%; left: -12%; top: -14%; opacity: .95; transform: rotate(-8deg); }
.hero-photo { position: relative; width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; object-position: 55% 50%; border-radius: 6px; }
.hero-fig figcaption { position: relative; margin-top: 12px; font-size: 14px; color: #a8a69d; }
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 0; background: var(--lime); color: var(--coal); }
.facts li { padding: 15px 26px; font-size: 16px; display: flex; align-items: baseline; gap: 7px; border-right: 2px dotted rgba(22, 22, 22, .35); }
.facts li:last-child { border-right: 0; }
.facts strong { font-family: var(--disp); font-weight: 800; font-size: 20px; }

/* percorso: linea a puntini + cartelli */
.course { position: relative; }
.course-line { display: none; }
.stn { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 78px; padding: 0 8px; height: 78px; background: var(--white); border: 3px solid var(--coal); border-radius: 8px; margin-bottom: 26px; box-shadow: 4px 4px 0 var(--coal); transition: background .4s, transform .4s; position: relative; z-index: 2; }
.stn-n { font-family: var(--disp); font-weight: 800; font-size: 30px; line-height: 1; }
.stn-t { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-top: 4px; }
.stn.is-reached { background: var(--lime); transform: rotate(-3deg); }
.stn-dark { background: var(--coal-2); color: #f1f0ea; border-color: var(--lime); box-shadow: 4px 4px 0 var(--lime); }
.stn-dark.is-reached { background: var(--lime); color: var(--coal); }

.sec { padding: 100px 0; position: relative; }
.sec-head { max-width: 780px; margin-bottom: 40px; }
.sec-lead { font-size: 19px; color: var(--ink-2); }

/* campo */
.campo-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; align-items: start; }
.campo-copy { grid-column: 1 / span 5; }
.campo-copy p { color: var(--ink-2); }
.campo-big { grid-column: 6 / span 7; grid-row: 1 / span 2; }
.campo-big img { width: 100%; border-radius: 6px; }
.campo-big figcaption { font-size: 14px; color: var(--ink-2); margin-top: 10px; }
.campo-sm img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.campo-sm.a { grid-column: 1 / span 3; margin-top: 10px; }
.campo-sm.b { grid-column: 3 / span 3; margin-top: 110px; position: relative; z-index: 1; }
.campo-sm.b img { border: 6px solid var(--paper); border-radius: 10px; }

/* educazione (tab) */
.edu { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tab-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.tab { background: transparent; border: 2px solid var(--coal); color: var(--coal); border-radius: 999px; padding: 9px 18px; font-weight: 700; font-size: 15px; cursor: pointer; transition: background .2s, color .2s; }
.tab:hover { background: var(--paper-2); }
.tab[aria-selected="true"] { background: var(--coal); color: var(--lime); }
.tab-panel { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; background: var(--paper); border-radius: 10px; padding: 34px; min-height: 360px; }
.tab-panel[hidden] { display: none; }
.tab-panel h3 { font-size: 30px; font-weight: 800; line-height: 1.1; margin-bottom: 14px; }
.tab-panel p { color: var(--ink-2); }
.tab-panel p:last-child { margin-bottom: 0; }
.tp-fig img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.tp-fig-tall img { aspect-ratio: 3 / 4; max-height: 420px; width: auto; margin-left: auto; }

/* sport */
.disc { display: flex; flex-direction: column; gap: 70px; }
.d-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center; }
.d-rev .d-fig { order: 2; }
.d-fig { position: relative; }
.d-fig img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; }
.d-row:nth-child(odd) .d-fig::after { content: ""; position: absolute; right: -14px; bottom: -14px; width: 40%; height: 40%; background: var(--lime); z-index: -1; border-radius: 6px; }
.d-row:nth-child(even) .d-fig::after { content: ""; position: absolute; left: -14px; top: -14px; width: 40%; height: 40%; background: var(--violet); z-index: -1; border-radius: 6px; }
.d-num { font-family: var(--disp); font-weight: 800; font-size: 18px; color: var(--violet-d); margin: 0 0 6px; }
.d-text h3 { font-size: clamp(30px, 3vw, 40px); font-weight: 800; line-height: 1.05; margin-bottom: 14px; letter-spacing: -.01em; }
.d-text p { color: var(--ink-2); }
.d-meta { font-size: 15px; border-top: 2px dotted var(--line); padding-top: 12px; color: var(--ink) !important; }

/* asilo */
.asilo { background: var(--coal); color: #e9e8e1; }
.asilo-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; align-items: start; }
.asilo-copy { grid-column: 1 / span 6; }
.asilo-copy p { color: #cfcdc4; max-width: 32em; }
.asilo-copy h2 { color: #fff; }
.asilo-badge span { display: inline-block; background: var(--lime); color: var(--coal); font-family: var(--disp); font-weight: 800; font-size: 20px; padding: 8px 16px; transform: rotate(-2deg); border-radius: 4px; }
.asilo-fig img { width: 100%; object-fit: cover; border-radius: 6px; }
.asilo-fig.a { grid-column: 7 / span 3; grid-row: 1 / span 2; }
.asilo-fig.a img { aspect-ratio: 3 / 4; }
.asilo-fig.b { grid-column: 10 / span 3; margin-top: 90px; }
.asilo-fig.b img { aspect-ratio: 1 / 1; }
.altri { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 60px; border-top: 2px dotted #4a4a46; }
.altri li { padding: 26px 30px 6px 0; }
.altri li + li { padding-left: 30px; border-left: 2px dotted #4a4a46; }
.altri h3 { color: var(--lime); font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.altri p { color: #cfcdc4; }
.altri a { color: #fff; }

/* staff */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 30px; }
.person img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 6px; margin-bottom: 16px; filter: saturate(1.02); }
.person:nth-child(3n+2) { margin-top: 40px; }
.person h3 { font-size: 23px; font-weight: 700; line-height: 1.15; margin-bottom: 8px; }
.person h3 small { font-family: var(--body); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: var(--violet); color: #fff; padding: 3px 8px; border-radius: 999px; vertical-align: 4px; margin-left: 4px; }
.person p { font-size: 16px; color: var(--ink-2); }

/* contatti */
.contatti { background: var(--white); border-top: 1px solid var(--line); }
.cont-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.cont-info > p { color: var(--ink-2); }
.orari { background: var(--coal); color: #f1f0ea; border-radius: 10px; padding: 22px 24px; margin: 26px 0 22px; }
.orari h3 { font-size: 24px; color: var(--lime); margin-bottom: 10px; }
.orari dl { margin: 0; }
.orari dl div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px dotted #4a4a46; flex-wrap: wrap; }
.orari dt { font-weight: 700; }
.orari dd { margin: 0; color: #cfcdc4; }
.orari-call { margin: 12px 0 0; }
.orari-call a { color: var(--lime); font-weight: 700; }
.recapiti li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.recapiti li > span:first-child { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); padding-top: 3px; }
.recapiti a { white-space: nowrap; }
.recapiti .two a { display: block; }

.form { background: var(--paper); border-radius: 12px; padding: 30px; border: 2px solid var(--coal); box-shadow: 8px 8px 0 var(--lime); }
.f-row { margin-bottom: 16px; }
.f-row > label, .f-chips legend { display: block; font-weight: 700; font-size: 15px; margin-bottom: 7px; padding: 0; }
.f-chips { border: 0; padding: 0; margin: 0 0 16px; }
.req { color: var(--violet-d); }
.f-row input[type=text], .f-row select, .f-row textarea { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 2px solid #bdbab0; border-radius: 8px; background: var(--white); color: var(--ink); }
.f-row input:focus, .f-row select:focus, .f-row textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(107, 56, 180, .25); }
.f-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 8px 14px; border: 2px solid var(--coal); border-radius: 999px; background: var(--white); font-weight: 700; font-size: 14px; cursor: pointer; transition: background .2s, color .2s; }
.chip input:checked + span { background: var(--coal); color: var(--lime); }
.chip input:focus-visible + span { outline: 3px solid var(--violet); outline-offset: 2px; }
.f-err { display: none; color: #a1121b; font-weight: 700; font-size: 14px; margin: 6px 0 0; }
.has-err .f-err { display: block; }
.has-err input { border-color: #a1121b !important; }
.f-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.f-note { font-size: 13px; color: var(--ink-2); margin: 14px 0 0; }

.dove { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 80px; align-items: start; }
.faq h3 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.faq details { border-bottom: 2px dotted var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 14px 34px 14px 0; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: var(--lime); border: 2px solid var(--coal); transition: transform .25s; }
.faq details[open] summary::after { background: var(--violet); }
.faq details p { color: var(--ink-2); margin: 0 0 16px; }
.map-box { border-radius: 10px; overflow: hidden; border: 2px solid var(--coal); background: var(--paper-2); }
.map-box iframe { display: block; width: 100%; height: 360px; border: 0; }
.map-link { display: inline-block; margin-top: 12px; font-weight: 700; }

/* footer */
.footer { background: var(--coal); color: #c9c7be; padding: 56px 0 28px; font-size: 15px; }
.footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 160px 1fr 1fr 1fr; gap: 32px; align-items: start; }
.footer-grid img { width: 120px; }
.f-h { font-family: var(--disp); font-weight: 700; color: var(--lime); font-size: 17px; margin-bottom: 6px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 1px dotted #4a4a46; margin-top: 36px; padding-top: 16px; font-size: 13px; color: #8f8d85; }
.footer-bottom p { margin: 0; }
.action-bar { display: none; }

/* desktop largo: il percorso corre nel margine sinistro */
@media (min-width: 1100px) {
  .course .wrap { padding-left: 150px; position: relative; }
  .stn { position: absolute; left: 24px; top: 4px; margin: 0; }
  .course-line { display: block; position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; overflow: visible; }
  .course-ghost { fill: none; stroke: rgba(22, 22, 22, .12); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1 14; }
  .course-path { fill: none; stroke: var(--violet); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 1 14; }
  .course-reveal { fill: none; stroke: #fff; stroke-width: 16; }
  .asilo .stn-dark { box-shadow: 4px 4px 0 var(--lime); }
}

/* responsive */
@media (max-width: 960px) {
  :root { --head-h: 64px; }
  body { font-size: 16.5px; padding-bottom: 64px; }
  .brand img { height: 48px; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 8px; background: var(--lime); color: var(--coal); border: 0; border-radius: 999px; padding: 10px 18px; font-weight: 700; font-size: 15px; cursor: pointer; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--coal); border-bottom: 4px solid var(--lime); display: none; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 8px 24px 22px; }
  .nav a { border-radius: 0; padding: 14px 0; border-bottom: 1px dotted #4a4a46; font-size: 18px; }
  .nav a:hover { background: none; }
  .nav-cta a { margin: 16px 0 0; text-align: center; border-radius: 999px; border: 0; padding: 14px; }

  .hero { padding-top: 34px; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; padding-bottom: 44px; }
  .hero-stain { width: 70%; left: -6%; top: -10%; }
  .facts { justify-content: flex-start; padding: 6px 0; }
  .facts li { display: block; padding: 10px 18px; border-right: 0; font-size: 15px; width: 50%; line-height: 1.3; }
  .facts strong { display: block; }
  .facts li:last-child { width: 100%; }

  .sec { padding: 70px 0; }
  .campo-grid, .asilo-grid { grid-template-columns: repeat(6, 1fr); gap: 12px; }
  .campo-copy, .asilo-copy { grid-column: 1 / -1; }
  .campo-big { grid-column: 1 / -1; grid-row: auto; margin-top: 10px; }
  .campo-sm.a { grid-column: 1 / span 3; }
  .campo-sm.b { grid-column: 4 / span 3; margin-top: 40px; }
  .asilo-fig.a { grid-column: 1 / span 3; grid-row: auto; margin-top: 16px; }
  .asilo-fig.b { grid-column: 4 / span 3; margin-top: 70px; }

  .tab-list { flex-wrap: nowrap; overflow-x: auto; margin: 0 -24px 18px; padding: 0 24px 6px; scrollbar-width: none; }
  .tab-list::-webkit-scrollbar { display: none; }
  .tab { flex: none; }
  .tab-panel { grid-template-columns: 1fr; gap: 20px; padding: 22px; min-height: 0; }
  .tp-fig { order: -1; }
  .tp-fig-tall img { aspect-ratio: 4 / 3; max-height: none; width: 100%; object-position: 50% 30%; }

  .disc { gap: 54px; }
  .d-row { grid-template-columns: 1fr; gap: 22px; }
  .d-rev .d-fig { order: 0; }
  .d-row:nth-child(odd) .d-fig::after { right: -8px; bottom: -8px; }
  .d-row:nth-child(even) .d-fig::after { left: -8px; top: -8px; }

  .altri { grid-template-columns: 1fr; }
  .altri li, .altri li + li { padding: 22px 0 4px; border-left: 0; }
  .altri li + li { border-top: 2px dotted #4a4a46; }

  .team { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .person:nth-child(3n+2) { margin-top: 0; }
  .person:nth-child(even) { margin-top: 30px; }
  .person h3 { font-size: 19px; }
  .person p { font-size: 15px; }

  .cont-grid { grid-template-columns: 1fr; gap: 30px; }
  .form { padding: 22px 18px; box-shadow: 6px 6px 0 var(--lime); }
  .f-two { grid-template-columns: 1fr; gap: 0; }
  .f-actions .btn { width: 100%; }
  .dove { grid-template-columns: 1fr; gap: 36px; margin-top: 56px; }
  .map-box iframe { height: 280px; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid img { grid-column: 1 / -1; width: 100px; }

  .action-bar { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--coal); border-top: 3px solid var(--lime); }
  .action-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 60px; color: #fff; text-decoration: none; font-size: 13px; font-weight: 700; }
  .action-bar a + a { border-left: 1px solid #333; }
  .action-bar a:nth-child(2) { background: var(--lime); color: var(--coal); }
  .action-bar svg { width: 22px; height: 22px; fill: currentColor; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 18px; }
  h1 { font-size: 50px; }
  .hero-lead { font-size: 17px; }
  .hero-actions .btn { width: 100%; }
  .tab-list { margin: 0 -18px 18px; padding: 0 18px 6px; }
  .stn { min-width: 66px; height: 66px; margin-bottom: 20px; }
  .stn-n { font-size: 26px; }
  .recapiti li { grid-template-columns: 1fr; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv { opacity: 1; transform: none; }
}
