/* ═══════════════════════════════════════════════
   I SALICI D'ORO & PICCOLI BRIGANTI DOGSCHOOL
   FOGLIO DI STILE CONDIVISO (style.css)
═══════════════════════════════════════════════ */

:root {
  --primario: #8c1d1d;
  --primario-scuro: #6e1414;
  --primario-soft: #fcf1f1;
  --oro: #b87d18;
  --oro-scuro: #96630f;
  --oro-soft: #fbf5ea;
  --verde-wa: #1b8a3e;
  --verde-wa-hover: #14652e;
  --verde-bosco: #1e6338;
  --verde-bosco-soft: #edf6f0;
  --bg-crema: #fdfbf7;
  --bg-card: #ffffff;
  --bg-subtle: #f7f4ed;
  --testo: #1a1c20;
  --testo-medio: #494d57;
  --testo-mutato: #747985;
  --bordo: #e6dfd3;
  --bordo-soft: #f0eae0;
  --raggio-lg: 20px;
  --raggio-md: 14px;
  --raggio-sm: 8px;
  --ombra-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
  --ombra-hover: 0 12px 32px rgba(26, 28, 32, 0.09);
  --trans: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 85px;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-crema);
  color: var(--testo);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  font-family: 'Fredoka', sans-serif;
  line-height: 1.25;
  color: var(--testo);
}

.container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
}

.icon-svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--testo);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 8px 8px;
  z-index: 9999;
  font-weight: 700;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--oro);
  outline-offset: 3px;
}

/* ═══════════════════════════════════════════════
   HEADER & NAVBAR
═══════════════════════════════════════════════ */
header {
  position: sticky;
  top: 0;
  z-index: 600;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1.5px solid var(--bordo);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  max-width: 1220px;
  margin: 0 auto;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  height: 56px;
  /* Cresciuto per maggiore leggibilità */
  width: auto;
  max-width: 170px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.brand:hover img {
  transform: scale(1.04);
}

.brand-titles {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primario);
  line-height: 1.15;
  white-space: nowrap;
}

.brand-subtitle {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--oro);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 20px;
  font-family: 'Fredoka', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--testo-medio);
  transition: var(--trans);
  white-space: nowrap;
}

.nav-link:hover {
  background: var(--oro-soft);
  color: var(--oro);
}

.nav-link.active {
  background: var(--primario);
  color: #fff;
}

.btn-wa-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--verde-wa);
  color: #fff;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 9px 18px;
  border-radius: 24px;
  box-shadow: 0 2px 8px rgba(27, 138, 62, 0.25);
  transition: var(--trans);
  flex-shrink: 0;
}

.btn-wa-nav:hover {
  background: var(--verde-wa-hover);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  background: var(--bg-subtle);
  border: 1.5px solid var(--bordo);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--testo);
  align-items: center;
  gap: 8px;
}

.nav-toggle-icon {
  width: 18px;
  height: 12px;
  position: relative;
  display: inline-block;
}

.nav-toggle-icon span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--testo);
  border-radius: 2px;
  transition: var(--trans);
}

.nav-toggle-icon span:nth-child(1) {
  top: 0;
}

.nav-toggle-icon span:nth-child(2) {
  top: 5px;
}

.nav-toggle-icon span:nth-child(3) {
  top: 10px;
}

.nav-toggle.open .nav-toggle-icon span:nth-child(1) {
  top: 5px;
  transform: rotate(45deg);
}

.nav-toggle.open .nav-toggle-icon span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open .nav-toggle-icon span:nth-child(3) {
  top: 5px;
  transform: rotate(-45deg);
}

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 20, 25, 0.45);
  backdrop-filter: blur(4px);
  z-index: 550;
}

@media (max-width: 1020px) {
  .nav-inner {
    padding: 10px 14px;
    gap: 10px;
  }

  .nav-toggle {
    display: inline-flex;
    padding: 7px 11px;
    font-size: 0.85rem;
  }

  /* Tasto WhatsApp compatto e bilanciato su mobile: icona circolare senza overflow */
  .btn-wa-nav {
    padding: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(27, 138, 62, 0.3);
  }

  .btn-wa-nav span {
    display: none;
  }

  .btn-wa-nav svg {
    width: 20px;
    height: 20px;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 14px;
    right: 14px;
    background: #fff;
    border-radius: 16px;
    flex-direction: column;
    padding: 14px;
    gap: 6px;
    border: 1.5px solid var(--bordo);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
    z-index: 560;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-link {
    width: 100%;
    padding: 11px 16px;
    font-size: 1rem;
  }

  .nav-backdrop.open {
    display: block;
  }
}

@media (max-width: 680px) {
  .brand-subtitle {
    display: none; /* Il logo affiancato contiene già la dicitura Piccoli Briganti DogSchool: diamo tutto lo spazio al brand I Salici d'Oro */
  }

  .brand-title {
    font-size: 1.2rem;
    line-height: 1.1;
  }
}

@media (max-width: 480px) {
  .nav-inner {
    padding: 8px 12px;
    gap: 8px;
  }

  .brand {
    gap: 8px;
    min-width: 0;
  }

  .brand img {
    height: 44px;
    max-width: 120px;
  }

  .brand-title {
    font-size: 1.12rem;
    white-space: nowrap;
  }

  .brand-subtitle {
    display: none;
  }

  .nav-toggle {
    padding: 6px 9px;
    font-size: 0.8rem;
    gap: 6px;
  }
}

/* ═══════════════════════════════════════════════
   PAGINA HERO / HEADER COMUNE
═══════════════════════════════════════════════ */
.page-hero {
  padding: 44px 0 32px;
  background: linear-gradient(135deg, #fff 0%, var(--bg-subtle) 100%);
  border-bottom: 1px solid var(--bordo);
}

.page-hero-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--oro);
  background: var(--oro-soft);
  padding: 4px 12px;
  border-radius: 12px;
  margin-bottom: 10px;
}

.page-hero h1 {
  font-size: clamp(2rem, 3.8vw, 3rem);
  color: var(--primario);
  margin-bottom: 10px;
}

/* Griglia Hero Razze Responsive */
.hero-split-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
}

@media (max-width: 880px) {
  .hero-split-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Griglia Sezione Giusi in Homepage Responsive */
.giusi-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 36px;
  align-items: center;
}

@media (max-width: 880px) {
  .giusi-preview-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .giusi-preview-grid .giusi-card-photo {
    max-width: 360px;
    margin: 0 auto;
    width: 100%;
  }
}

.page-hero-desc {
  font-size: 1.1rem;
  color: var(--testo-medio);
  line-height: 1.6;
  max-width: 860px;
}

/* ═══════════════════════════════════════════════
   PORTALI IN HOME PAGE
═══════════════════════════════════════════════ */
.portals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.portal-card {
  background: #fff;
  border-radius: var(--raggio-lg);
  border: 1.5px solid var(--bordo);
  overflow: hidden;
  box-shadow: var(--ombra-soft);
  display: flex;
  flex-direction: column;
  transition: var(--trans);
}

.portal-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--ombra-hover);
  border-color: var(--oro);
}

.portal-card-img {
  height: 220px;
  overflow: hidden;
  background: var(--bg-subtle);
  position: relative;
}

.portal-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  will-change: transform;
}

.portal-card:hover .portal-card-img img {
  transform: scale(1.04) translateZ(0);
}

.card-dogschool .portal-card-img {
  background: #fbfaf5;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-dogschool .portal-card-img a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.card-dogschool .portal-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.card-dogschool:hover .portal-card-img img {
  transform: none;
  /* Mantiene il testo della locandina 100% nitido senza subire sfocatura da zoom */
}

.portal-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.portal-card-category {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--oro);
  margin-bottom: 6px;
  line-height: 1.2;
}

.portal-card-title {
  font-size: 1.35rem;
  color: var(--primario);
  margin-bottom: 10px;
  min-height: 2.4em;
  display: flex;
  align-items: flex-start;
  line-height: 1.2;
}

.portal-card-desc {
  font-size: 0.92rem;
  color: var(--testo-medio);
  margin-bottom: 16px;
  line-height: 1.55;
  flex-grow: 1;
}

.btn-portal-action {
  background: var(--primario);
  color: #fff;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 11px 16px;
  border-radius: 12px;
  text-align: center;
  transition: var(--trans);
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.portal-card:hover .btn-portal-action {
  background: var(--primario-scuro);
  transform: translateY(-1px);
}

.portal-card.card-dogschool .btn-portal-action {
  background: var(--verde-bosco);
}

.portal-card.card-dogschool:hover .btn-portal-action {
  background: var(--verde-wa-hover);
}

/* ═══════════════════════════════════════════════
   MANIFESTO ETICO
═══════════════════════════════════════════════ */
.ethics-section {
  padding: 60px 0;
  background: #fff;
  border-top: 1px solid var(--bordo);
  border-bottom: 1px solid var(--bordo);
}

.ethics-intro {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 38px;
}

.ethics-intro h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  color: var(--primario);
  margin-bottom: 10px;
}

.ethics-intro p {
  font-size: 1.05rem;
  color: var(--testo-medio);
  line-height: 1.65;
}

.ethics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 22px;
}

.ethics-card {
  background: var(--bg-crema);
  border: 1.5px solid var(--bordo);
  border-radius: var(--raggio-md);
  padding: 24px;
  transition: var(--trans);
}

.ethics-card:hover {
  background: #fff;
  border-color: var(--oro);
  box-shadow: var(--ombra-soft);
}

.ethics-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--testo);
}

.ethics-card p {
  font-size: 0.94rem;
  color: var(--testo-medio);
  line-height: 1.6;
}

.ethics-quote {
  margin-top: 10px;
  padding: 8px 12px;
  background: var(--oro-soft);
  border-left: 3px solid var(--oro);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  font-size: 0.88rem;
}

/* BOX CHIARO "UN IMPEGNO CHE DURA PER SEMPRE" (NESSUN RIQUADRO NERO) */
.forever-light-box {
  margin-top: 36px;
  background: var(--bg-crema);
  border: 2px solid var(--oro);
  border-radius: var(--raggio-lg);
  padding: 34px 30px;
  box-shadow: var(--ombra-soft);
}

.forever-light-box h3 {
  font-size: 1.6rem;
  color: var(--primario);
  margin-bottom: 10px;
}

.forever-light-box-intro {
  font-size: 1rem;
  color: var(--testo-medio);
  line-height: 1.6;
  margin-bottom: 22px;
}

.forever-light-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.forever-light-item {
  background: #fff;
  border: 1.5px solid var(--bordo);
  border-radius: 12px;
  padding: 18px 20px;
  transition: var(--trans);
}

.forever-light-item:hover {
  border-color: var(--oro);
  box-shadow: var(--ombra-soft);
}

.forever-light-item h4 {
  font-size: 1.1rem;
  color: var(--primario);
  margin-bottom: 6px;
}

.forever-light-item p {
  font-size: 0.9rem;
  color: var(--testo-medio);
  line-height: 1.55;
  margin-bottom: 0;
}

/* ═══════════════════════════════════════════════
   SCHEDE RAZZA
═══════════════════════════════════════════════ */
.breed-page-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 34px;
  padding: 46px 0;
}

@media (max-width: 900px) {
  .breed-page-grid {
    grid-template-columns: 1fr;
  }
}

.breed-article {
  background: #fff;
  border-radius: var(--raggio-md);
  padding: 30px;
  border: 1.5px solid var(--bordo);
  box-shadow: var(--ombra-soft);
}

.breed-article h2 {
  font-size: 1.6rem;
  color: var(--primario);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--oro-soft);
}

.breed-article h3 {
  font-size: 1.25rem;
  color: var(--testo);
  margin: 20px 0 8px;
}

.breed-article p {
  font-size: 0.98rem;
  color: var(--testo-medio);
  margin-bottom: 14px;
  line-height: 1.7;
}

.breed-article ul {
  margin: 10px 0 16px 20px;
  color: var(--testo-medio);
}

.breed-article li {
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.char-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.92rem;
}

.char-table th,
.char-table td {
  padding: 10px 14px;
  border: 1px solid var(--bordo);
  text-align: left;
}

.char-table th {
  background: var(--oro-soft);
  color: var(--testo);
  font-weight: 700;
}

.char-table tr:nth-child(even) {
  background: var(--bg-crema);
}

.sidebar-card {
  background: #fff;
  border-radius: var(--raggio-md);
  padding: 24px;
  border: 1.5px solid var(--bordo);
  box-shadow: var(--ombra-soft);
  margin-bottom: 20px;
}

.sidebar-card.accent {
  background: var(--oro-soft);
  border-color: rgba(184, 125, 24, 0.35);
}

.sidebar-card h3 {
  font-size: 1.2rem;
  color: var(--primario);
  margin-bottom: 12px;
}

.specs-list {
  list-style: none;
}

.specs-list li {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid var(--bordo);
  font-size: 0.9rem;
}

.specs-list li:last-child {
  border-bottom: none;
}

.specs-label {
  color: var(--testo-mutato);
  font-weight: 600;
}

.specs-val {
  color: var(--testo);
  font-weight: 700;
  text-align: right;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 11px 22px;
  border-radius: 30px;
  cursor: pointer;
  border: none;
  transition: var(--trans);
  box-sizing: border-box;
}

.btn-wa-full {
  background: var(--verde-wa);
  color: #fff;
  box-shadow: 0 3px 12px rgba(27, 138, 62, 0.3);
  width: 100%;
}

.btn-wa-full:hover {
  background: var(--verde-wa-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--primario);
  border: 1.5px solid var(--primario);
}

.btn-outline:hover {
  background: var(--primario);
  color: #fff;
}

/* ═══════════════════════════════════════════════
   GALLERIE FOTOGRAFICHE & LIGHTBOX
═══════════════════════════════════════════════ */
.gallery-section {
  padding: 50px 0 65px;
  background: #fff;
  border-top: 1px solid var(--bordo);
}

.gallery-intro {
  text-align: center;
  margin-bottom: 30px;
}

.gallery-intro h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  color: var(--primario);
  margin-bottom: 4px;
}

.gallery-intro p {
  color: var(--testo-mutato);
  font-size: 0.98rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-subtle);
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: var(--trans);
}

.gallery-item:hover {
  transform: translateY(-3px);
  border-color: var(--oro);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  will-change: transform;
}

.gallery-item:hover img {
  transform: scale(1.04) translateZ(0);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 50%);
  opacity: 0;
  display: flex;
  align-items: flex-end;
  padding: 10px;
  transition: opacity 0.2s ease;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: 'Fredoka', sans-serif;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(12, 14, 18, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.lightbox-modal.active {
  display: flex;
  opacity: 1;
}

.lightbox-wrap {
  max-width: 1080px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.lightbox-info {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  color: #fff;
  font-size: 0.9rem;
  font-family: 'Fredoka', sans-serif;
}

.lightbox-btn {
  position: absolute;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.3rem;
  transition: var(--trans);
}

.lightbox-btn:hover {
  background: var(--primario);
  border-color: var(--primario);
}

.lightbox-close {
  top: -50px;
  right: 0;
}

.lightbox-prev {
  left: -60px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 860px) {
  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }

  .lightbox-close {
    top: 8px;
    right: 8px;
  }

  .lightbox-img {
    max-height: 68vh;
  }
}

/* ═══════════════════════════════════════════════
   PAGINA CHI SIAMO (GIUSI MARIA VENEZIA)
   NESSUNA IMMAGINE TAGLIATA: HEIGHT AUTO!
═══════════════════════════════════════════════ */
.giusi-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.35fr;
  gap: 36px;
  align-items: flex-start;
  padding: 44px 0 20px;
}

@media (max-width: 880px) {
  .giusi-grid {
    grid-template-columns: 1fr;
  }
}

/* LA FOTO DI GIUSI: PROPORZIONE NATURALE, ZERO TAGLI */
.giusi-card-photo {
  background: #fff;
  border-radius: var(--raggio-lg);
  border: 2px solid var(--bordo);
  overflow: hidden;
  box-shadow: var(--ombra-soft);
}

.giusi-card-photo img {
  width: 100%;
  height: auto;
  /* Zero tagli: mostra tutta la locandina con il testo sopra e sotto! */
  display: block;
  object-fit: contain;
}

.giusi-photo-meta {
  padding: 16px 20px;
  background: #fff;
  text-align: center;
  border-top: 1px solid var(--bordo-soft);
}

.giusi-photo-meta h4 {
  font-size: 1.15rem;
  color: var(--primario);
}

.giusi-photo-meta p {
  font-size: 0.84rem;
  color: var(--testo-mutato);
  font-weight: 600;
}

.giusi-text-box {
  background: #fff;
  border-radius: var(--raggio-lg);
  border: 1.5px solid var(--bordo);
  padding: 34px 30px;
  box-shadow: var(--ombra-soft);
}

.giusi-text-box h2 {
  font-size: 1.8rem;
  color: var(--primario);
  margin-bottom: 12px;
}

.giusi-lead {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--testo);
  line-height: 1.7;
  margin-bottom: 14px;
}

.giusi-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 20px;
}

.giusi-tag {
  background: var(--oro-soft);
  border: 1px solid rgba(184, 125, 24, 0.35);
  color: var(--oro-scuro);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 14px;
  display: inline-block;
  line-height: 1.35;
  word-break: break-word;
}

.giusi-text-box p {
  font-size: 0.96rem;
  color: var(--testo-medio);
  line-height: 1.7;
  margin-bottom: 14px;
}

/* SEZIONI STRUTTURATE DEL NUOVO TESTO "CHI È GIUSI" */
.about-feature-card {
  background: #fff;
  border-radius: var(--raggio-lg);
  border: 1.5px solid var(--bordo);
  padding: 32px 30px;
  box-shadow: var(--ombra-soft);
  margin-top: 24px;
  margin-bottom: 24px;
}

.about-feature-card h3 {
  font-size: 1.45rem;
  color: var(--primario);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--bg-subtle);
}

.about-feature-intro {
  font-size: 1rem;
  color: var(--testo-medio);
  line-height: 1.7;
  margin-bottom: 22px;
}

.about-pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}

@media (max-width: 768px) {
  .about-pillars-grid {
    grid-template-columns: 1fr;
  }
}

.about-pillar-box {
  background: var(--bg-crema);
  border: 1.5px solid var(--bordo-soft);
  border-radius: var(--raggio-md);
  padding: 18px 20px;
  transition: var(--trans);
  display: flex;
  flex-direction: column;
}

.about-pillar-box:hover {
  border-color: var(--oro);
  box-shadow: var(--ombra-soft);
  transform: translateY(-2px);
}

.pillar-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.pillar-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.pillar-header h4 {
  font-size: 1.05rem;
  color: var(--primario);
  margin: 0;
}

.about-pillar-box p {
  font-size: 0.91rem;
  color: var(--testo-medio);
  line-height: 1.6;
  margin: 0;
}

.about-photos-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 14px;
}

.about-photos-row .gallery-item {
  width: 100%;
  height: 330px;
  aspect-ratio: auto;
  border-radius: var(--raggio-md);
  overflow: hidden;
  border: 1.5px solid var(--bordo);
  box-shadow: var(--ombra-soft);
  margin: 0 auto;
}

.about-photos-row .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-photos-row .gallery-item img.about-photo-corso {
  object-position: center 8%;
}

.about-photos-row .gallery-item img.about-photo-lagotto {
  object-position: center 34%;
}

@media (max-width: 640px) {
  .about-photos-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .about-photos-row .gallery-item {
    height: 250px;
  }
}

.about-duo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 50px;
}

@media (max-width: 820px) {
  .about-duo-grid {
    grid-template-columns: 1fr;
  }
}

.about-section-card {
  background: #fff;
  border-radius: var(--raggio-lg);
  border: 1.5px solid var(--bordo);
  padding: 30px 26px;
  box-shadow: var(--ombra-soft);
  display: flex;
  flex-direction: column;
}

.about-section-card h3 {
  font-size: 1.3rem;
  color: var(--primario);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--bg-subtle);
}

.about-section-card p {
  font-size: 0.95rem;
  color: var(--testo-medio);
  line-height: 1.65;
  margin-bottom: 12px;
}

.about-section-card ul {
  margin-left: 18px;
  margin-bottom: 16px;
  font-size: 0.92rem;
  color: var(--testo-medio);
}

.about-section-card li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.about-catio-box {
  margin-top: auto;
  padding: 16px 20px;
  background: var(--verde-bosco-soft);
  border-left: 3px solid var(--verde-bosco);
  border-radius: 0 8px 8px 0;
  font-size: 0.91rem;
  color: var(--testo);
  line-height: 1.6;
}

.about-catio-box strong {
  color: var(--verde-bosco);
}

.about-quote-box {
  margin-top: auto;
  padding: 16px 20px;
  background: var(--oro-soft);
  border-left: 3px solid var(--oro);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  font-size: 0.92rem;
  color: var(--primario);
  line-height: 1.65;
}

/* DIPLOMI PULITI: NESSUN TESTO TIPO #1 */
.diploma-item-clean {
  background: #fff;
  border-radius: 12px;
  border: 1.5px solid var(--bordo);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--ombra-soft);
  cursor: pointer;
  position: relative;
  transition: var(--trans);
}

.diploma-item-clean:hover {
  transform: translateY(-3px);
  border-color: var(--oro);
  box-shadow: var(--ombra-hover);
}

.diploma-item-clean img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.diploma-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, transparent 50%);
  opacity: 0;
  display: flex;
  align-items: flex-end;
  padding: 10px;
  transition: opacity 0.2s ease;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: 'Fredoka', sans-serif;
}

.diploma-item-clean:hover .diploma-item-overlay {
  opacity: 1;
}

/* ═══════════════════════════════════════════════
   PAGINA SCUOLA CINOFILA & POSTER INTERI
═══════════════════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 26px 0 40px;
}

.service-card {
  background: #fff;
  border-radius: var(--raggio-md);
  border: 1.5px solid var(--bordo);
  padding: 22px;
  box-shadow: var(--ombra-soft);
  display: flex;
  flex-direction: column;
  transition: var(--trans);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--verde-wa);
  box-shadow: var(--ombra-hover);
}

.service-card-title {
  font-size: 1.2rem;
  color: var(--primario);
  margin-bottom: 6px;
}

.service-card-desc {
  font-size: 0.92rem;
  color: var(--testo-medio);
  line-height: 1.55;
  margin-bottom: 14px;
  flex-grow: 1;
}

.service-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--verde-bosco-soft);
  color: var(--verde-bosco);
  font-family: 'Fredoka', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 18px;
  border: 1px solid rgba(30, 99, 56, 0.2);
  transition: var(--trans);
  align-self: flex-start;
}

.service-card-btn:hover {
  background: var(--verde-wa);
  color: #fff;
}

/* POSTER INTERI: MOSTRANO TUTTO IL TESTO SENZA TAGLIARE */
.posters-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin-top: 24px;
  align-items: start;
}

@media (max-width: 800px) {
  .posters-row {
    grid-template-columns: 1fr;
  }
}

.poster-card {
  background: #fff;
  border-radius: var(--raggio-lg);
  border: 2px solid var(--bordo);
  overflow: hidden;
  box-shadow: var(--ombra-soft);
  padding: 10px;
}

.poster-card img {
  width: 100%;
  height: auto;
  /* Zero tagli! Mostra l'intera locandina integra */
  object-fit: contain;
  border-radius: 12px;
}

/* ═══════════════════════════════════════════════
   CONTATTI & FOOTER
═══════════════════════════════════════════════ */
.contacts-section {
  padding: 55px 0;
  background: #fff;
  border-top: 1px solid var(--bordo);
}

.contacts-card {
  background: var(--bg-crema);
  border-radius: var(--raggio-lg);
  border: 2px solid var(--oro);
  padding: 32px 28px;
  box-shadow: var(--ombra-soft);
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  gap: 24px;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .contacts-card {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 26px 20px;
  }
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-bubble {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--oro);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 1.1rem;
  color: var(--testo);
  margin-bottom: 2px;
}

.contact-item p {
  font-size: 0.92rem;
  color: var(--testo-medio);
  font-weight: 600;
  line-height: 1.5;
}

footer {
  background: #17191d;
  color: #e5e7eb;
  text-align: center;
  padding: 36px 20px 26px;
  font-family: 'Fredoka', sans-serif;
}

footer p {
  margin-bottom: 4px;
  font-size: 1rem;
}

footer .footer-sub {
  font-size: 0.84rem;
  opacity: 0.7;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

@media (max-width: 600px) {
  .brand img {
    height: 48px;
    max-width: 130px;
  }

  .brand-title {
    font-size: 1.05rem;
  }

  .brand-subtitle {
    font-size: 0.68rem;
  }
}

/* ═══════════════════════════════════════════════
   MOTTO UFFICIALE & RICONOSCIMENTI ENCI / FCI
   ═══════════════════════════════════════════════ */
/* Motto Ufficiale Integrato */
.giusi-motto-box {
  background: linear-gradient(135deg, #fffdf8 0%, #fbf5ea 100%);
  border-left: 4px solid var(--oro);
  border-radius: 0 var(--raggio-md) var(--raggio-md) 0;
  padding: 16px 20px;
  margin: 16px 0 20px;
  box-shadow: 0 4px 14px rgba(184, 125, 24, 0.08);
}

.giusi-motto-tag {
  display: inline-block;
  background: var(--oro);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 8px;
}

.giusi-motto-text {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.15rem;
  color: var(--primario);
  font-weight: 600;
  line-height: 1.45;
  margin: 0;
}

/* Box Riconoscimento ENCI & FCI */
.enci-fci-banner {
  background: #ffffff;
  border: 2px solid var(--bordo);
  border-radius: var(--raggio-lg);
  padding: 24px 28px;
  box-shadow: var(--ombra-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin: 24px auto 36px;
  max-width: 1080px;
}

.enci-fci-logos {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.enci-fci-logo-item {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--bordo-soft);
  border-radius: 10px;
  padding: 6px 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.enci-fci-logo-item img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.enci-fci-text {
  flex: 1;
  min-width: 260px;
}

.enci-fci-tag {
  display: inline-block;
  background: #fdf2f2;
  color: var(--primario);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 4px;
  border: 1px solid rgba(140, 29, 29, 0.2);
}

.enci-fci-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--testo);
  margin-bottom: 4px;
}

.enci-fci-desc {
  font-size: 0.9rem;
  color: var(--testo-medio);
  line-height: 1.5;
}

/* Badge Vantaggi Cuccioli: Consegna Gratuita + Videochiamata */
.puppy-perks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.puppy-perk-card {
  background: #fff;
  border: 1.5px solid var(--bordo);
  border-radius: var(--raggio-md);
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: var(--trans);
}

.puppy-perk-card:hover {
  transform: translateY(-2px);
  border-color: var(--oro);
  box-shadow: var(--ombra-soft);
}

.puppy-perk-card.highlight {
  border-color: var(--oro);
  background: linear-gradient(145deg, #ffffff 0%, #fffbf2 100%);
}

.puppy-perk-icon {
  font-size: 1.8rem;
  line-height: 1;
  flex-shrink: 0;
}

.puppy-perk-content h4 {
  font-size: 1.02rem;
  color: var(--testo);
  margin-bottom: 4px;
}

.puppy-perk-content p {
  font-size: 0.88rem;
  color: var(--testo-medio);
  line-height: 1.45;
  margin: 0;
}

/* ═══════════════════════════════════════════════
   HERO CTA GROUP & BUTTON SYSTEM (COERENTE & UNIFORME)
═══════════════════════════════════════════════ */
.hero-cta-wrap {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* Pulsante WhatsApp Hero */
.btn-hero-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--verde-wa);
  color: #fff;
  border: 2px solid var(--verde-wa);
  padding: 11px 22px;
  border-radius: 30px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--trans);
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(27, 138, 62, 0.25);
  box-sizing: border-box;
}

.btn-hero-wa:hover {
  background: var(--verde-wa-hover);
  border-color: var(--verde-wa-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(27, 138, 62, 0.35);
}

.btn-hero-wa svg,
.btn-videocall svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

/* Pulsante Videochiamata */
.btn-videocall {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff;
  color: var(--primario);
  border: 2px solid var(--primario);
  padding: 11px 22px;
  border-radius: 30px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--trans);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}

.btn-videocall:hover {
  background: var(--primario);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(140, 29, 29, 0.2);
}

/* Link secondario per la Galleria (Gerarchia chiara, discreto ed elegante) */
.hero-gallery-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primario);
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  padding: 4px 0;
  transition: var(--trans);
  width: fit-content;
}

.hero-gallery-link span.arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.hero-gallery-link:hover {
  color: var(--primario-scuro);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero-gallery-link:hover span.arrow {
  transform: translateY(2px);
}

@media (max-width: 768px) {
  .motto-card {
    padding: 22px 18px;
  }
  .enci-fci-banner {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
  .enci-fci-logos {
    justify-content: center;
  }
  .hero-cta-row {
    flex-direction: column;
    width: 100%;
  }
  .btn-hero-wa,
  .btn-videocall {
    width: 100%;
    justify-content: center;
  }
  .hero-gallery-link {
    justify-content: center;
    width: 100%;
    text-align: center;
    margin-top: 4px;
  }
}

/* ═══════════════════════════════════════════════
   FAQ SEMANTICHE ACCORDION (SEO & SIO SCHEMA.ORG)
   ═══════════════════════════════════════════════ */
.faq-section {
  padding: 55px 0 65px;
  background: var(--bg-crema);
}

.faq-intro {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 36px;
}

.faq-intro h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  color: var(--primario);
  margin-bottom: 8px;
}

.faq-intro p {
  color: var(--testo-medio);
  font-size: 0.98rem;
}

.faq-container {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: #ffffff;
  border: 1.5px solid var(--bordo);
  border-radius: var(--raggio-md);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: var(--trans);
  overflow: hidden;
}

.faq-item[open] {
  border-color: var(--oro);
  box-shadow: 0 6px 20px rgba(184, 125, 24, 0.08);
}

.faq-summary {
  padding: 18px 22px;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--testo);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  user-select: none;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-summary::after {
  content: "+";
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--primario);
  font-weight: 700;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq-item[open] .faq-summary::after {
  content: "−";
  color: var(--oro-scuro);
  transform: rotate(180deg);
}

.faq-content {
  padding: 0 22px 20px;
  color: var(--testo-medio);
  font-size: 0.94rem;
  line-height: 1.65;
  border-top: 1px solid var(--bordo-soft);
  margin-top: -4px;
  padding-top: 14px;
}

.faq-content p {
  margin-bottom: 8px;
}

.faq-content p:last-child {
  margin-bottom: 0;
}