/*
Theme Name: Una Famiglia Per Sempre
Theme URI: https://unafamigliapersemore.it
Author: Dev Team
Author URI: https://unafamigliapersemore.it
Description: Tema WordPress per associazione italiana di accompagnamento all'adozione nazionale e internazionale.
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: unaperfamiglia
Tags: adoption, italy, association, custom-theme
*/

/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary:        #c1673f;
    --primary-dark:   #a0522d;
    --primary-light:  #f5ede8;
    --primary-xlight: #fdf8f5;
    --black:          #1a1a1a;
    --white:          #ffffff;
    --gray-100:       #faf8f5;
    --gray-200:       #f5f0ea;
    --gray-300:       #ede8e0;
    --gray-400:       #d8d2c8;
    --gray-500:       #aaa49a;
    --gray-600:       #888278;
    --gray-700:       #555;
    --footer-bg:      #1a1a1a;
    --border:         #f0ebe4;
    --font-serif:     'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    --font-sans:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --container:      1200px;
    --transition:     0.25s ease;
    --radius-sm:      2px;
    --radius-md:      4px;
    --radius-lg:      8px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-sans);
    color: var(--black);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: var(--font-sans); }

/* ============================================================
   TYPOGRAPHY
============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    line-height: 1.15;
    color: var(--black);
    font-weight: 400;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.05rem; font-family: var(--font-sans); font-weight: 500; letter-spacing: 0; }

p { margin-bottom: 1rem; line-height: 1.8; }
p:last-child { margin-bottom: 0; }

em { font-style: italic; color: var(--primary); }

.serif { font-family: var(--font-serif); }
.text-muted { color: var(--gray-600); }
.text-center { text-align: center; }
.text-primary { color: var(--primary); }

/* Section labels */
.label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 14px;
}
.label::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 1px;
    background: var(--primary);
}

/* ============================================================
   LAYOUT
============================================================ */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 40px;
}

.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.section-alt { background: var(--gray-100); }
.section-dark { background: var(--footer-bg); }

.section-header { margin-bottom: 56px; }
.section-header.center { text-align: center; max-width: 640px; margin-left: auto; margin-right: auto; margin-bottom: 56px; }
.section-header h2 { margin-bottom: 14px; }
.section-header p { font-size: 1rem; color: var(--gray-600); }

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ============================================================
   BUTTONS
============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    font-family: var(--font-sans);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1.5px solid transparent;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}
.btn-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
}

.btn-outline-dark {
    background: transparent;
    color: var(--black);
    border-color: var(--gray-400);
}
.btn-outline-dark:hover {
    border-color: var(--black);
    color: var(--black);
}

.btn-primary-color {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
.btn-primary-color:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-lg { padding: 15px 36px; font-size: 0.8rem; }
.btn-sm { padding: 9px 20px; font-size: 0.7rem; }

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--primary);
    border-bottom: 1px solid var(--primary);
    padding-bottom: 2px;
    font-weight: 500;
    transition: all var(--transition);
}
.btn-link:hover { gap: 10px; }

/* ============================================================
   NAVBAR
============================================================ */
#navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 0.5px solid var(--border);
    transition: all var(--transition);
}

#navbar.scrolled { box-shadow: 0 1px 20px rgba(0,0,0,0.06); }

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 400;
    color: var(--black);
    letter-spacing: 0.01em;
    line-height: 1.2;
}

.navbar-logo .logo-icon {
    width: 32px;
    height: 32px;
    border: 1.5px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.navbar-logo .logo-icon svg {
    width: 14px;
    height: 14px;
    fill: var(--primary);
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.navbar-nav a {
    padding: 7px 14px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gray-600);
    letter-spacing: 0.02em;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.navbar-nav a:hover { color: var(--black); }

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

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--black);
    transition: all var(--transition);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 0.5px solid var(--border);
    padding: 20px 40px;
    z-index: 999;
}

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

.mobile-nav a {
    display: block;
    padding: 13px 0;
    border-bottom: 0.5px solid var(--border);
    font-size: 0.95rem;
    color: var(--black);
    font-weight: 400;
}

.mobile-nav a:last-of-type { border-bottom: none; }
.mobile-nav .btn { margin-top: 16px; width: 100%; justify-content: center; }

/* ============================================================
   TICKER
============================================================ */
.ticker {
    background: var(--primary);
    padding: 11px 0;
    overflow: hidden;
    white-space: nowrap;
}

.ticker-track {
    display: inline-flex;
    gap: 0;
    animation: ticker-scroll 30s linear infinite;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 40px;
    padding: 0 40px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.9);
}

.ticker-item::after {
    content: '·';
    color: rgba(255,255,255,0.4);
    font-size: 1rem;
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================================
   HERO — Split layout
============================================================ */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    padding-top: 68px;
}

.hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 60px 80px 40px;
    background: var(--white);
    border-right: 0.5px solid var(--border);
}

.hero-left .label { margin-bottom: 24px; }

.hero-left h1 {
    margin-bottom: 20px;
    font-size: clamp(2.4rem, 4vw, 3.8rem);
}

.hero-left p {
    font-size: 1.05rem;
    color: var(--gray-600);
    max-width: 420px;
    margin-bottom: 36px;
    line-height: 1.9;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.hero-right {
    position: relative;
    background: var(--gray-300);
    overflow: hidden;
}

.hero-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-right-overlay {
    position: absolute;
    bottom: 28px;
    left: 28px;
    right: 28px;
}

.hero-caption {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    background: rgba(26,26,26,0.4);
    backdrop-filter: blur(8px);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    display: inline-block;
}

/* ============================================================
   STATS ROW
============================================================ */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    border-top: 0.5px solid var(--border);
    border-bottom: 0.5px solid var(--border);
    background: var(--white);
    max-width: var(--container);
    margin: 0 auto;
}

.stat-item {
    padding: 28px 24px;
    text-align: center;
    border-right: 0.5px solid var(--border);
}

.stat-item:last-child { border-right: none; }

.stat-num {
    font-family: var(--font-serif);
    font-size: 2.6rem;
    font-weight: 400;
    color: var(--black);
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-500);
}

/* ============================================================
   ABOUT — Editorial 2 cols
============================================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    gap: 0;
    max-width: var(--container);
    margin: 0 auto;
    border-top: 0.5px solid var(--border);
    border-bottom: 0.5px solid var(--border);
}

.about-col { padding: 64px 56px; }

.about-divider { background: var(--border); }

.about-col h2 { margin-bottom: 16px; }

.about-col p {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.9;
    margin-bottom: 14px;
}

.val-list { margin-top: 8px; }

.val-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 0.5px solid var(--border);
}

.val-item:last-child { border-bottom: none; }

.val-num {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--gray-400);
    font-weight: 400;
    line-height: 1;
    flex-shrink: 0;
    width: 28px;
    margin-top: 2px;
}

.val-body strong {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--black);
    display: block;
    margin-bottom: 3px;
    font-family: var(--font-sans);
}

.val-body span {
    font-size: 0.82rem;
    color: var(--gray-500);
    line-height: 1.5;
}

/* ============================================================
   PHOTO BAND — Citation pleine largeur
============================================================ */
.photo-band {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-top: 0.5px solid var(--border);
    border-bottom: 0.5px solid var(--border);
}

.photo-band img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.photo-band-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26,26,26,0.55);
}

.photo-band-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 48px 40px;
    max-width: 700px;
}

.photo-band-content blockquote {
    font-family: var(--font-serif);
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-style: italic;
    color: var(--white);
    line-height: 1.4;
    font-weight: 400;
    margin-bottom: 16px;
}

.photo-band-content cite {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    font-style: normal;
}

/* ============================================================
   PERCORSI — Split cards
============================================================ */
.paths-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 0.5px solid var(--border);
}

.path-card {
    position: relative;
    min-height: 440px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    border-right: 0.5px solid var(--border);
    transition: all var(--transition);
}

.path-card:last-child { border-right: none; }

.path-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.path-card:hover img { transform: scale(1.04); }

.path-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26,26,26,0.85) 0%, rgba(26,26,26,0.3) 60%, transparent 100%);
}

.path-content {
    position: relative;
    z-index: 1;
    padding: 32px;
    color: var(--white);
}

.path-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    border: 0.5px solid rgba(255,255,255,0.3);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

.path-content h3 {
    color: var(--white);
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.path-content p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 20px;
    line-height: 1.7;
}

.path-checklist {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 22px;
}

.path-checklist li {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    gap: 8px;
}

.path-checklist li::before {
    content: '→';
    color: var(--primary);
    font-size: 0.75rem;
}

/* ============================================================
   SERVICES — Numbered cards
============================================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 0.5px solid var(--border);
}

.service-card {
    padding: 36px 32px;
    border-right: 0.5px solid var(--border);
    transition: background var(--transition);
}

.service-card:last-child { border-right: none; }
.service-card:hover { background: var(--gray-100); }

.service-num {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--gray-300);
    font-weight: 400;
    line-height: 1;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1rem;
    font-family: var(--font-sans);
    font-weight: 600;
    letter-spacing: 0;
    margin-bottom: 10px;
    color: var(--black);
}

.service-card p {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin: 0;
}

/* ============================================================
   BAMBINI IN ATTESA
============================================================ */
.children-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 0;
    border: 0.5px solid var(--border);
}

.child-card {
    padding: 28px 24px;
    border-right: 0.5px solid var(--border);
    border-bottom: 0.5px solid var(--border);
    text-align: center;
    transition: background var(--transition);
}

.child-card:hover { background: var(--gray-100); }
.child-card:nth-child(3n) { border-right: none; }
.child-card:nth-last-child(-n+3) { border-bottom: none; }

.child-avatar {
    width: 56px;
    height: 56px;
    border: 1.5px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

.child-avatar svg {
    width: 24px;
    height: 24px;
    color: var(--gray-500);
}

.child-age {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 8px;
}

.child-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--black);
}

.child-card p {
    font-size: 0.8rem;
    color: var(--gray-600);
    margin-bottom: 16px;
    line-height: 1.6;
}

/* ============================================================
   WHY US — Grid
============================================================ */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 0;
    border: 0.5px solid var(--border);
}

.why-card {
    padding: 32px 28px;
    border-right: 0.5px solid var(--border);
    border-bottom: 0.5px solid var(--border);
    transition: background var(--transition);
}

.why-card:hover { background: var(--gray-100); }
.why-card:nth-child(3n) { border-right: none; }
.why-card:nth-last-child(-n+3) { border-bottom: none; }

.why-card .icon {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 16px;
    display: block;
}

.why-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 8px;
}

.why-card p {
    font-size: 0.82rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin: 0;
}

/* ============================================================
   TESTIMONIALS
============================================================ */
.testi-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 0;
    border: 0.5px solid var(--border);
}

.testi-card {
    padding: 36px 32px;
    border-right: 0.5px solid var(--border);
    border-bottom: 0.5px solid var(--border);
    transition: background var(--transition);
}

.testi-card:hover { background: var(--gray-100); }
.testi-card:nth-child(2n) { border-right: none; }
.testi-card:nth-last-child(-n+2) { border-bottom: none; }

.testi-stars {
    font-size: 0.85rem;
    color: var(--primary);
    letter-spacing: 3px;
    margin-bottom: 14px;
}

.testi-card blockquote {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-style: italic;
    color: var(--black);
    line-height: 1.7;
    margin-bottom: 16px;
    font-weight: 400;
}

.testi-card cite {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-500);
    font-style: normal;
}

/* ============================================================
   GALLERY
============================================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 3px;
}

.gallery-grid img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: opacity var(--transition);
    cursor: zoom-in;
}

.gallery-grid img:hover { opacity: 0.9; }
.gallery-grid img:first-child { grid-row: 1 / 3; height: 443px; }

/* ============================================================
   IMPACT STRIP
============================================================ */
.impact-strip {
    background: var(--black);
    padding: 56px 0;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 0;
    text-align: center;
}

.impact-item {
    padding: 12px 24px;
    border-right: 0.5px solid rgba(255,255,255,0.08);
}

.impact-item:last-child { border-right: none; }

.impact-num {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 400;
    color: var(--white);
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}

.impact-num span { color: var(--primary); }

.impact-label {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
}

/* ============================================================
   FAQ
============================================================ */
.faq-wrap { max-width: 760px; margin: 0 auto; }

.faq-category { margin-bottom: 48px; }

.faq-cat-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary);
    padding-bottom: 10px;
    border-bottom: 1.5px solid var(--primary);
    margin-bottom: 4px;
    display: block;
}

.faq-item { border-bottom: 0.5px solid var(--border); }

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--black);
    gap: 20px;
    transition: color var(--transition);
    background: none;
    border: none;
    width: 100%;
    text-align: left;
}

.faq-question:hover { color: var(--primary); }

.faq-chevron {
    width: 16px;
    height: 16px;
    color: var(--gray-500);
    flex-shrink: 0;
    transition: transform var(--transition);
}

.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-item.open .faq-question { color: var(--primary); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 400px;
    padding-bottom: 20px;
}

.faq-answer p {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.85;
    margin: 0;
}

/* ============================================================
   RESOURCES
============================================================ */
.resources-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.guide-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 0.5px solid var(--border);
    transition: all var(--transition);
    color: var(--black);
}

.guide-item:hover { padding-left: 6px; }

.guide-item .guide-icon {
    width: 32px;
    height: 32px;
    background: var(--gray-100);
    border: 0.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.guide-item .guide-icon svg {
    width: 16px;
    height: 16px;
    color: var(--primary);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
}

.guide-item span { font-size: 0.875rem; font-weight: 500; flex: 1; }

.guide-item .badge {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--primary-light);
    color: var(--primary);
    padding: 3px 8px;
}

.news-item {
    padding: 14px 0;
    border-bottom: 0.5px solid var(--border);
}

.news-item .date {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 5px;
}

.news-item a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--black);
    transition: color var(--transition);
}

.news-item a:hover { color: var(--primary); }

/* ============================================================
   ETHICS
============================================================ */
.ethics-wrap {
    border: 0.5px solid var(--border);
    padding: 56px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 56px;
    align-items: start;
}

.ethics-intro h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.ethics-intro p {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.8;
    margin: 0;
}

.ethics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.ethics-item h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--black);
}

.ethics-item p {
    font-size: 0.82rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin: 0;
}

/* ============================================================
   CANDIDATURA FORM SECTION
============================================================ */
.candidatura-wrap {
    background: var(--black);
    padding: 88px 0;
}

.candidatura-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: center;
}

.cand-intro .label { color: rgba(255,255,255,0.5); }
.cand-intro .label::before { background: rgba(255,255,255,0.5); }
.cand-intro h2 { color: var(--white); margin-bottom: 16px; }
.cand-intro p { color: rgba(255,255,255,0.55); margin-bottom: 32px; font-size: 0.95rem; }

.cand-points { display: flex; flex-direction: column; gap: 12px; }

.cand-point {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
}

.cand-point::before {
    content: '→';
    color: var(--primary);
    font-size: 0.8rem;
}

.cand-form-wrap {
    background: var(--white);
    padding: 44px;
}

.cand-form-wrap h3 {
    font-size: 1.2rem;
    margin-bottom: 24px;
    font-family: var(--font-serif);
    font-weight: 400;
}

/* ============================================================
   FORMS
============================================================ */
.form-group { margin-bottom: 18px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--gray-700);
    margin-bottom: 7px;
}

label .required { color: var(--primary); margin-left: 2px; }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--gray-400);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: var(--font-sans);
    color: var(--black);
    background: var(--white);
    transition: border-color var(--transition);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--black);
    box-shadow: 0 0 0 3px rgba(26,26,26,0.06);
}

textarea { resize: vertical; min-height: 120px; }

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath fill='%23888' d='M5 6L0 0h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

.form-submit {
    width: 100%;
    padding: 14px;
    background: var(--black);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font-sans);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition);
    margin-top: 8px;
}

.form-submit:hover { background: var(--primary); }

.form-privacy {
    font-size: 0.72rem;
    color: var(--gray-500);
    text-align: center;
    margin-top: 12px;
    line-height: 1.5;
}

.form-privacy a { color: var(--primary); text-decoration: underline; }

/* Contact form */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: start;
}

.contact-info h2 { margin-bottom: 14px; }
.contact-info p { color: var(--gray-600); margin-bottom: 36px; }

.contact-items { display: flex; flex-direction: column; gap: 0; }

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 0.5px solid var(--border);
}

.contact-item:last-child { border-bottom: none; }

.contact-item .ci-icon {
    width: 36px;
    height: 36px;
    border: 0.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item .ci-icon svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
}

.contact-item .ci-text strong {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: 3px;
}

.contact-item .ci-text a,
.contact-item .ci-text span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--black);
}

.contact-form-wrap {
    border: 0.5px solid var(--border);
    padding: 40px;
}

/* ============================================================
   CTA BAND
============================================================ */
.cta-band {
    background: var(--primary-xlight);
    border: 0.5px solid var(--border);
    padding: 56px;
    text-align: center;
    margin: 48px 0;
}

.cta-band h3 { font-size: 1.6rem; margin-bottom: 12px; }
.cta-band p { color: var(--gray-600); margin-bottom: 28px; max-width: 480px; margin-left: auto; margin-right: auto; }
.cta-band .btn-row { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ============================================================
   PAGE HEADER
============================================================ */
.page-header {
    background: var(--gray-100);
    padding: 64px 0 48px;
    margin-top: 68px;
    border-bottom: 0.5px solid var(--border);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--gray-500);
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}

.breadcrumb a { color: var(--primary); font-weight: 500; }
.breadcrumb span { color: var(--gray-400); }

.page-header h1 { font-size: clamp(1.8rem, 3vw, 3rem); margin-bottom: 12px; }
.page-header p { font-size: 1rem; color: var(--gray-600); max-width: 600px; margin: 0; }

/* ============================================================
   STEP ITEMS
============================================================ */
.steps-list { display: flex; flex-direction: column; gap: 0; border: 0.5px solid var(--border); max-width: 800px; margin: 0 auto; }

.step-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 28px 32px;
    border-bottom: 0.5px solid var(--border);
    transition: background var(--transition);
}

.step-item:hover { background: var(--gray-100); }
.step-item:last-child { border-bottom: none; }

.step-num {
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 0.9rem;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 3px;
}

.step-body h4 { font-size: 1rem; margin-bottom: 8px; }
.step-body p { font-size: 0.875rem; color: var(--gray-600); margin-bottom: 10px; }
.step-body ul { list-style: disc; padding-left: 16px; }
.step-body ul li { font-size: 0.82rem; color: var(--gray-600); margin-bottom: 4px; }

/* Info cards */
.info-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; border: 0.5px solid var(--border); margin: 48px 0; }
.info-card { padding: 24px 28px; border-right: 0.5px solid var(--border); }
.info-card:last-child { border-right: none; }
.info-card h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 6px; font-family: var(--font-sans); letter-spacing: 0; }
.info-card p { font-size: 0.82rem; color: var(--gray-600); margin: 0; line-height: 1.6; }

/* ============================================================
   FOOTER
============================================================ */
#footer {
    background: var(--footer-bg);
    color: rgba(255,255,255,0.5);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 0.5px solid rgba(255,255,255,0.06);
}

.footer-brand .brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 1rem;
    font-style: italic;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.35);
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-social { display: flex; gap: 10px; }

.footer-social a {
    width: 32px;
    height: 32px;
    border: 0.5px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.footer-social a:hover { border-color: var(--primary); background: var(--primary); }
.footer-social a svg { width: 14px; height: 14px; fill: rgba(255,255,255,0.6); }

.footer-col h4 {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    margin-bottom: 16px;
    font-family: var(--font-sans);
}

.footer-col a {
    display: block;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.35);
    margin-bottom: 10px;
    transition: color var(--transition);
}

.footer-col a:hover { color: rgba(255,255,255,0.8); }

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.35);
}

.footer-contact-item svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--primary);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
}

.footer-bottom {
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.2);
}

.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: rgba(255,255,255,0.2); transition: color var(--transition); }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.5); }

/* ============================================================
   FLOATING BUTTONS
============================================================ */
.btn-whatsapp {
    position: fixed;
    bottom: 24px; left: 24px;
    z-index: 998;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: white;
    padding: 11px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    box-shadow: 0 4px 20px rgba(37,211,102,0.35);
    transition: all var(--transition);
    text-decoration: none;
}

.btn-whatsapp:hover { transform: translateY(-2px); color: white; }
.btn-whatsapp svg { width: 18px; height: 18px; fill: white; }

.btn-cta-float {
    position: fixed;
    bottom: 24px; right: 24px;
    z-index: 998;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--black);
    color: white;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    transition: all var(--transition);
    text-decoration: none;
}

.btn-cta-float:hover { background: var(--primary); color: white; transform: translateY(-2px); }
.btn-cta-float svg { width: 14px; height: 14px; fill: none; stroke: white; stroke-width: 2; }

/* ============================================================
   COOKIE BANNER
============================================================ */
#cookie-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 9999;
    background: var(--black);
    color: rgba(255,255,255,0.8);
    padding: 18px 40px;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    border-top: 2px solid var(--primary);
}

#cookie-banner.show { display: flex; }
#cookie-banner p { font-size: 0.82rem; margin: 0; flex: 1; min-width: 280px; }
#cookie-banner a { color: var(--primary); text-decoration: underline; }

.cookie-buttons { display: flex; gap: 10px; }

.btn-cookie-accept {
    background: var(--primary);
    color: white;
    padding: 9px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
}

.btn-cookie-decline {
    background: transparent;
    color: rgba(255,255,255,0.5);
    padding: 9px 20px;
    border: 0.5px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    cursor: pointer;
}

/* ============================================================
   ENTRY CONTENT (pages generiche)
============================================================ */
.entry-content { max-width: 760px; margin: 0 auto; padding: 56px 24px; }
.entry-content p { margin-bottom: 1.2rem; line-height: 1.85; }
.entry-content h2 { margin: 2.4rem 0 1rem; font-size: 1.6rem; }
.entry-content h3 { margin: 1.8rem 0 0.8rem; font-size: 1.2rem; }
.entry-content ul, .entry-content ol { padding-left: 24px; margin-bottom: 1.2rem; }
.entry-content ul li { list-style: disc; margin-bottom: 6px; font-size: 0.925rem; color: var(--gray-700); }
.entry-content ol li { list-style: decimal; margin-bottom: 6px; }
.entry-content a { color: var(--primary); text-decoration: underline; }

/* ============================================================
   GRAZIE PAGE
============================================================ */
.grazie-wrap { max-width: 560px; margin: 0 auto; text-align: center; padding: 80px 24px; }
.grazie-icon { width: 64px; height: 64px; border: 1.5px solid var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; }
.grazie-steps { border: 0.5px solid var(--border); padding: 28px; text-align: left; margin: 32px 0; }
.grazie-steps h4 { font-size: 0.875rem; margin-bottom: 16px; font-family: var(--font-sans); font-weight: 600; }
.grazie-step { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.grazie-step-num { width: 22px; height: 22px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 0.65rem; font-weight: 700; color: white; }
.grazie-step p { font-size: 0.82rem; color: var(--gray-600); margin: 0; line-height: 1.6; }

/* Force SVG sizes everywhere — prevent giant icons */
.service-card svg,
.service-card img,
.info-card svg,
.why-card svg,
.child-avatar svg,
.step-num svg,
.guide-item svg,
.contact-item svg,
.footer-contact-item svg,
.val-body svg {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
}

.service-card .card-icon,
.info-card .info-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border: 0.5px solid var(--border);
    margin-bottom: 16px;
}

.service-card .card-icon svg,
.info-card .info-icon svg {
    width: 22px !important;
    height: 22px !important;
    color: var(--primary);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
}
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
    .container { padding: 0 28px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero { min-height: auto; }
    .about-grid { grid-template-columns: 1fr; }
    .about-divider { display: none; }
    .about-col { padding: 40px 28px; }
    .candidatura-grid { grid-template-columns: 1fr; gap: 40px; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .impact-grid { grid-template-columns: repeat(2,1fr); }
    .ethics-wrap { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
    .navbar-nav { display: none; }
    .navbar-cta .btn { display: none; }
    .hamburger { display: flex; }
    .mobile-nav { padding: 20px 24px; }

    .section { padding: 56px 0; }
    .container { padding: 0 20px; }

    .hero { grid-template-columns: 1fr; min-height: auto; }
    .hero-left { padding: 48px 24px; border-right: none; border-bottom: 0.5px solid var(--border); }
    .hero-right { height: 300px; }

    .stats-row { grid-template-columns: repeat(2,1fr); }
    .services-grid { grid-template-columns: 1fr; }
    .service-card { border-right: none; border-bottom: 0.5px solid var(--border); }

    .paths-grid { grid-template-columns: 1fr; }
    .path-card { border-right: none; border-bottom: 0.5px solid var(--border); min-height: 320px; }

    .children-grid { grid-template-columns: 1fr 1fr; }
    .why-grid { grid-template-columns: 1fr 1fr; }
    .testi-grid { grid-template-columns: 1fr; }
    .testi-card { border-right: none; }

    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .gallery-grid img:first-child { grid-row: auto; height: 220px; grid-column: 1 / -1; }

    .impact-grid { grid-template-columns: repeat(2,1fr); }
    .resources-grid { grid-template-columns: 1fr; gap: 40px; }
    .form-row { grid-template-columns: 1fr; }
    .info-cards { grid-template-columns: 1fr; }
    .info-card { border-right: none; border-bottom: 0.5px solid var(--border); }
    .cta-band { padding: 32px 24px; }
    .ethics-wrap { padding: 32px 24px; }
    .cand-form-wrap { padding: 28px 20px; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}

@media (max-width: 480px) {
    h1 { font-size: 2.2rem; }
    .hero-actions { flex-direction: column; align-items: flex-start; gap: 14px; }
    .why-grid { grid-template-columns: 1fr; }
    .children-grid { grid-template-columns: 1fr; }
    .ticker-item { font-size: 0.65rem; }
}

/* ============================================================
   WORDPRESS DEFAULTS
============================================================ */
.screen-reader-text { position: absolute; left: -9999px; }
.aligncenter { text-align: center; }
.alignleft { float: left; margin-right: 20px; }
.alignright { float: right; margin-left: 20px; }
.wp-block-image img { max-width: 100%; height: auto; }
