:root{
  --avana:#c9a46f;
  --avana-dark:#8f6b3d;
  --cream:#fff3d6;
  --paper:#fff8e8;
  --pastel-yellow:#f7df83;
  --pastel-orange:#f2a15d;
  --orange-soft:#df7f3f;
  --brown:#563a24;
  --ink:#3f3428;
  --line:rgba(86,58,36,.18);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,Arial,sans-serif;
  color:var(--ink);
  background:
    radial-gradient(circle at 20% 10%,rgba(247,223,131,.30),transparent 28%),
    linear-gradient(135deg,#fff7df 0%,#efd2a2 100%);
  line-height:1.7;
}
body:before{
  content:"";position:fixed;inset:0;pointer-events:none;z-index:99;opacity:.12;
  background-image:repeating-linear-gradient(0deg,rgba(86,58,36,.22) 0 1px,transparent 1px 4px);
  mix-blend-mode:multiply;
}
a{color:inherit}.container{max-width:1160px;margin:auto}
.site-header{
  position:fixed;z-index:20;top:0;left:0;right:0;display:flex;align-items:center;justify-content:space-between;gap:22px;
  padding:12px 5vw;background:rgba(255,243,214,.92);backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);box-shadow:0 10px 30px rgba(86,58,36,.08)
}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none}.brand img{width:82px;height:60px;object-fit:contain;filter:saturate(.9)}
.brand span{font-family:Playfair Display,serif;font-size:20px;font-weight:800;color:var(--brown);white-space:nowrap;font-style:italic}.nav{display:flex;gap:22px;font-size:14px;font-weight:800}.nav a{text-decoration:none}.nav a:hover{color:var(--orange-soft)}
.header-cta{background:var(--pastel-orange);color:var(--brown);text-decoration:none;padding:10px 18px;border-radius:999px;font-weight:900;border:1px solid rgba(86,58,36,.22)}
.header-cta:hover{background:var(--pastel-yellow)}
.hero{
  min-height:96vh;display:grid;grid-template-columns:1fr 1.05fr;align-items:center;gap:54px;padding:130px 5vw 75px;
  background:
    radial-gradient(circle at 85% 16%,rgba(242,161,93,.26),transparent 28%),
    radial-gradient(circle at 10% 80%,rgba(247,223,131,.35),transparent 32%),
    linear-gradient(145deg,#fff2cf 0%,#e8c18c 100%);
  border-bottom:1px solid var(--line);
}
.hero-photo{position:relative;min-height:520px;background:var(--paper);padding:16px 16px 56px;box-shadow:0 28px 60px rgba(86,58,36,.28);transform:rotate(-2.2deg);border:1px solid rgba(86,58,36,.20)}
.hero-photo:after{content:"Bagno Gabry · ricordi d'estate";position:absolute;left:0;right:0;bottom:16px;text-align:center;font-family:Playfair Display,serif;font-style:italic;font-weight:700;color:var(--avana-dark);font-size:20px}
.hero-photo img{position:absolute;inset:16px 16px 56px 16px;width:calc(100% - 32px);height:calc(100% - 72px);object-fit:cover;filter:sepia(.28) contrast(1.02) saturate(.88)}
.hero-content{max-width:780px}.eyebrow{text-transform:uppercase;letter-spacing:.18em;font-size:13px;font-weight:900;margin:0 0 14px;color:var(--avana-dark)}
h1,h2{font-family:Playfair Display,serif;line-height:1.04;margin:0 0 20px;color:var(--brown)}h1{font-size:clamp(64px,8.2vw,122px);letter-spacing:-.045em;text-shadow:0 2px 0 rgba(255,255,255,.35)}
.hero-title-row{display:flex;align-items:center;gap:28px;margin:0 0 20px;}
.hero-title-row h1{margin:0;}
.hero-dog-link{display:block;flex:0 0 auto;text-decoration:none;}
.hero-dog-badge{width:clamp(140px,15vw,205px);height:auto;display:block;border-radius:50%;filter:drop-shadow(0 16px 26px rgba(86,58,36,.22));transform:rotate(2deg);transition:transform .2s ease;}
.hero-dog-link:hover .hero-dog-badge{transform:rotate(0deg) scale(1.02);}
h2{font-size:clamp(36px,4vw,62px)}.claim{font-family:Playfair Display,serif;font-size:clamp(34px,4.6vw,60px);color:var(--orange-soft);margin:0 0 22px;font-weight:800;font-style:italic}.hero-text{font-size:21px;max-width:650px;color:#58432d}.hero-actions{display:flex;flex-wrap:wrap;gap:14px;margin-top:30px}.btn{display:inline-block;text-decoration:none;border-radius:999px;padding:14px 24px;font-weight:900;border:1px solid rgba(86,58,36,.22)}.btn.primary{background:var(--pastel-orange);color:var(--brown);box-shadow:0 10px 24px rgba(143,107,61,.22)}.btn.primary:hover{background:var(--pastel-yellow)}.btn.secondary{border:2px solid var(--avana-dark);color:var(--brown);background:rgba(255,248,232,.62)}.dark-btn{background:var(--pastel-orange)!important;color:var(--brown)!important;margin-top:14px}
.section{padding:92px 5vw}.two-col{display:grid;grid-template-columns:1fr 1.25fr;gap:60px;align-items:start}.intro{background:rgba(255,248,232,.72);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.intro p{font-size:19px}.story{background:#f6dfb4}.story-grid{display:grid;grid-template-columns:.9fr 1.15fr;gap:55px;align-items:center}.story-copy p{font-size:18px}.polaroids{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;align-items:start}.polaroids figure{margin:0;background:var(--paper);padding:12px 12px 28px;box-shadow:0 18px 38px rgba(86,58,36,.22);transform:rotate(-2.5deg);border:1px solid rgba(86,58,36,.18)}.polaroids figure:nth-child(2){transform:rotate(2.3deg);margin-top:38px}.polaroids figure:nth-child(3){transform:rotate(-1.2deg);margin-top:12px}.polaroids img{width:100%;height:250px;object-fit:cover;filter:grayscale(.72) sepia(.25) contrast(1.03)}.polaroids figcaption{font-family:Playfair Display,serif;font-weight:800;color:var(--avana-dark);padding-top:10px;text-align:center;font-style:italic}.sand{background:#f2d9a8}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-top:34px}.card{background:var(--paper);padding:30px;border-radius:18px;box-shadow:0 10px 28px rgba(86,58,36,.10);border:1px solid var(--line);border-top:7px solid var(--pastel-orange)}.card h3{color:var(--brown);font-size:23px;margin-top:0;font-family:Playfair Display,serif}.service-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:32px}.service-grid div{background:var(--paper);border:1px solid var(--line);padding:20px;border-radius:16px;font-weight:900;color:var(--brown);box-shadow:0 8px 20px rgba(86,58,36,.05)}.quote-band{padding:80px 5vw;background:linear-gradient(120deg,rgba(86,58,36,.74),rgba(223,127,63,.48)),url('images/12.jpg') center/cover fixed;color:#fff8e8}.quote-band p{font-family:Playfair Display,serif;font-size:clamp(30px,4vw,58px);line-height:1.15;max-width:980px;margin:0;text-shadow:0 3px 18px rgba(0,0,0,.26)}.gallery-section{background:#fff2cf}.gallery{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:30px}.gallery img{width:100%;height:230px;object-fit:cover;background:var(--paper);padding:8px 8px 22px;box-shadow:0 12px 26px rgba(86,58,36,.14);filter:sepia(.18) saturate(.9) contrast(1.03);transform:rotate(-.6deg)}.gallery img:nth-child(even){transform:rotate(.7deg)}.cta-box{display:grid;grid-template-columns:1fr 1.15fr;gap:50px;align-items:center;background:var(--paper);border-radius:22px;padding:52px;box-shadow:0 12px 40px rgba(86,58,36,.12);border:1px solid var(--line)}.footer{background:#7d5b34;color:#fff8e8;padding:58px 5vw;border-top:10px solid var(--pastel-orange)}.footer-grid{display:grid;grid-template-columns:1.1fr 1fr 1fr;gap:40px}.footer-logo{width:130px;background:var(--paper);border-radius:14px;padding:8px}.footer-claim{font-family:Playfair Display,serif;font-size:28px;font-weight:800;margin:12px 0 0;color:var(--pastel-yellow);font-style:italic}.footer a{color:#fff8e8}.footer h3{margin-top:0;color:var(--pastel-yellow)}
@media(max-width:920px){.nav{display:none}.brand img{width:62px;height:48px}.brand span{font-size:17px}.hero{grid-template-columns:1fr;padding-top:110px}.hero-photo{min-height:360px;order:2}.hero-content{order:1}.two-col,.story-grid,.cards,.service-grid,.cta-box,.footer-grid{grid-template-columns:1fr}.polaroids{grid-template-columns:1fr}.polaroids figure,.polaroids figure:nth-child(2),.polaroids figure:nth-child(3){transform:none;margin-top:0}.gallery{grid-template-columns:repeat(2,1fr)}.section{padding:66px 22px}.site-header{padding:10px 18px}.header-cta{padding:9px 14px}.hero{padding-left:22px;padding-right:22px}.hero-text{font-size:18px}.cta-box{padding:30px}.quote-band{background-attachment:scroll}}
@media(max-width:560px){.brand span{display:none}.gallery{grid-template-columns:1fr}.gallery img{height:260px}h1{font-size:58px}.claim{font-size:34px}}


/* Nuove foto - sezioni emozionali */
.modern-moments{background:linear-gradient(135deg,rgba(255,248,232,.95),rgba(247,223,131,.38));}
.modern-grid{align-items:center;gap:48px;}
.modern-photos{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:center;}
.modern-photos img{width:100%;height:380px;object-fit:cover;border-radius:28px;border:10px solid rgba(255,248,232,.9);box-shadow:0 18px 45px rgba(86,58,36,.22);filter:saturate(.92) contrast(.98);}
.modern-photos img:nth-child(2){transform:rotate(2deg);}
.night-section{position:relative;min-height:520px;display:grid;align-items:end;overflow:hidden;border-top:1px solid var(--line);border-bottom:1px solid var(--line);}
.night-section:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(31,24,20,.08),rgba(31,24,20,.58));}
.night-section img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
.night-caption{position:relative;z-index:1;max-width:760px;margin:0 auto 58px;padding:0 28px;text-align:center;color:#fff8e8;text-shadow:0 3px 18px rgba(0,0,0,.42);}
.night-caption h2{font-size:clamp(34px,5vw,64px);margin:8px 0 0;font-family:Playfair Display,serif;line-height:1.05;}
.night-caption .eyebrow{color:#f7df83;}
.gallery img{aspect-ratio:4/3;object-fit:cover;}
@media(max-width:780px){.modern-photos{grid-template-columns:1fr}.modern-photos img{height:300px}.night-section{min-height:430px}}


/* Certificazione ISO 13009 */
.iso-section{background:linear-gradient(135deg,#fff8e8 0%,#f7df83 48%,#f2a15d 100%);border-top:1px solid var(--line);border-bottom:1px solid var(--line);}
.iso-box{display:grid;grid-template-columns:260px 1fr;gap:48px;align-items:center;background:rgba(255,248,232,.72);border:1px solid rgba(86,58,36,.20);border-radius:28px;padding:46px;box-shadow:0 18px 50px rgba(86,58,36,.12);}
.iso-badge{width:230px;height:230px;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;background:var(--paper);border:8px solid var(--pastel-orange);box-shadow:0 16px 35px rgba(86,58,36,.18);color:var(--brown);font-family:Playfair Display,serif;position:relative;}
.iso-badge:before{content:"";position:absolute;inset:14px;border:2px dashed rgba(143,107,61,.45);border-radius:50%;}
.iso-badge span{font-size:36px;font-weight:800;line-height:1;letter-spacing:.04em;}
.iso-badge strong{font-size:54px;line-height:1;font-weight:900;color:var(--orange-soft);}
.iso-badge em{font-size:24px;font-weight:800;color:var(--avana-dark);font-style:italic;}
.iso-copy p{font-size:18px;}
@media(max-width:780px){.iso-box{grid-template-columns:1fr;padding:30px}.iso-badge{width:190px;height:190px;margin:auto}.iso-badge strong{font-size:46px}}

.service-grid .service-photo-card{
  padding:0;
  overflow:hidden;
  min-height:160px;
}
.service-grid .service-photo-card a{
  display:block;
  height:100%;
  color:var(--brown);
  text-decoration:none;
}
.service-grid .service-photo-card img{
  display:block;
  width:100%;
  height:128px;
  object-fit:cover;
}
.service-grid .service-photo-card span{
  display:block;
  padding:14px 16px 16px;
  font-weight:900;
}
@media(max-width:920px){
  .service-grid .service-photo-card img{height:220px}
}

.google-review-card{
  padding:0 !important;
  overflow:hidden;
  min-height:160px;
  background:var(--paper) !important;
}
.google-review-card a{
  display:flex;
  height:100%;
  min-height:160px;
  flex-direction:column;
  justify-content:center;
  gap:8px;
  padding:22px 18px;
  color:var(--brown);
  text-decoration:none;
}
.review-stars{
  font-size:26px;
  line-height:1;
  letter-spacing:2px;
  color:var(--orange-soft);
  text-shadow:0 2px 0 rgba(255,255,255,.55);
}
.review-title{
  display:block;
  font-size:18px;
  font-weight:900;
}
.review-subtitle{
  display:block;
  font-size:13px;
  line-height:1.25;
  font-weight:800;
  color:var(--avana-dark);
  opacity:.86;
}


.google-review-widget-card{
  padding:18px !important;
  min-height:220px;
}
.google-review-widget-card h3{
  margin:12px 0 0;
  font-family:Playfair Display,serif;
  font-size:20px;
  color:var(--brown);
}
.google-review-widget-card .elfsight-app-f1a6f992-2838-4081-b9d3-90cf380e1836{
  width:100%;
}

/* Amici a quattro zampe */
.dog-service-card{
  padding:0 !important;
  overflow:hidden;
  background:linear-gradient(135deg,rgba(255,248,232,.96),rgba(247,223,131,.34)) !important;
}
.dog-service-card a{
  min-height:160px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start;
  gap:8px;
  padding:22px 18px;
  color:var(--brown);
  text-decoration:none;
}
.dog-service-card .dog-icon{
  font-size:34px;
  line-height:1;
}
.dog-service-card strong{
  font-size:18px;
  line-height:1.15;
}
.dog-service-card small{
  color:var(--avana-dark);
  font-weight:800;
  line-height:1.3;
}

.dog-card-badge{
  width:92px;
  height:92px;
  object-fit:contain;
  border-radius:50%;
  box-shadow:0 10px 26px rgba(86,58,36,.14);
  background:rgba(255,248,232,.75);
}
.dog-intro-with-badge{
  max-width:none;
  display:grid;
  grid-template-columns:minmax(0,1fr) 220px;
  align-items:center;
  gap:34px;
}
.dog-main-badge{
  width:220px;
  height:220px;
  object-fit:contain;
  border-radius:50%;
  filter:drop-shadow(0 18px 32px rgba(86,58,36,.18));
  justify-self:end;
}

.dog-section{
  background:linear-gradient(135deg,#fff8e8 0%,#f6dfb4 58%,#f2a15d 100%);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.dog-box{
  background:rgba(255,248,232,.80);
  border:1px solid rgba(86,58,36,.18);
  border-radius:28px;
  padding:48px;
  box-shadow:0 18px 50px rgba(86,58,36,.12);
}
.dog-intro{
  max-width:880px;
}
.dog-intro p{
  font-size:18px;
}
.dog-highlights{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
  margin:34px 0;
}
.dog-highlights div{
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:18px;
  padding:22px;
  box-shadow:0 10px 28px rgba(86,58,36,.08);
}
.dog-highlights strong{
  display:block;
  font-family:Playfair Display,serif;
  font-size:22px;
  color:var(--brown);
  margin-bottom:8px;
}
.dog-highlights span{
  display:block;
  color:#58432d;
  font-weight:600;
  line-height:1.45;
}
.dog-rules{
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:18px;
  padding:0;
  overflow:hidden;
  box-shadow:0 10px 28px rgba(86,58,36,.08);
}
.dog-rules summary{
  cursor:pointer;
  padding:22px 26px;
  font-weight:900;
  color:var(--brown);
  background:rgba(247,223,131,.42);
}
.rules-content{
  padding:10px 26px 30px;
  column-count:2;
  column-gap:42px;
}
.rules-content h3,
.rules-content h4{
  break-after:avoid;
  color:var(--brown);
}
.rules-content h3{
  font-family:Playfair Display,serif;
  font-size:30px;
  margin:18px 0 20px;
  column-span:all;
}
.rules-content h4{
  font-size:16px;
  margin:22px 0 8px;
}
.rules-content p{
  font-size:15px;
  line-height:1.55;
  margin:0 0 10px;
}
.important-rule{
  background:#fff2cf;
  border-left:6px solid var(--pastel-orange);
  padding:14px 16px;
  border-radius:12px;
  font-weight:800;
}
@media(max-width:920px){
  .dog-box{padding:30px}
  .dog-highlights{grid-template-columns:1fr}
  .rules-content{column-count:1}
}

@media (max-width: 760px){
  .dog-intro-with-badge{
    grid-template-columns:1fr;
    text-align:left;
  }
  .dog-main-badge{
    width:180px;
    height:180px;
    justify-self:center;
    order:-1;
  }
  .dog-card-badge{
    width:82px;
    height:82px;
  }
}

@media(max-width:920px){
  .hero-title-row{align-items:flex-start;gap:18px;}
  .hero-dog-badge{width:128px;}
}
@media(max-width:560px){
  .hero-title-row{flex-direction:column;gap:14px;}
  .hero-dog-badge{width:120px;}
}

/* Correzione mobile: il badge nella hero resta solo su desktop/tablet larghi.
   Su iPhone viene nascosto per non comprimere o rompere il titolo. */
@media(max-width:760px){
  .hero-title-row{
    display:block;
    margin-bottom:18px;
  }
  .hero-title-row h1{
    margin:0 0 20px;
  }
  .hero-title-row .hero-dog-link{
    display:none;
  }
}

/* FIX definitivo mobile badge cani: su iPhone il badge della hero viene nascosto
   per non comprimere il titolo e non alterare la formattazione. */
@media (max-width: 1024px){
  .hero-title-row{
    display:block !important;
  }
  .hero-title-row .hero-dog-link,
  .hero-title-row .hero-dog-badge{
    display:none !important;
  }
  .hero-title-row h1{
    margin-bottom:20px !important;
  }
}

@media (max-width: 760px){
  .dog-main-badge{
    width:150px !important;
    height:150px !important;
    max-width:58vw !important;
    justify-self:center !important;
  }
  .dog-card-badge{
    width:74px !important;
    height:74px !important;
  }
}


/* FIX REALE iPhone / smartphone: il badge nella hero deve scomparire del tutto
   sui dispositivi touch e sugli schermi sotto 1100px, così non rompe il titolo. */
@media (max-width: 1100px), (hover: none), (pointer: coarse) {
  .hero-title-row{
    display:block !important;
  }
  .hero-title-row .hero-dog-link,
  .hero-title-row .hero-dog-badge{
    display:none !important;
    width:0 !important;
    height:0 !important;
    max-width:0 !important;
    max-height:0 !important;
    overflow:hidden !important;
    visibility:hidden !important;
    opacity:0 !important;
    position:absolute !important;
    pointer-events:none !important;
  }
  .hero-title-row h1{
    margin:0 0 20px !important;
  }
}

/* Nella sezione Cani il badge resta visibile, ma contenuto e sicuro su mobile. */
@media (max-width: 760px), (hover: none), (pointer: coarse) {
  .dog-intro-with-badge{
    grid-template-columns:1fr !important;
  }
  .dog-main-badge{
    width:140px !important;
    height:140px !important;
    max-width:50vw !important;
    justify-self:center !important;
  }
  .dog-card-badge{
    width:68px !important;
    height:68px !important;
    max-width:30vw !important;
  }
}


/* BADGE CANI ACCANTO AL TITOLO - VERSIONE RESPONSIVE
   Su desktop resta grande come approvato.
   Su iPhone/smartphone ha dimensioni fisse, così non rompe la formattazione. */
.hero-title-row{
  display:flex !important;
  align-items:center !important;
  gap:28px !important;
  margin:0 0 20px !important;
}
.hero-title-row h1{
  margin:0 !important;
  flex:0 1 auto !important;
}
.hero-title-row .hero-dog-link{
  display:block !important;
  flex:0 0 auto !important;
  text-decoration:none !important;
}
.hero-title-row .hero-dog-badge{
  display:block !important;
  width:clamp(140px,15vw,205px) !important;
  max-width:205px !important;
  height:auto !important;
  border-radius:50% !important;
  filter:drop-shadow(0 16px 26px rgba(86,58,36,.22));
  transform:rotate(2deg);
}

@media (max-width:920px){
  .hero-title-row{
    gap:16px !important;
    align-items:center !important;
  }
  .hero-title-row h1{
    flex:1 1 auto !important;
    min-width:0 !important;
  }
  .hero-title-row .hero-dog-link{
    flex:0 0 86px !important;
    width:86px !important;
  }
  .hero-title-row .hero-dog-badge{
    width:86px !important;
    max-width:86px !important;
  }
}

@media (max-width:560px){
  .hero-title-row{
    gap:10px !important;
    align-items:flex-start !important;
  }
  .hero-title-row h1{
    font-size:52px !important;
    line-height:.96 !important;
    letter-spacing:-.05em !important;
  }
  .hero-title-row .hero-dog-link{
    flex:0 0 62px !important;
    width:62px !important;
    margin-top:4px !important;
  }
  .hero-title-row .hero-dog-badge{
    width:62px !important;
    max-width:62px !important;
    min-width:62px !important;
  }
}

@media (max-width:360px){
  .hero-title-row h1{
    font-size:48px !important;
  }
  .hero-title-row .hero-dog-link{
    flex-basis:56px !important;
    width:56px !important;
  }
  .hero-title-row .hero-dog-badge{
    width:56px !important;
    max-width:56px !important;
    min-width:56px !important;
  }
}

/* FIX FINALE: badge cani visibile accanto a Bagno Gabry anche su iPhone.
   Questa regola annulla le vecchie impostazioni che lo nascondevano su mobile. */
.hero-title-row,
.hero-title-row .hero-dog-link,
.hero-title-row .hero-dog-badge{
  visibility:visible !important;
  opacity:1 !important;
  overflow:visible !important;
  pointer-events:auto !important;
}
.hero-title-row{
  display:flex !important;
  flex-direction:row !important;
  flex-wrap:nowrap !important;
  align-items:flex-start !important;
}
.hero-title-row .hero-dog-link{
  display:block !important;
  position:static !important;
  height:auto !important;
  max-height:none !important;
  min-height:0 !important;
}
.hero-title-row .hero-dog-badge{
  display:block !important;
  position:static !important;
  height:auto !important;
  max-height:none !important;
  min-height:0 !important;
}

@media (max-width:560px){
  .hero-title-row{
    gap:10px !important;
    margin-bottom:16px !important;
  }
  .hero-title-row h1{
    flex:1 1 auto !important;
    min-width:0 !important;
    max-width:calc(100% - 72px) !important;
    font-size:50px !important;
    line-height:.96 !important;
    letter-spacing:-.052em !important;
  }
  .hero-title-row .hero-dog-link{
    flex:0 0 58px !important;
    width:58px !important;
    max-width:58px !important;
    margin-top:5px !important;
  }
  .hero-title-row .hero-dog-badge{
    width:58px !important;
    min-width:58px !important;
    max-width:58px !important;
  }
}

@media (max-width:390px){
  .hero-title-row h1{
    max-width:calc(100% - 66px) !important;
    font-size:47px !important;
  }
  .hero-title-row .hero-dog-link{
    flex-basis:54px !important;
    width:54px !important;
    max-width:54px !important;
  }
  .hero-title-row .hero-dog-badge{
    width:54px !important;
    min-width:54px !important;
    max-width:54px !important;
  }
}


/* Fix definitivo badge cani: PNG trasparente + maschera circolare anti-sfondo su desktop/tablet/mobile */
.hero-dog-badge,
.dog-card-badge,
.dog-main-badge{
  background: transparent !important;
  border-radius: 50% !important;
  clip-path: circle(49% at 50% 50%) !important;
  /* Il badge si fonde con lo sfondo sottostante mantenendo i colori del contesto */
  mix-blend-mode: multiply !important;
}
.hero-dog-link{
  background: transparent !important;
}


.dog-text-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 16px;
  border-radius:999px;
  background:rgba(242,161,93,.28);
  border:1px solid rgba(86,58,36,.18);
  color:var(--brown);
  font-family:Playfair Display,serif;
  font-weight:900;
  font-size:18px;
  line-height:1;
  box-shadow:0 8px 20px rgba(86,58,36,.06);
}

/* Correzione finale tablet Android: mantiene il badge cani affiancato a "Bagno Gabry"
   senza rompere l'impaginazione. Questa regola è volutamente in fondo al CSS
   per prevalere sui tentativi precedenti. */
.hero-title-row{
  display:flex !important;
  flex-direction:row !important;
  flex-wrap:nowrap !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:clamp(10px,2.2vw,28px) !important;
  max-width:100% !important;
}
.hero-title-row h1{
  flex:0 1 auto !important;
  min-width:0 !important;
  margin:0 !important;
}
.hero-title-row .hero-dog-link{
  display:block !important;
  flex:0 0 clamp(58px,11vw,170px) !important;
  width:clamp(58px,11vw,170px) !important;
  max-width:170px !important;
  margin:0 !important;
  align-self:center !important;
  line-height:0 !important;
}
.hero-title-row .hero-dog-badge{
  display:block !important;
  width:100% !important;
  height:auto !important;
  max-width:100% !important;
  min-width:0 !important;
  margin:0 !important;
  transform:rotate(2deg) !important;
  background:transparent !important;
  mix-blend-mode:multiply !important;
}

/* Tablet: riduce leggermente titolo e badge così restano sulla stessa riga. */
@media (min-width:561px) and (max-width:1180px){
  .hero-title-row{
    align-items:center !important;
    gap:16px !important;
  }
  .hero-title-row h1{
    font-size:clamp(64px,7.6vw,92px) !important;
    line-height:.98 !important;
    letter-spacing:-.05em !important;
    max-width:calc(100% - 116px) !important;
  }
  .hero-title-row .hero-dog-link{
    flex-basis:96px !important;
    width:96px !important;
    max-width:96px !important;
  }
}

/* Tablet stretti / Android in verticale. */
@media (min-width:561px) and (max-width:760px){
  .hero-title-row h1{
    font-size:clamp(58px,10vw,76px) !important;
    max-width:calc(100% - 94px) !important;
  }
  .hero-title-row .hero-dog-link{
    flex-basis:78px !important;
    width:78px !important;
    max-width:78px !important;
  }
}
