/* ===================================
   DESIGN 6 — "FRESCO"
   ===================================
   Layer caricato dopo designs/design1/css/styles.css (la base comune)
   e prima di moods.css. Si attiva scegliendo "design6" nel campo
   Design del config del rifugio.

   Linguaggio visivo: fondo bianco caldo, verde salvia come colore
   principale (--primary, che i mood possono cambiare), pesca per le
   azioni di dono (--secondary), superfici pastello (menta, pesca,
   cielo), angoli molto morbidi, pulsanti a pillola, forme "blob" che
   ondeggiano. Titoli in Bricolage Grotesque, testo in Inter.

   Le animazioni sono in js/fresh.js (GSAP + ScrollTrigger). Il CSS
   qui sotto descrive la pagina statica e completa: le animazioni
   partono solo con la classe .fr-js su <html> (vedi layout.html.twig).
   =================================== */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,600;12..96,700;12..96,800&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --primary: #2B6F62;          /* verde salvia */
    --primary-dark: #1E5148;
    --primary-light: #3E8F7A;
    --secondary: #F2A65A;        /* pesca: dona, call to action calde */
    --accent: #E3F0EC;           /* menta chiarissima */

    --ink: #1E2B2F;
    --paper: #FBFAF6;
    --mint: #E3F0EC;
    --peach: #FCE3CF;
    --sky: #DCEBF3;
    --sand: #F3F5F2;
    --line: #ECEFEA;
    --line-strong: #D5DED9;

    --bg-cream: var(--paper);
    --bg-white: #FFFFFF;
    --text-dark: var(--ink);
    --text-medium: #4A5A60;
    --text-light: #5F6E74;
    --border: var(--line);
    --shadow: rgba(30, 43, 47, 0.06);
    --shadow-soft: 0 18px 40px rgba(30, 43, 47, .08);
    --shadow-lift: 0 24px 60px rgba(30, 43, 47, .12);

    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Bricolage Grotesque', 'Inter', var(--font-main);

    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --radius-xl: 40px;

    --ease: cubic-bezier(.2, .7, .2, 1);
    --transition: all .3s var(--ease);
}

.theme-fresh {
    background: var(--paper);
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
}

.theme-fresh h1,
.theme-fresh h2,
.theme-fresh h3,
.theme-fresh h4,
.theme-fresh .footer-title,
.theme-fresh .filters-title,
.theme-fresh .cookie-banner-title {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.theme-fresh ::selection {
    background: var(--peach);
    color: var(--ink);
}

.theme-fresh .highlight {
    color: var(--primary);
}

.theme-fresh .hero-title .highlight::after {
    display: none;
}

.theme-fresh a:focus-visible,
.theme-fresh button:focus-visible,
.theme-fresh input:focus-visible,
.theme-fresh select:focus-visible,
.theme-fresh textarea:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
}

/* Etichetta a pillola sopra i titoli */
.theme-fresh .fr-eyebrow,
.theme-fresh .text-block-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--mint);
    color: var(--primary-dark);
    font-size: .875rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

/* ===================================
   BOTTONI — pillole
   =================================== */
.theme-fresh .hero-btn,
.theme-fresh .cta-button,
.theme-fresh .final-btn,
.theme-fresh .view-all-btn,
.theme-fresh .urgent-btn,
.theme-fresh .adopt-button,
.theme-fresh .submit-button,
.theme-fresh .search-submit,
.theme-fresh .newsletter-form button,
.theme-fresh .whatsapp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: .9rem 1.75rem;
    border-radius: 999px;
    border: 1.5px solid var(--primary);
    background: var(--primary);
    color: #fff;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 1rem;
    box-shadow: none;
    transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}

.theme-fresh .hero-btn:hover,
.theme-fresh .cta-button:hover,
.theme-fresh .final-btn:hover,
.theme-fresh .view-all-btn:hover,
.theme-fresh .urgent-btn:hover,
.theme-fresh .adopt-button:hover,
.theme-fresh .submit-button:hover,
.theme-fresh .search-submit:hover,
.theme-fresh .newsletter-form button:hover,
.theme-fresh .whatsapp-button:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

/* Secondo pulsante: bianco con bordo */
.theme-fresh .hero-actions .hero-btn:not(:first-child),
.theme-fresh .hero-btn.secondary,
.theme-fresh .final-btn.secondary,
.theme-fresh .view-all-btn {
    background: #fff;
    color: var(--ink);
    border-color: var(--line-strong);
}

.theme-fresh .hero-actions .hero-btn:not(:first-child):hover,
.theme-fresh .hero-btn.secondary:hover,
.theme-fresh .final-btn.secondary:hover,
.theme-fresh .view-all-btn:hover {
    background: #fff;
    color: var(--ink);
    border-color: var(--ink);
}

/* Dona: pesca */
.theme-fresh .donation-cta .cta-button,
.theme-fresh .donation-page .submit-button {
    background: var(--secondary);
    border-color: var(--secondary);
    color: var(--ink);
}

.theme-fresh .donation-cta .cta-button:hover,
.theme-fresh .donation-page .submit-button:hover {
    background: #E8944A;
    border-color: #E8944A;
    color: var(--ink);
}

.theme-fresh .final-btn.primary::before,
.theme-fresh .adopt-button::before,
.theme-fresh .submit-button::before,
.theme-fresh .whatsapp-button::before,
.theme-fresh .search-submit::before,
.theme-fresh .cta-button::before,
.theme-fresh .hero-btn.primary::before,
.theme-fresh .newsletter-form button::before {
    display: none;
}

/* ===================================
   HEADER
   =================================== */
.theme-fresh .site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(251, 250, 246, .88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    box-shadow: none;
    transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}

.fr-scrolled .theme-fresh .site-header {
    border-bottom-color: var(--line);
    box-shadow: 0 6px 24px rgba(30, 43, 47, .05);
}

.theme-fresh .header-inner {
    height: 80px;
}

.theme-fresh .logo {
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.theme-fresh .logo-mark {
    display: grid;
    place-items: center;
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--primary);
    color: #fff;
    transition: transform .4s var(--ease);
}

.theme-fresh .logo-mark svg {
    width: 24px;
    height: 24px;
}

.theme-fresh .logo:hover .logo-mark {
    transform: rotate(-10deg) scale(1.05);
}

.theme-fresh .main-nav {
    gap: 1.75rem;
    align-items: center;
}

.theme-fresh .main-nav a {
    position: relative;
    padding: 6px 0;
    border: 0;
    font-size: .95rem;
    font-weight: 500;
    color: var(--ink);
}

.theme-fresh .main-nav a:hover,
.theme-fresh .main-nav a.active {
    color: var(--primary);
    border: 0;
}

.theme-fresh .main-nav a.active:not(.nav-donate)::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 3px;
    border-radius: 3px;
    background: var(--primary);
}

.theme-fresh .main-nav a.nav-donate {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 22px;
    border-radius: 999px;
    background: var(--secondary);
    color: var(--ink);
    font-weight: 600;
}

.theme-fresh .main-nav a.nav-donate:hover,
.theme-fresh .main-nav a.nav-donate.active {
    background: #E8944A;
    color: var(--ink);
}

.theme-fresh .nav-toggle span {
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
}

@media (max-width: 768px) {
    .theme-fresh .main-nav {
        top: 80px;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-soft);
        padding: 0 var(--spacing-md);
        align-items: stretch;
    }

    .theme-fresh .nav-toggle-checkbox:checked ~ .main-nav {
        max-height: calc(100vh - 80px);
        max-height: calc(100dvh - 80px);
        padding: 8px var(--spacing-md) 20px;
    }

    .theme-fresh .main-nav a {
        padding: 14px 0;
        border-bottom: 1px solid var(--line);
    }

    .theme-fresh .main-nav a.active:not(.nav-donate)::after {
        display: none;
    }

    .theme-fresh .main-nav a.nav-donate {
        justify-content: center;
        margin-top: 14px;
        border-bottom: 0;
    }
}

/* Barra "sito di esempio" */
.theme-fresh .demo-bar {
    background: var(--ink);
    color: #E9EEEC;
}

.theme-fresh .demo-bar a {
    color: #9FD8C8;
}

/* ===================================
   HERO HOME
   =================================== */
.theme-fresh .fr-hero {
    position: relative;
    padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3.5rem, 7vw, 6rem);
}

.theme-fresh .fr-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.theme-fresh .fr-hero-text {
    position: relative;
    z-index: 2;
}

.theme-fresh .fr-hero-title {
    margin: 1.25rem 0 0;
    font-size: clamp(2.75rem, 6vw, 5.25rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.03em;
    color: var(--ink);
    text-shadow: none;
}

/* Parole divise da fresh.js: ogni parola sale dalla sua "maschera" */
.theme-fresh .fr-word-mask {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    padding-bottom: .08em;
    margin-bottom: -.08em;
}

.theme-fresh .fr-word {
    display: inline-block;
}

.theme-fresh .fr-hero-subtitle {
    margin: 1.75rem 0 0;
    max-width: 34rem;
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-medium);
    opacity: 1;
}

.theme-fresh .fr-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 14px;
    margin: 2.25rem 0 0;
}

.theme-fresh .fr-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 2.5rem 0 0;
}

.theme-fresh .fr-stat {
    display: flex;
    flex-direction: column-reverse;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    background: #fff;
    border: 1px solid var(--line);
}

.theme-fresh .fr-stat-number {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--primary);
}

.theme-fresh .fr-stat-label {
    font-size: .85rem;
    color: var(--text-medium);
}

.theme-fresh .fr-hero-visual {
    position: relative;
    min-height: 520px;
}

.theme-fresh .fr-blob {
    position: absolute;
    display: block;
    pointer-events: none;
}

.theme-fresh .fr-blob--a {
    top: 0;
    right: 4%;
    width: 68%;
    aspect-ratio: 1;
    border-radius: 46% 54% 58% 42% / 48% 42% 58% 52%;
    background: var(--peach);
}

.theme-fresh .fr-blob--b {
    bottom: 2%;
    left: 0;
    width: 50%;
    aspect-ratio: 1;
    border-radius: 58% 42% 40% 60% / 52% 58% 42% 48%;
    background: var(--sky);
}

.theme-fresh .fr-blob--c {
    top: 38%;
    left: 22%;
    width: 22%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--mint);
}

.theme-fresh .fr-hero-card {
    position: absolute;
    z-index: 1;
    display: block;
    padding: 14px;
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-lift);
    color: var(--ink);
}

.theme-fresh .fr-hero-card--main {
    top: 6%;
    right: 8%;
    width: min(330px, 62%);
}

.theme-fresh .fr-hero-card--side {
    bottom: 4%;
    left: 4%;
    width: min(240px, 46%);
}

.theme-fresh .fr-hero-card-img {
    position: relative;
    display: block;
    aspect-ratio: 4 / 4.2;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--peach);
}

.theme-fresh .fr-hero-card--side .fr-hero-card-img {
    aspect-ratio: 4 / 3.2;
    background: var(--sky);
}

.theme-fresh .fr-hero-card-img img,
.theme-fresh .fr-hero-card-img picture {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.theme-fresh .fr-hero-card-img picture img {
    position: static;
}

.theme-fresh .fr-hero-card-empty {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--primary);
}

.theme-fresh .fr-hero-card-empty svg {
    width: 34%;
    height: auto;
    opacity: .5;
}

.theme-fresh .fr-hero-card-info {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    padding: 14px 6px 4px;
    color: var(--ink);
}

.theme-fresh .fr-hero-card-info strong {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
}

.theme-fresh .fr-hero-card-info span {
    font-size: .85rem;
    color: var(--text-medium);
}

.theme-fresh .fr-paw {
    position: absolute;
    z-index: 2;
    display: block;
    pointer-events: none;
}

.theme-fresh .fr-paw svg {
    width: 100%;
    height: 100%;
}

.theme-fresh .fr-paw--a {
    top: 0;
    left: 12%;
    width: 56px;
    height: 56px;
    color: var(--secondary);
}

.theme-fresh .fr-paw--b {
    bottom: 2%;
    right: 6%;
    width: 40px;
    height: 40px;
    color: var(--primary);
}

@media (max-width: 900px) {
    .theme-fresh .fr-hero-grid {
        grid-template-columns: 1fr;
    }

    .theme-fresh .fr-hero-visual {
        min-height: 440px;
    }
}

@media (max-width: 520px) {
    .theme-fresh .fr-hero-visual {
        min-height: 380px;
    }

    .theme-fresh .fr-hero-card--main {
        right: 2%;
        width: 70%;
    }

    .theme-fresh .fr-hero-card--side {
        width: 50%;
    }
}

/* Nastro scorrevole */
.theme-fresh .fr-marquee {
    overflow: hidden;
    padding: 18px 0;
    background: var(--primary);
    color: #fff;
}

.theme-fresh .fr-marquee-track {
    display: flex;
    gap: 3rem;
    width: max-content;
    white-space: nowrap;
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 2.2vw, 1.65rem);
    font-weight: 700;
}

.theme-fresh .fr-marquee .container input,
.theme-fresh .fr-marquee .container .pimcore_editable {
    color: var(--ink);
}

/* Prima che GSAP parta: nasconde gli elementi dell'hero che entrano.
   Se lo script non arriva, l'animazione di riserva li mostra dopo 2,5 s. */
.fr-js .theme-fresh .fr-hero-pop,
.fr-js .theme-fresh .fr-hero-title,
.fr-js .theme-fresh .fr-hero-card,
.fr-js .theme-fresh .fr-blob,
.fr-js .theme-fresh .fr-paw {
    visibility: hidden;
    animation: frReveal 0s 2.5s forwards;
}

.fr-ready .theme-fresh .fr-hero-pop,
.fr-ready .theme-fresh .fr-hero-title,
.fr-ready .theme-fresh .fr-hero-card,
.fr-ready .theme-fresh .fr-blob,
.fr-ready .theme-fresh .fr-paw {
    animation: none;
}

@keyframes frReveal {
    to { visibility: visible; }
}

/* ===================================
   INTESTAZIONI DI SEZIONE
   =================================== */
.theme-fresh .section-header {
    text-align: left;
    max-width: 44rem;
    margin-bottom: 2.75rem;
}

.theme-fresh .section-header h2,
.theme-fresh .why-adopt-content h2,
.theme-fresh .urgent-header h2,
.theme-fresh .text-block-title {
    font-size: clamp(2.1rem, 4vw, 3.25rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0 0 .75rem;
}

.theme-fresh .section-header p {
    color: var(--text-medium);
    font-size: 1.1rem;
    margin: 0;
}

/* Sezioni: niente texture, solo spazio e superfici pastello */
.theme-fresh .featured-pets,
.theme-fresh .how-it-works,
.theme-fresh .support-section,
.theme-fresh .testimonials,
.theme-fresh .why-adopt,
.theme-fresh .urgent-section,
.theme-fresh .events-section,
.theme-fresh .text-block {
    background: transparent;
    padding: clamp(4rem, 8vw, 7rem) 0;
}

.theme-fresh .how-it-works,
.theme-fresh .testimonials {
    background: #fff;
}

.theme-fresh .how-it-works::before,
.theme-fresh .support-section::before,
.theme-fresh .hero::before,
.theme-fresh .hero::after {
    display: none;
}

/* ===================================
   CARD ANIMALI
   =================================== */
.theme-fresh .dogs-grid,
.theme-fresh .featured-grid {
    gap: 28px;
}

.theme-fresh .featured-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.theme-fresh .dog-card,
.theme-fresh .featured-card {
    position: relative;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: none;
    overflow: hidden;
    transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}

.theme-fresh .dog-card:hover,
.theme-fresh .featured-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}

.theme-fresh .card-image,
.theme-fresh .featured-image {
    position: relative;
    padding-bottom: 0;
    height: auto;
    aspect-ratio: 4 / 3.4;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--peach);
}

.theme-fresh .dog-card:nth-child(3n+2) .card-image,
.theme-fresh .featured-card:nth-child(3n+2) .featured-image {
    background: var(--sky);
}

.theme-fresh .dog-card:nth-child(3n) .card-image,
.theme-fresh .featured-card:nth-child(3n) .featured-image {
    background: var(--mint);
}

.theme-fresh .card-image img,
.theme-fresh .featured-image img {
    transition: transform .8s var(--ease);
}

.theme-fresh .dog-card:hover .card-image img,
.theme-fresh .featured-card:hover .featured-image img {
    transform: scale(1.05);
}

.theme-fresh .card-content,
.theme-fresh .featured-info {
    padding: 18px 8px 8px;
}

.theme-fresh .dog-name,
.theme-fresh .featured-info h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 8px;
}

.theme-fresh .dog-info {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.theme-fresh .info-badge {
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--sand);
    font-size: .8rem;
    font-weight: 600;
    color: var(--ink);
}

.theme-fresh .pet-details {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    color: var(--text-medium);
    font-size: .92rem;
}

.theme-fresh .urgent-badge,
.theme-fresh .pet-type-badge {
    top: 12px;
    border-radius: 999px;
    border: 0;
    box-shadow: none;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    padding: 6px 12px;
}

.theme-fresh .urgent-badge {
    right: 12px;
    background: #fff;
    color: #B4371F;
    animation: none;
}

.theme-fresh .pet-type-badge {
    bottom: auto;
    left: 12px;
    background: rgba(255, 255, 255, .94);
    color: var(--primary-dark);
}

.theme-fresh .placeholder-image svg path,
.theme-fresh .no-results svg path {
    fill: var(--primary);
    opacity: .4;
}

.theme-fresh .featured-placeholder {
    background: transparent;
}

.theme-fresh .section-cta {
    margin-top: 2.5rem;
}

/* ===================================
   CARD GENERICHE
   =================================== */
.theme-fresh .step-card,
.theme-fresh .support-card,
.theme-fresh .testimonial-card,
.theme-fresh .urgent-card,
.theme-fresh .search-card,
.theme-fresh .article-card,
.theme-fresh .no-results,
.theme-fresh .contact-form-wrapper,
.theme-fresh .contact-info-card,
.theme-fresh .social-media-card,
.theme-fresh .quick-info-box,
.theme-fresh .faq-item,
.theme-fresh .donation-form-wrapper,
.theme-fresh .donation-info-box,
.theme-fresh .donation-result-card,
.theme-fresh .demo-for-sale-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: none;
    transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}

.theme-fresh .support-card:hover,
.theme-fresh .testimonial-card:hover,
.theme-fresh .urgent-card:hover,
.theme-fresh .article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}

.theme-fresh .support-card::before {
    display: none;
}

.theme-fresh .support-card.highlight {
    background: var(--mint);
    border-color: var(--mint);
    color: var(--ink);
}

/* La base di design1 mette il testo bianco sulla card in evidenza:
   qui il fondo è menta chiaro, quindi testo scuro come le altre card */
.theme-fresh .support-card.highlight h3 {
    color: var(--ink);
}

.theme-fresh .support-card.highlight p {
    color: var(--text-medium);
}

.theme-fresh .support-card.highlight .support-link {
    color: var(--primary-dark);
}

/* Come funziona: numeri tondi e linea che si riempie (fresh.js) */
.theme-fresh .steps-grid {
    position: relative;
    gap: 32px;
}

.theme-fresh .fr-steps-line {
    position: absolute;
    top: 32px;
    left: 32px;
    right: 32px;
    height: 4px;
    border-radius: 4px;
    background: var(--line);
    pointer-events: none;
}

.theme-fresh .fr-steps-line span {
    display: block;
    height: 100%;
    border-radius: 4px;
    background: var(--primary);
    transform-origin: left center;
}

.theme-fresh .step-card {
    position: relative;
    z-index: 1;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
}

.theme-fresh .step-card:hover {
    transform: none;
    box-shadow: none;
}

.theme-fresh .step-number {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 0 1.5rem;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    box-shadow: 0 0 0 8px #fff;
}

.theme-fresh .step-card:last-child .step-number {
    background: var(--secondary);
    color: var(--ink);
}

.theme-fresh .step-icon {
    font-size: 2rem;
    margin-bottom: .75rem;
}

.theme-fresh .step-card h3 {
    font-size: 1.4rem;
}

@media (max-width: 760px) {
    .theme-fresh .fr-steps-line {
        display: none;
    }
}

/* Perché adottare */
.theme-fresh .why-adopt-image,
.theme-fresh .why-adopt-image img,
.theme-fresh .main-image,
.theme-fresh .article-hero-image,
.theme-fresh .text-block-media img {
    border-radius: var(--radius-xl);
    box-shadow: none;
    overflow: hidden;
}

.theme-fresh .image-decoration {
    background: var(--peach);
    border-radius: 46% 54% 58% 42% / 48% 42% 58% 52%;
}

.theme-fresh .reason-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--mint);
    box-shadow: none;
    border: 0;
}

.theme-fresh .reason-item:nth-child(2) .reason-icon { background: var(--peach); }
.theme-fresh .reason-item:nth-child(3) .reason-icon { background: var(--sky); }

/* Testimonianze */
.theme-fresh .testimonial-card {
    padding: 2rem;
}

.theme-fresh .testimonial-text {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--ink);
}

.theme-fresh .stars {
    color: var(--secondary);
}

.theme-fresh .author-avatar {
    background: var(--mint);
    color: var(--primary-dark);
}

/* Casi urgenti */
.theme-fresh .urgent-card {
    overflow: hidden;
}

.theme-fresh .urgent-image {
    background: var(--peach);
}

.theme-fresh .urgent-badge-large {
    border-radius: 999px;
    background: #fff;
    color: #B4371F;
    box-shadow: none;
}

/* Ricerca rapida */
.theme-fresh .quick-search {
    background: transparent;
}

.theme-fresh .search-card {
    padding: 1.75rem;
    box-shadow: var(--shadow-soft);
}

/* ===================================
   HERO INTERNE (cani, gatti, articoli, eventi, dona, contatti…)
   =================================== */
.theme-fresh .hero {
    position: relative;
    overflow: hidden;
    background: transparent;
    color: var(--ink);
    text-align: left;
    padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2rem, 4vw, 3rem);
    margin: 0 0 1rem;
}

.theme-fresh .hero > .container,
.theme-fresh .hero > .hero-content {
    position: relative;
    z-index: 1;
}

/* Titolo e sottotitolo allineati al contenuto della pagina (stesso
   contenitore di filtri, card e header), non al bordo della finestra */
.theme-fresh .hero > .hero-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Blob decorativo dietro al titolo, aggiunto da fresh.js (fr-hero-blob),
   anche lui dentro i margini del contenitore */
.theme-fresh .fr-hero-blob {
    position: absolute;
    top: -60px;
    right: max(var(--spacing-md), calc((100% - var(--container-width)) / 2 + var(--spacing-md)));
    width: clamp(160px, 22vw, 280px);
    aspect-ratio: 1;
    border-radius: 58% 42% 40% 60% / 52% 58% 42% 48%;
    background: var(--sky);
    pointer-events: none;
}

.theme-fresh .events-page .fr-hero-blob,
.theme-fresh .hero.fr-hero--peach .fr-hero-blob {
    background: var(--peach);
}

.theme-fresh .donation-page .fr-hero-blob {
    background: var(--mint);
}

.theme-fresh .hero-content h1 {
    font-size: clamp(2.6rem, 5.5vw, 4.75rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.03em;
    max-width: 18ch;
    color: var(--ink);
}

.theme-fresh .hero-content p {
    margin: 1rem 0 0;
    font-size: 1.2rem;
    color: var(--text-medium);
    max-width: 52ch;
    opacity: 1;
}

.theme-fresh .breadcrumb,
.theme-fresh .breadcrumb a {
    color: var(--text-medium);
}

.theme-fresh .breadcrumb a:hover {
    color: var(--primary);
}

/* ===================================
   LISTING CANI / GATTI: filtri a pillole
   =================================== */
.theme-fresh .content-wrapper {
    gap: 2.5rem;
}

.theme-fresh .filters-sidebar {
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: none;
    top: 104px;
}

.theme-fresh .filters-header {
    border-bottom: 1px solid var(--line);
    padding-bottom: 12px;
}

.theme-fresh .filters-header h3,
.theme-fresh .filters-header .filters-title {
    font-size: 1.15rem;
}

.theme-fresh .reset-filters {
    text-decoration: none;
    font-size: .875rem;
    font-weight: 600;
    color: var(--primary);
}

.theme-fresh .filter-group > label:first-child {
    font-size: .9rem;
    font-weight: 600;
    color: var(--ink);
}

.theme-fresh .search-input,
.theme-fresh .sort-select,
.theme-fresh .filter-item select {
    min-height: 48px;
    border: 1.5px solid var(--line-strong);
    border-radius: 14px;
    padding: 10px 16px;
    background: #fff;
}

.theme-fresh .search-input:focus,
.theme-fresh .sort-select:focus,
.theme-fresh .filter-item select:focus {
    border-color: var(--primary);
    box-shadow: none;
}

.theme-fresh .filters-sidebar .checkbox-group {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
}

.theme-fresh .filters-sidebar .checkbox-label {
    position: relative;
    gap: 0;
}

.theme-fresh .filters-sidebar .checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.theme-fresh .filters-sidebar .checkbox-label span {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 16px;
    border: 1.5px solid var(--line-strong);
    border-radius: 999px;
    background: #fff;
    font-size: .875rem;
    font-weight: 600;
    color: var(--ink);
    transition: all .2s var(--ease);
}

.theme-fresh .filters-sidebar .checkbox-label:hover span {
    border-color: var(--primary);
}

.theme-fresh .filters-sidebar .checkbox-label input:checked + span {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.theme-fresh .filters-sidebar .checkbox-label input:focus-visible + span {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

.theme-fresh .results-count span {
    color: var(--primary);
    font-weight: 700;
}

.theme-fresh .filter-toggle {
    min-height: 44px;
    background: #fff;
    border: 1.5px solid var(--line-strong);
    border-radius: 999px;
    box-shadow: none;
    color: var(--ink);
}

.theme-fresh .pagination-link {
    min-width: 44px;
    min-height: 44px;
    border: 1.5px solid var(--line-strong);
    border-radius: 999px;
    box-shadow: none;
    background: #fff;
}

.theme-fresh .pagination-link:hover,
.theme-fresh .pagination-link.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ===================================
   DETTAGLIO ANIMALE
   =================================== */
.theme-fresh .dog-name {
    letter-spacing: -0.02em;
}

.theme-fresh .dog-header .dog-name {
    font-size: clamp(2.6rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1;
}

.theme-fresh .main-image {
    background: var(--peach);
}

.theme-fresh .thumbnail {
    border-radius: var(--radius-sm);
    border: 3px solid transparent;
    overflow: hidden;
    transition: border-color .2s var(--ease), transform .2s var(--ease);
}

.theme-fresh .thumbnail:hover,
.theme-fresh .thumbnail.active {
    border-color: var(--primary);
}

.theme-fresh .quick-info,
.theme-fresh .info-section,
.theme-fresh .story-section,
.theme-fresh .character-section,
.theme-fresh .adoption-cta {
    border-radius: var(--radius-lg);
}

.theme-fresh .info-item {
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #fff;
}

.theme-fresh .story-section {
    padding: clamp(1.5rem, 4vw, 2.5rem);
    background: var(--peach);
}

.theme-fresh .story-section h2,
.theme-fresh .story-section h3 {
    color: var(--ink);
}

.theme-fresh .adoption-cta {
    padding: clamp(1.5rem, 4vw, 2.5rem);
    background: var(--mint);
}

.theme-fresh .article-badge,
.theme-fresh .character-tag {
    padding: 6px 12px;
    border: 0;
    border-radius: 999px;
    background: var(--mint);
    color: var(--primary-dark);
    font-weight: 600;
}

.theme-fresh .modal-content {
    border-radius: var(--radius-lg);
}

/* ===================================
   FORM (adozione, contatti, dona)
   =================================== */
.theme-fresh .form-group input,
.theme-fresh .form-group select,
.theme-fresh .form-group textarea,
.theme-fresh .contact-form input,
.theme-fresh .contact-form select,
.theme-fresh .contact-form textarea,
.theme-fresh .adoption-form input,
.theme-fresh .adoption-form select,
.theme-fresh .adoption-form textarea {
    min-height: 48px;
    padding: 12px 16px;
    border: 1.5px solid var(--line-strong);
    border-radius: 14px;
    background: #fff;
    color: var(--ink);
}

.theme-fresh .form-group textarea,
.theme-fresh .contact-form textarea,
.theme-fresh .adoption-form textarea {
    min-height: 120px;
}

.theme-fresh .form-group input:focus,
.theme-fresh .form-group select:focus,
.theme-fresh .form-group textarea:focus,
.theme-fresh .contact-form input:focus,
.theme-fresh .contact-form select:focus,
.theme-fresh .contact-form textarea:focus,
.theme-fresh .adoption-form input:focus,
.theme-fresh .adoption-form select:focus,
.theme-fresh .adoption-form textarea:focus {
    border-color: var(--primary);
    box-shadow: none;
}

.theme-fresh .form-group label {
    font-weight: 600;
    color: var(--ink);
}

.theme-fresh input[type="checkbox"],
.theme-fresh input[type="radio"] {
    accent-color: var(--primary);
}

.theme-fresh .contact-icon {
    background: var(--mint);
    color: var(--primary-dark);
    border-radius: 14px;
}

/* ===================================
   DONAZIONI — importi e metodi a pillole
   =================================== */
.theme-fresh .donation-form-wrapper {
    padding: clamp(1.5rem, 4vw, 2.5rem);
    box-shadow: var(--shadow-lift);
    border: 0;
}

.theme-fresh .donation-step legend {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ink);
}

.theme-fresh .amount-options {
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 10px;
}

.theme-fresh .amount-option span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 10px;
    border: 1.5px solid var(--line-strong);
    border-radius: 16px;
    background: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--ink);
}

.theme-fresh .amount-option:hover span {
    border-color: var(--primary);
}

.theme-fresh .amount-option input:checked + span {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.theme-fresh .amount-option input:focus-visible + span,
.theme-fresh .provider-option:has(input:focus-visible) {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

.theme-fresh .provider-option {
    border: 1.5px solid var(--line-strong);
    border-radius: 16px;
    background: #fff;
}

.theme-fresh .provider-option:has(input:checked) {
    border-color: var(--primary);
    background: var(--mint);
    color: var(--primary-dark);
}

.theme-fresh .custom-amount-input input {
    border-radius: 14px;
}

.theme-fresh .donation-info-box {
    padding: clamp(1.5rem, 4vw, 2rem);
    background: var(--peach);
    border-color: var(--peach);
}

.theme-fresh .donation-impact li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(30, 43, 47, .08);
}

.theme-fresh .donation-impact strong {
    color: var(--primary-dark);
}

.theme-fresh .donation-alert {
    border-radius: var(--radius-md);
}

.theme-fresh .donation-result-icon {
    background: var(--peach);
    color: var(--secondary);
    border-radius: 50%;
}

/* ===================================
   ARTICOLI
   =================================== */
.theme-fresh .articles-grid {
    gap: 28px;
}

.theme-fresh .article-card {
    padding: 14px;
    overflow: hidden;
}

.theme-fresh .article-card-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--sky);
}

.theme-fresh .article-card:nth-child(3n+2) .article-card-image { background: var(--peach); }
.theme-fresh .article-card:nth-child(3n) .article-card-image { background: var(--mint); }

.theme-fresh .article-card-body {
    padding: 18px 8px 8px;
}

.theme-fresh .article-card-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--ink);
}

.theme-fresh .article-date {
    color: var(--text-light);
    font-size: .875rem;
}

.theme-fresh .article-read-more {
    color: var(--primary);
    font-weight: 600;
}

.theme-fresh .article-category {
    min-height: 40px;
    border: 1.5px solid var(--line-strong);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-weight: 600;
}

.theme-fresh .article-category:hover,
.theme-fresh .article-category.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.theme-fresh .article-header h1 {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.05;
}

.theme-fresh .article-lead {
    font-size: 1.25rem;
    color: var(--text-medium);
}

.theme-fresh .article-content {
    font-size: 1.0625rem;
    line-height: 1.75;
}

.theme-fresh .article-content h2,
.theme-fresh .article-content h3 {
    margin-top: 2rem;
}

.theme-fresh .article-content blockquote {
    border-left: 0;
    padding: 1.5rem 1.75rem;
    border-radius: var(--radius-md);
    background: var(--mint);
    color: var(--ink);
}

/* ===================================
   EVENTI
   =================================== */
.theme-fresh .events-grid {
    gap: 24px;
}

.theme-fresh .event-card {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: none;
    overflow: hidden;
    transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}

.theme-fresh .event-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}

.theme-fresh .event-card-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--sky);
}

.theme-fresh .event-card:nth-child(3n+2) .event-card-image { background: var(--mint); }
.theme-fresh .event-card:nth-child(3n) .event-card-image { background: var(--peach); }

.theme-fresh .event-card-placeholder {
    color: var(--primary);
    opacity: .4;
}

.theme-fresh .event-date-badge {
    border: 0;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.theme-fresh .event-date-day {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.75rem;
    color: var(--ink);
}

.theme-fresh .event-date-month {
    color: var(--primary-dark);
    font-weight: 600;
}

.theme-fresh .event-past-badge {
    border-radius: 999px;
    background: #fff;
    color: var(--text-medium);
    font-weight: 600;
}

.theme-fresh .event-card-body {
    padding: 16px 8px 8px;
}

.theme-fresh .event-card-date,
.theme-fresh .event-modal-date {
    color: var(--primary-dark);
    font-size: .875rem;
    font-weight: 600;
}

.theme-fresh .event-card-title,
.theme-fresh .event-modal-title {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.theme-fresh .event-card-location,
.theme-fresh .event-modal-location {
    color: var(--text-medium);
    font-weight: 500;
}

.theme-fresh .event-card-more {
    color: var(--primary);
    font-weight: 600;
}

.theme-fresh .events-block-title {
    font-weight: 800;
}

.theme-fresh .events-month-title {
    color: var(--ink);
    font-family: var(--font-heading);
    font-weight: 700;
}

.theme-fresh .events-month-year {
    color: var(--text-light);
}

.theme-fresh .events-month-title::after {
    background: var(--line);
}

.theme-fresh .event-modal {
    border: 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lift);
}

.theme-fresh .event-modal::backdrop {
    background: rgba(30, 43, 47, .35);
    backdrop-filter: blur(6px);
}

.theme-fresh .event-modal-close {
    border: 1.5px solid var(--line-strong);
    border-radius: 50%;
    box-shadow: none;
}

.theme-fresh .event-modal-close:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

@media (max-width: 640px) {
    .theme-fresh .event-modal {
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }
}

/* ===================================
   CTA / FINAL CTA / NEWSLETTER: riquadri pastello
   =================================== */
.theme-fresh .cta-section,
.theme-fresh .final-cta,
.theme-fresh .newsletter,
.theme-fresh .demo-for-sale {
    background: var(--mint);
    color: var(--ink);
    margin: clamp(3rem, 6vw, 5rem) auto;
    max-width: calc(var(--container-width) - 2 * var(--spacing-md));
    width: calc(100% - 2 * var(--spacing-md));
    border-radius: var(--radius-xl);
    padding: clamp(3rem, 7vw, 4.5rem) clamp(1.25rem, 4vw, 3rem);
}

.theme-fresh .donation-cta,
.theme-fresh .final-cta {
    background: var(--peach);
}

.theme-fresh .cta-section h2,
.theme-fresh .final-cta-content h2,
.theme-fresh .newsletter-text h2 {
    color: var(--ink);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.05;
}

.theme-fresh .cta-section p,
.theme-fresh .final-cta-content p,
.theme-fresh .newsletter-text p,
.theme-fresh .final-cta .contact-info {
    color: var(--text-medium);
    opacity: 1;
}

.theme-fresh .newsletter-form input {
    min-height: 52px;
    border: 1.5px solid var(--line-strong);
    border-radius: 999px;
    background: #fff;
}

/* ===================================
   TESTO LIBERO
   =================================== */
.theme-fresh .text-block--bg-soft {
    background: var(--mint);
}

.theme-fresh .text-block-body {
    font-size: 1.0625rem;
    color: var(--text-medium);
}

.theme-fresh .text-block-body strong {
    color: var(--ink);
}

.theme-fresh .text-block-body ul {
    list-style: none;
    padding-left: 0;
}

.theme-fresh .text-block-body ul li {
    position: relative;
    padding: .35em 0 .35em 2em;
    margin: 0;
}

.theme-fresh .text-block-body ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: .55em;
    width: 1.2em;
    height: 1.2em;
    border-radius: 50%;
    background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B6F62' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-9'/%3E%3C/svg%3E") center / 70% no-repeat;
}

/* ===================================
   FOOTER — scuro, l'unico blocco scuro della pagina
   =================================== */
.theme-fresh .site-footer {
    background: var(--ink);
    color: #C2CDC9;
    margin-top: clamp(4rem, 8vw, 6rem);
    padding-top: clamp(3.5rem, 6vw, 4.5rem);
}

.theme-fresh .footer-brand .footer-title {
    color: #fff;
    font-size: 1.6rem;
    font-weight: 800;
}

.theme-fresh .footer-grid .footer-heading {
    color: #fff;
    font-family: var(--font-main);
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.theme-fresh .footer-links a,
.theme-fresh .footer-contact p,
.theme-fresh .footer-contact a,
.theme-fresh .footer-brand p {
    color: #C2CDC9;
}

.theme-fresh .footer-links a:hover,
.theme-fresh .footer-contact a:hover {
    color: #9FD8C8;
}

.theme-fresh .social-icons a {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .08);
    border: 0;
    color: #fff;
}

.theme-fresh .social-icons a:hover {
    background: var(--secondary);
    color: var(--ink);
    transform: translateY(-2px);
}

.theme-fresh .footer-bottom {
    border-top: 1px solid #34454A;
    color: #A9B6B2;
}

.theme-fresh .footer-bottom a {
    color: #A9B6B2;
}

.theme-fresh .footer-bottom a:hover {
    color: #fff;
}

/* Box newsletter nel footer */
.theme-fresh .footer-newsletter {
    background: transparent;
}

/* ===================================
   COOKIE BANNER
   =================================== */
.theme-fresh .cookie-banner-box {
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lift);
}

.theme-fresh .cookie-btn {
    min-height: 44px;
    border-radius: 999px;
}

/* ===================================
   MOVIMENTO RIDOTTO
   =================================== */
@media (prefers-reduced-motion: reduce) {
    .theme-fresh *,
    .theme-fresh *::before,
    .theme-fresh *::after {
        transition-duration: .01ms !important;
    }
}

/* Box "Lo sapevi?" (WhatsApp) nella pagina contatti: sfondo chiaro, quindi testo scuro
   (in design1 è su un gradiente col testo bianco) */
.theme-fresh .quick-info-box,
.theme-fresh .quick-info-box p,
.theme-fresh .quick-info-box .quick-info-title {
    color: var(--text-dark);
}

.theme-fresh .quick-info-box .quick-info-title svg {
    color: var(--primary);
}
