/* ==============================================
   LE VIE DEL CUORE — page-styles.css
   Supplementary styles for inner pages,
   cookie banner and shared page components
   ============================================== */

/* ——— NAV ACTIVE STATE ——— */
.main-nav a.active {
    color: var(--forest);
    font-weight: 600;
    background: var(--sage-pale);
}

/* ——— COOKIE BANNER ——— */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9000;
    background: var(--text-dark);
    border-top: 2px solid var(--gold);
    padding: 20px 0;
    transform: translateY(100%);
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.cookie-banner.visible  { transform: translateY(0); }
.cookie-banner.hiding   { transform: translateY(100%); }

.cookie-banner-inner {
    width: min(calc(100% - 48px), 1200px);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}
.cookie-banner-text p {
    color: rgba(255,255,255,0.75);
    font-size: 0.88rem;
    margin: 0 0 4px;
    line-height: 1.55;
}
.cookie-banner-text strong { color: #fff; }
.cookie-banner-text a {
    color: var(--gold-light);
    text-decoration: underline;
    text-decoration-color: rgba(232, 213, 160, 0.4);
}
.cookie-banner-text a:hover { color: #fff; }

.cookie-banner-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}
.btn-sm {
    padding: 10px 22px;
    font-size: 0.88rem;
}
.cookie-more {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    text-decoration: underline;
}
.cookie-more:hover { color: rgba(255,255,255,0.8); }

/* ——— PAGE HERO (inner pages) ——— */
.page-hero {
    position: relative;
    background: var(--forest);
    padding: 80px 0 90px;
    overflow: hidden;
    text-align: left;
}
.page-hero-deco {
    position: absolute;
    pointer-events: none;
    opacity: 0.07;
}
.page-hero-deco-1 { top: -60px; right: -80px; width: 400px; }
.page-hero-deco-2 { bottom: -40px; left: -60px; width: 280px; transform: rotate(180deg); }

.page-hero-content { position: relative; z-index: 1; }

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.45);
}
.breadcrumb a { color: rgba(255,255,255,0.6); transition: color 0.2s; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: rgba(255,255,255,0.3); }

.page-hero h1 {
    color: #fff;
    font-size: clamp(2.6rem, 5vw, 4.4rem);
    margin-bottom: 20px;
    max-width: 14ch;
}
.page-hero h1 em { color: var(--sage-light); }
.page-hero .lead {
    color: rgba(255,255,255,0.72);
    max-width: 52ch;
    font-size: 1.1rem;
}
.page-hero .eyebrow { color: var(--gold); }
.page-hero .eyebrow::before,
.page-hero .eyebrow::after { background: var(--gold); }

/* ——— PROSE SECTION (legal pages, etc.) ——— */
.prose-section { padding: 80px 0 100px; }

.prose-body { max-width: 780px; }
.prose-body h2 {
    font-size: 1.8rem;
    color: var(--forest);
    margin-top: 48px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}
.prose-body h3 {
    font-size: 1.15rem;
    color: var(--forest);
    margin-top: 28px;
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
}
.prose-body p {
    font-size: 0.97rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 14px;
}
.prose-body ul, .prose-body ol {
    padding-left: 24px;
    margin-bottom: 20px;
}
.prose-body li {
    font-size: 0.97rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 8px;
}
.prose-body strong { color: var(--text-dark); font-weight: 600; }
.prose-body a { color: var(--forest); text-decoration: underline; }
.prose-body a:hover { color: var(--sage); }

.prose-body .info-box {
    padding: 20px 24px;
    border-radius: var(--r-md);
    background: var(--sage-pale);
    border-left: 3px solid var(--sage);
    margin: 24px 0;
}
.prose-body .info-box p { margin: 0; font-size: 0.92rem; }
.prose-body .warning-box {
    background: var(--gold-pale);
    border-left: 3px solid var(--gold);
}

.prose-meta {
    display: inline-block;
    padding: 8px 18px;
    border-radius: var(--r-full);
    background: var(--sage-pale);
    font-size: 0.8rem;
    color: var(--sage);
    font-weight: 600;
    margin-bottom: 32px;
}

/* Cookie table */
.cookie-table-wrap { overflow-x: auto; margin: 24px 0; }
.cookie-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    color: var(--text-muted);
}
.cookie-table th {
    text-align: left;
    padding: 12px 16px;
    background: var(--forest);
    color: #fff;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.cookie-table th:first-child { border-radius: 10px 0 0 0; }
.cookie-table th:last-child  { border-radius: 0 10px 0 0; }
.cookie-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}
.cookie-table tr:last-child td { border-bottom: none; }
.cookie-table tr:nth-child(even) td { background: rgba(92, 139, 110, 0.04); }

/* ——— CHI SONO PAGE ——— */
.page-bio-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 72px;
    align-items: start;
}
.page-bio-sticky {
    position: sticky;
    top: 100px;
}
.bio-photo-card {
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/5;
    background: var(--sage-pale);
    margin-bottom: 20px;
}
.bio-photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}
.bio-name-card {
    padding: 22px 24px;
    border-radius: var(--r-md);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    text-align: center;
}
.bio-name-card strong {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--forest);
    margin-bottom: 4px;
}
.bio-name-card span {
    font-size: 0.82rem;
    color: var(--text-muted);
}
.bio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 14px;
}
.bio-tag {
    padding: 5px 12px;
    border-radius: var(--r-full);
    background: var(--sage-pale);
    color: var(--sage);
    font-size: 0.75rem;
    font-weight: 600;
}

.bio-content h2 {
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    color: var(--forest);
    margin-bottom: 16px;
    margin-top: 56px;
    padding-top: 56px;
    border-top: 1px solid var(--line);
}
.bio-content h2:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}
.bio-content p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 18px;
}
.bio-content .lead {
    font-size: 1.12rem;
    color: var(--text-body);
    margin-bottom: 28px;
}

.formation-list {
    list-style: none;
    display: grid;
    gap: 12px;
    margin-bottom: 24px;
}
.formation-list li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 18px;
    border-radius: var(--r-sm);
    background: var(--sage-pale);
    border: 1px solid rgba(92, 139, 110, 0.15);
}
.formation-list li::before {
    content: '✦';
    color: var(--gold);
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: 2px;
}
.formation-list li span { font-size: 0.92rem; color: var(--text-body); line-height: 1.6; }

.bio-pull-quote {
    margin: 40px 0;
    padding: 28px 32px;
    border-radius: var(--r-lg);
    background: linear-gradient(135deg, var(--forest), var(--forest-mid));
    color: rgba(255,255,255,0.92);
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 1.2rem;
    line-height: 1.6;
    position: relative;
}
.bio-pull-quote::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 24px;
    font-size: 4rem;
    color: rgba(255,255,255,0.1);
    font-family: 'Playfair Display', serif;
    line-height: 1;
}

/* ——— SESSIONI ONLINE PAGE ——— */
.online-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: start;
}
.platform-cards {
    display: grid;
    gap: 14px;
    margin-top: 28px;
}
.platform-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 22px;
    border-radius: var(--r-md);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transition: border-color var(--t), box-shadow var(--t);
}
.platform-card:hover {
    border-color: var(--sage-light);
    box-shadow: var(--shadow-md);
}
.platform-logo {
    width: 48px;
    height: 48px;
    border-radius: var(--r-sm);
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}
.platform-card strong { display: block; color: var(--forest); margin-bottom: 3px; }
.platform-card span   { font-size: 0.84rem; color: var(--text-muted); }

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 24px;
}
.req-card {
    padding: 22px 18px;
    border-radius: var(--r-md);
    background: var(--sage-pale);
    border: 1px solid rgba(92, 139, 110, 0.15);
    text-align: center;
}
.req-icon { font-size: 1.8rem; margin-bottom: 10px; }
.req-card strong { display: block; font-size: 0.9rem; color: var(--forest); margin-bottom: 5px; }
.req-card span { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }

.steps-flow {
    display: grid;
    gap: 0;
    counter-reset: step-counter;
}
.flow-step {
    display: flex;
    gap: 20px;
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
    position: relative;
}
.flow-step:last-child { border-bottom: none; }
.flow-step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--forest);
    color: #fff;
    display: grid;
    place-items: center;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}
.flow-step-content h4 {
    color: var(--forest);
    margin-bottom: 6px;
    font-size: 1rem;
}
.flow-step-content p {
    font-size: 0.9rem;
    margin: 0;
    color: var(--text-muted);
    line-height: 1.65;
}

.online-benefits {
    display: grid;
    gap: 14px;
    margin-top: 24px;
}
.benefit-row {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 20px;
    border-radius: var(--r-sm);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}
.benefit-check {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--sage-pale);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    color: var(--sage);
}
.benefit-row strong { display: block; font-size: 0.9rem; color: var(--text-dark); margin-bottom: 3px; }
.benefit-row span   { font-size: 0.84rem; color: var(--text-muted); }

/* CTA block */
.cta-block {
    padding: 64px;
    border-radius: var(--r-xl);
    background: linear-gradient(135deg, var(--forest), var(--forest-mid));
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-block h2 { color: #fff; margin-bottom: 16px; }
.cta-block p  { color: rgba(255,255,255,0.7); max-width: 48ch; margin: 0 auto 32px; }
.cta-block .btn-group { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ——— RESPONSIVE extras ——— */
@media (max-width: 900px) {
    .page-bio-grid    { grid-template-columns: 1fr; }
    .page-bio-sticky  { position: static; }
    .bio-photo-card   { aspect-ratio: 3/2; max-width: 500px; margin: 0 auto 20px; }
    .online-grid      { grid-template-columns: 1fr; }
    .requirements-grid { grid-template-columns: 1fr 1fr; }
    .cta-block { padding: 40px 28px; }
}
@media (max-width: 600px) {
    .page-hero { padding: 60px 0 70px; }
    .requirements-grid { grid-template-columns: 1fr; }
    .cookie-banner-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
    .footer-grid { grid-template-columns: 1fr; }
}
