/* ============================================
   FONDAZIONE OPERA SERENA - Design System
   ============================================ */

:root {
    /* Primary */
    --color-primary: #1a6b5a;
    --color-primary-dark: #0d3d30;
    --color-primary-light: #e8f4f0;
    --color-primary-hover: #15594b;

    /* Secondary */
    --color-accent-warm: #e8a87c;
    --color-accent-green: #8fbc8f;
    --color-gold: #c5a55a;

    /* Neutrals */
    --color-text: #1a1a2e;
    --color-text-light: #5a6171;
    --color-bg: #ffffff;
    --color-bg-alt: #f5f7f6;
    --color-border: #e0e4e3;

    /* Functional */
    --color-success: #2e7d32;
    --color-error: #c62828;
    --color-warning: #f9a825;

    /* Typography */
    --font-heading: 'Montserrat', 'Segoe UI', Arial, sans-serif;
    --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;

    /* Layout */
    --container-max: 1200px;
    --header-height: 80px;
    --top-bar-height: 40px;

    /* Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);

    /* Transitions */
    --transition: 0.3s ease;
}

/* ============================================
   RESET & BASE
   ============================================ */

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

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

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary-dark); }
ul, ol { list-style: none; }

.skip-link {
    position: absolute; top: -100%; left: 50%; transform: translateX(-50%);
    background: var(--color-primary); color: #fff; padding: 0.5rem 1.5rem;
    border-radius: 0 0 var(--radius-md) var(--radius-md); z-index: 9999;
}
.skip-link:focus { top: 0; color: #fff; }

/* ============================================
   LAYOUT
   ============================================ */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1rem;
}
@media (min-width: 768px) {
    .container { padding: 0 1.5rem; }
}

.section {
    padding: var(--space-xl) 0;
}
.section--alt {
    background: var(--color-bg-alt);
}
.section--primary {
    background: var(--color-primary);
    color: #fff;
}
.section--dark {
    background: var(--color-primary-dark);
    color: #fff;
}

.section__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-lg);
}
.section__subtitle {
    color: var(--color-text-light);
    font-size: 1.1rem;
    margin-top: var(--space-xs);
}
.section--primary .section__subtitle,
.section--dark .section__subtitle {
    color: rgba(255,255,255,0.8);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-text);
}
.section--primary h1, .section--primary h2, .section--primary h3,
.section--dark h1, .section--dark h2, .section--dark h3 {
    color: #fff;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

@media (min-width: 768px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.25rem; }
    h3 { font-size: 1.75rem; }
}

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

.lead { font-size: 1.15rem; color: var(--color-text-light); line-height: 1.7; }

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.85rem 2rem;
    font-family: var(--font-body); font-size: 1rem; font-weight: 600;
    border: 2px solid transparent; border-radius: var(--radius-md);
    cursor: pointer; transition: all var(--transition);
    text-align: center; white-space: nowrap;
}
.btn--primary {
    background: var(--color-primary); color: #fff; border-color: var(--color-primary);
}
.btn--primary:hover {
    background: var(--color-primary-dark); border-color: var(--color-primary-dark); color: #fff;
}
.btn--outline {
    background: transparent; color: var(--color-primary); border-color: var(--color-primary);
}
.btn--outline:hover {
    background: var(--color-primary); color: #fff;
}
.btn--white {
    background: #fff; color: var(--color-primary); border-color: #fff;
}
.btn--white:hover {
    background: var(--color-primary-light); border-color: var(--color-primary-light); color: var(--color-primary);
}
.btn--white-outline {
    background: transparent; color: #fff; border-color: #fff;
}
.btn--white-outline:hover {
    background: #fff; color: var(--color-primary);
}
.btn--sm { padding: 0.6rem 1.25rem; font-size: 0.9rem; }
.btn--lg { padding: 1rem 2.5rem; font-size: 1.1rem; }
.btn--block { width: 100%; justify-content: center; }

/* ============================================
   TOP BAR
   ============================================ */

.top-bar {
    background: var(--color-primary-dark);
    color: rgba(255,255,255,0.9);
    font-size: 0.85rem;
    height: var(--top-bar-height);
    display: flex; align-items: center;
}
.top-bar__inner {
    display: flex; justify-content: space-between; align-items: center;
}
.top-bar__left, .top-bar__right {
    display: flex; align-items: center; gap: 1.5rem;
}
.top-bar__item {
    display: flex; align-items: center; gap: 0.4rem;
    color: rgba(255,255,255,0.9);
}
.top-bar__item:hover { color: #fff; }
.top-bar__item svg { flex-shrink: 0; }

@media (max-width: 767px) {
    .top-bar__right { display: none; }
    .top-bar__left { gap: 1rem; font-size: 0.8rem; }
}

/* ============================================
   HEADER
   ============================================ */

.header {
    background: #fff;
    height: var(--header-height);
    display: flex; align-items: center;
    position: sticky; top: 0; z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}
.header--scrolled {
    box-shadow: var(--shadow-md);
}
.header__inner {
    display: flex; align-items: center; justify-content: space-between;
}
.header__logo img {
    height: 80px; width: auto;
}
.header__cta {
    display: none;
}
@media (min-width: 1024px) {
    .header__cta { display: inline-flex; }
}

/* Nav */
.nav__list {
    display: flex; align-items: center; gap: 0.25rem;
}
.nav__link {
    display: block; padding: 0.5rem 1rem;
    font-weight: 500; font-size: 0.95rem;
    color: var(--color-text); border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.nav__link:hover,
.nav__link--active {
    color: var(--color-primary); background: var(--color-primary-light);
}

/* Dropdown arrow */
.nav__arrow {
    display: inline-block; vertical-align: middle;
    margin-left: 2px;
    transition: transform var(--transition);
}
.nav__item--dropdown:hover .nav__arrow,
.nav__item--open .nav__arrow {
    transform: rotate(180deg);
}

/* Dropdown */
.nav__item--dropdown { position: relative; }
.nav__dropdown {
    display: none; position: absolute; top: 100%; left: 0;
    background: #fff; border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg); min-width: 220px;
    padding: 0.5rem 0; z-index: 100;
}
.nav__dropdown li a {
    display: block; padding: 0.6rem 1.25rem;
    color: var(--color-text); font-size: 0.9rem; font-weight: 500;
}
.nav__dropdown li a:hover {
    background: var(--color-primary-light); color: var(--color-primary);
}

/* Hamburger */
.hamburger {
    display: flex; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer;
    padding: 8px; z-index: 1001;
}
.hamburger__line {
    width: 24px; height: 2px;
    background: var(--color-text);
    transition: all var(--transition);
}
.hamburger--active .hamburger__line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger--active .hamburger__line:nth-child(2) { opacity: 0; }
.hamburger--active .hamburger__line:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (min-width: 1024px) {
    .hamburger { display: none; }
}

/* Mobile nav */
@media (max-width: 1023px) {
    .nav {
        position: fixed; top: 0; right: -100%; width: 85%; max-width: 400px;
        height: 100vh; background: #fff; z-index: 1000;
        padding: 6rem 2rem 2rem;
        box-shadow: var(--shadow-lg);
        transition: right var(--transition);
        overflow-y: auto;
    }
    .nav--open { right: 0; }
    .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
    .nav__link {
        padding: 1rem 0; font-size: 1.1rem;
        border-bottom: 1px solid var(--color-border);
    }
    .nav__dropdown {
        position: static; box-shadow: none;
        padding: 0 0 0 1rem; display: none;
    }
    .nav__item--open .nav__dropdown { display: block; }
    .nav__dropdown li a { padding: 0.75rem 0; border-bottom: 1px solid var(--color-border); }
}

/* ============================================
   MOBILE CTA BAR
   ============================================ */

.mobile-cta {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0;
    z-index: 999; background: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    border-top: 1px solid var(--color-border);
}
.mobile-cta__btn {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.85rem; font-weight: 600; font-size: 0.95rem;
    color: #fff;
}
.mobile-cta__btn--call { background: var(--color-primary); }
.mobile-cta__btn--call:hover { background: var(--color-primary-dark); color: #fff; }
.mobile-cta__btn--email { background: var(--color-accent-warm); color: var(--color-text); }
.mobile-cta__btn--email:hover { color: var(--color-text); }

@media (min-width: 1024px) {
    .mobile-cta { display: none; }
}
@media (max-width: 1023px) {
    body { padding-bottom: 60px; }
}

/* ============================================
   HERO
   ============================================ */

.hero {
    position: relative;
    min-height: 70vh;
    display: flex; align-items: center;
    background: var(--color-primary-dark);
    overflow: hidden;
}
@media (min-width: 768px) {
    .hero { min-height: 85vh; }
}
.hero__bg {
    position: absolute; inset: 0;
}
.hero__bg img {
    width: 100%; height: 100%; object-fit: cover;
}
.hero__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(13,61,48,0.55) 0%, rgba(26,107,90,0.3) 100%);
}
.hero__content {
    position: relative; z-index: 2;
    max-width: 700px; color: #fff;
}
.hero__title {
    font-size: 2.5rem; color: #fff; margin-bottom: var(--space-sm);
    line-height: 1.15;
}
@media (min-width: 768px) {
    .hero__title { font-size: 3.5rem; }
}
.hero__subtitle {
    font-size: 1.2rem; line-height: 1.7;
    color: rgba(255,255,255,0.9); margin-bottom: var(--space-lg);
}
.hero__actions {
    display: flex; flex-wrap: wrap; gap: 1rem;
}

/* ============================================
   QUICK CONTACT BAR
   ============================================ */

.quick-contact {
    background: var(--color-primary);
    padding: 1.25rem 0;
}
.quick-contact__grid {
    display: grid; grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 768px) {
    .quick-contact__grid { grid-template-columns: repeat(3, 1fr); gap: 0; }
}
.quick-contact__item {
    display: flex; align-items: center; justify-content: center; gap: 0.75rem;
    color: #fff; font-weight: 500;
    padding: 0.5rem;
}
.quick-contact__item:hover { color: rgba(255,255,255,0.8); }
@media (min-width: 768px) {
    .quick-contact__item:not(:last-child) { border-right: 1px solid rgba(255,255,255,0.2); }
}

/* ============================================
   TRUST BADGES
   ============================================ */

.trust-badges {
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--color-border);
}
.trust-badges__grid {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 1.5rem 2.5rem;
}
.trust-badge {
    display: flex; align-items: center; gap: 0.6rem;
    font-size: 0.9rem; font-weight: 500; color: var(--color-text-light);
}
.trust-badge__icon {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--color-primary-light); color: var(--color-primary);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

/* ============================================
   CARDS
   ============================================ */

.card-grid {
    display: grid; gap: var(--space-md);
}
.card-grid--2 { grid-template-columns: 1fr; }
.card-grid--3 { grid-template-columns: 1fr; }
@media (min-width: 768px) {
    .card-grid--2 { grid-template-columns: repeat(2, 1fr); }
    .card-grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .card-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
    background: #fff; border-radius: var(--radius-lg);
    padding: var(--space-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    border: 1px solid var(--color-border);
}
.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.card__icon {
    width: 56px; height: 56px; border-radius: var(--radius-md);
    background: var(--color-primary-light); color: var(--color-primary);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: var(--space-sm);
    font-size: 28px;
}
.card__icon i { line-height: 1; }
.card__title {
    font-family: var(--font-heading); font-size: 1.25rem;
    margin-bottom: 0.5rem;
}
.card__text {
    color: var(--color-text-light); font-size: 0.95rem; line-height: 1.65;
}
.card__link {
    display: inline-flex; align-items: center; gap: 0.3rem;
    font-weight: 600; font-size: 0.95rem; margin-top: var(--space-sm);
    color: var(--color-primary);
}
.card__link:hover { gap: 0.6rem; }

/* ============================================
   GALLERY
   ============================================ */

.gallery-grid {
    display: grid; gap: 0.75rem;
    grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) {
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
    .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}
.gallery-item {
    position: relative; border-radius: var(--radius-md); overflow: hidden;
    aspect-ratio: 4/3; cursor: pointer;
}
.gallery-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform var(--transition);
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
    opacity: 0; transition: opacity var(--transition);
    display: flex; align-items: flex-end; padding: 1rem;
    color: #fff; font-weight: 500; font-size: 0.9rem;
}
.gallery-item:hover .gallery-item__overlay { opacity: 1; }

/* ============================================
   COUNTER / STATS
   ============================================ */

.stats {
    padding: var(--space-xl) 0;
    background: var(--color-primary);
    color: #fff;
}
.stats h2, .stats h3 { color: #fff; }
.stats .section__subtitle { color: rgba(255,255,255,0.85); }
.stats__grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    text-align: center;
}
@media (min-width: 768px) {
    .stats__grid { grid-template-columns: repeat(4, 1fr); }
}
.stat__number {
    font-family: var(--font-heading); font-size: 3rem; font-weight: 700;
    line-height: 1;
}
.stat__label {
    margin-top: 0.5rem; font-size: 0.95rem;
    color: rgba(255,255,255,0.85);
}

/* ============================================
   TIMELINE
   ============================================ */

/* Horizontal timeline (desktop), grid (mobile) */
.timeline-h {
    display: flex; justify-content: space-between;
    padding: 1rem 0 1.5rem;
    gap: 0.25rem;
}
.timeline-h__item {
    flex: 1 1 0;
    display: flex; flex-direction: column; align-items: center;
    text-align: center; position: relative;
    padding: 0 0.25rem;
    min-width: 0;
}
.timeline-h__icon {
    width: 52px; height: 52px; border-radius: 50%;
    background: var(--color-primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; flex-shrink: 0;
    position: relative; z-index: 2;
    box-shadow: 0 2px 8px rgba(26,107,90,0.3);
}
.timeline-h__time {
    font-weight: 700; color: var(--color-primary);
    font-size: 1.1rem; margin-top: 0.75rem;
}
.timeline-h__text {
    color: var(--color-text-light); font-size: 0.88rem;
    margin-top: 0.3rem; line-height: 1.4;
}
/* Connector line between items */
.timeline-h__item:not(:last-child)::after {
    content: '';
    position: absolute; top: 26px;
    left: calc(50% + 28px);
    right: calc(-50% + 28px);
    height: 2px;
    background: var(--color-primary-light);
    z-index: 1;
}
/* Tablet: 2 rows */
@media (max-width: 991px) {
    .timeline-h {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.25rem 0;
    }
    .timeline-h__item {
        flex: 0 0 25%;
    }
    .timeline-h__item::after { display: none; }
}
/* Mobile: 2-col grid */
@media (max-width: 575px) {
    .timeline-h {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem 1rem;
    }
    .timeline-h__item { flex: none; }
}

/* Animation for horizontal timeline */
.timeline-h .timeline-h__item {
    opacity: 0; transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.timeline-h.animated .timeline-h__item { opacity: 1; transform: translateY(0); }
.timeline-h.animated .timeline-h__item:nth-child(1) { transition-delay: 0.05s; }
.timeline-h.animated .timeline-h__item:nth-child(2) { transition-delay: 0.1s; }
.timeline-h.animated .timeline-h__item:nth-child(3) { transition-delay: 0.15s; }
.timeline-h.animated .timeline-h__item:nth-child(4) { transition-delay: 0.2s; }
.timeline-h.animated .timeline-h__item:nth-child(5) { transition-delay: 0.25s; }
.timeline-h.animated .timeline-h__item:nth-child(6) { transition-delay: 0.3s; }
.timeline-h.animated .timeline-h__item:nth-child(7) { transition-delay: 0.35s; }

/* Keep old vertical timeline for fallback / other uses */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0;
    width: 2px; background: var(--color-primary-light);
}
.timeline__item {
    position: relative; padding-bottom: var(--space-md);
}
.timeline__item::before {
    content: ''; position: absolute; left: -2rem; top: 0.3rem;
    width: 14px; height: 14px; border-radius: 50%;
    background: var(--color-primary); border: 3px solid var(--color-primary-light);
    transform: translateX(-6px);
}
.timeline__time {
    font-weight: 700; color: var(--color-primary); font-size: 0.9rem;
}
.timeline__text {
    color: var(--color-text-light); margin-top: 0.25rem;
}

/* ============================================
   TESTIMONIALS
   ============================================ */

.testimonial {
    background: #fff; border-radius: var(--radius-lg);
    padding: var(--space-lg); position: relative;
    border: 1px solid var(--color-border);
}
.testimonial::before {
    content: '\201C'; position: absolute; top: 1rem; left: 1.5rem;
    font-size: 4rem; color: var(--color-primary-light); font-family: Georgia, serif;
    line-height: 1;
}
.testimonial__quote {
    font-size: 1.05rem; font-style: italic; line-height: 1.7;
    color: var(--color-text); margin-bottom: var(--space-sm);
    padding-top: 1.5rem;
}
.testimonial__author {
    font-weight: 600; color: var(--color-primary);
}
.testimonial__role {
    font-size: 0.9rem; color: var(--color-text-light);
}

/* ============================================
   FORMS
   ============================================ */

.form-group {
    margin-bottom: var(--space-sm);
}
.form-label {
    display: block; font-weight: 500; margin-bottom: 0.4rem;
    font-size: 0.95rem;
}
.form-control {
    width: 100%; padding: 0.85rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: var(--font-body); font-size: 1rem;
    transition: border-color var(--transition);
    background: #fff;
}
.form-control:focus {
    outline: none; border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { cursor: pointer; }

.form-check {
    display: flex; align-items: flex-start; gap: 0.5rem;
}
.form-check input[type="checkbox"] {
    margin-top: 0.25rem; accent-color: var(--color-primary);
    width: 18px; height: 18px;
}
.form-check label { font-size: 0.9rem; }

.form-message {
    display: none; padding: 1rem; border-radius: var(--radius-md);
    margin-bottom: var(--space-sm); font-weight: 500;
}
.form-message--success {
    background: #e8f5e9; color: var(--color-success); border: 1px solid #c8e6c9;
}
.form-message--error {
    background: #ffebee; color: var(--color-error); border: 1px solid #ffcdd2;
}

/* ============================================
   TWO COLUMN LAYOUT
   ============================================ */

.two-col {
    display: grid; gap: var(--space-lg); align-items: center;
}
@media (min-width: 768px) {
    .two-col { grid-template-columns: 1fr 1fr; }
    .two-col--60-40 { grid-template-columns: 3fr 2fr; }
    .two-col--40-60 { grid-template-columns: 2fr 3fr; }
}
.two-col__img {
    border-radius: var(--radius-lg); overflow: hidden;
}
.two-col__img img {
    width: 100%; height: 100%; object-fit: cover;
}

/* ============================================
   LIGHTBOX
   ============================================ */

.lightbox {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.9);
    display: flex; align-items: center; justify-content: center;
    padding: 2rem;
    animation: fadeIn 0.3s ease;
}
.lightbox__inner { position: relative; max-width: 90vw; max-height: 90vh; }
.lightbox__img { max-width: 100%; max-height: 85vh; border-radius: var(--radius-sm); }
.lightbox__close {
    position: absolute; top: -2.5rem; right: 0;
    background: none; border: none; color: #fff;
    font-size: 2rem; cursor: pointer; line-height: 1;
}
.lightbox__caption {
    color: rgba(255,255,255,0.8); text-align: center; margin-top: 0.75rem;
}

@keyframes fadeIn {
    from { opacity: 0; } to { opacity: 1; }
}

/* ============================================
   PAGE HEADER (internal pages)
   ============================================ */

.page-header {
    background: var(--color-primary-dark);
    padding: var(--space-lg) 0;
    color: #fff;
}
.page-header__title {
    color: #fff; margin-bottom: 0.25rem;
}
.page-header__breadcrumb {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.9rem; color: rgba(255,255,255,0.7);
}
.page-header__breadcrumb a { color: rgba(255,255,255,0.7); }
.page-header__breadcrumb a:hover { color: #fff; }
.page-header__breadcrumb span { color: rgba(255,255,255,0.5); }

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
    background: var(--color-primary);
    padding: var(--space-xl) 0;
    text-align: center; color: #fff;
}
.cta-section h2 { color: #fff; margin-bottom: var(--space-xs); }
.cta-section p { color: rgba(255,255,255,0.9); margin-bottom: var(--space-md); font-size: 1.1rem; }
.cta-section .btn { margin: 0 0.5rem; }

/* ============================================
   STEPS
   ============================================ */

.steps {
    display: grid; gap: var(--space-md);
    counter-reset: step;
}
@media (min-width: 768px) {
    .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .steps { grid-template-columns: repeat(4, 1fr); }
}
.step {
    text-align: center; counter-increment: step;
}
.step__number {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--color-primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.2rem;
    margin: 0 auto var(--space-sm);
}
.step__title { font-family: var(--font-heading); font-size: 1.15rem; margin-bottom: 0.5rem; }
.step__text { font-size: 0.95rem; color: var(--color-text-light); }

/* ============================================
   DOCUMENTS LIST
   ============================================ */

.doc-list { display: grid; gap: 0.75rem; }
.doc-item {
    display: flex; align-items: center; gap: 1rem;
    padding: 1rem 1.25rem; background: #fff;
    border: 1px solid var(--color-border); border-radius: var(--radius-md);
    transition: all var(--transition);
}
.doc-item:hover { border-color: var(--color-primary); box-shadow: var(--shadow-sm); }
.doc-item__icon {
    width: 40px; height: 40px; flex-shrink: 0;
    background: #fee2e2; color: #c62828; border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.75rem;
}
.doc-item__info { flex: 1; }
.doc-item__title { font-weight: 600; font-size: 0.95rem; }
.doc-item__meta { font-size: 0.8rem; color: var(--color-text-light); }
.doc-item__download {
    color: var(--color-primary); font-weight: 600; font-size: 0.9rem;
    white-space: nowrap;
}

/* ============================================
   FAQ ACCORDION
   ============================================ */

.faq-item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    overflow: hidden;
}
.faq-question {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.25rem; cursor: pointer;
    font-weight: 600; font-size: 1rem;
    background: #fff;
    transition: background var(--transition);
}
.faq-question:hover { background: var(--color-bg-alt); }
.faq-question::after {
    content: '+'; font-size: 1.5rem; color: var(--color-primary);
    transition: transform var(--transition); flex-shrink: 0; margin-left: 1rem;
}
.faq-item.active .faq-question::after { content: '\2212'; }
.faq-answer {
    max-height: 0; overflow: hidden;
    transition: max-height 0.4s ease;
}
.faq-answer__inner {
    padding: 0 1.25rem 1.25rem;
    color: var(--color-text-light); line-height: 1.7;
}

/* ============================================
   NEWS CARDS
   ============================================ */

.news-card {
    border-radius: var(--radius-lg); overflow: hidden;
    background: #fff; border: 1px solid var(--color-border);
    transition: all var(--transition);
}
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.news-card__img {
    aspect-ratio: 16/9; overflow: hidden;
}
.news-card__img img { width: 100%; height: 100%; object-fit: cover; }
.news-card__body { padding: var(--space-md); }
.news-card__date { font-size: 0.85rem; color: var(--color-text-light); margin-bottom: 0.5rem; }
.news-card__title {
    font-family: var(--font-heading); font-size: 1.2rem; margin-bottom: 0.5rem;
}
.news-card__title a { color: var(--color-text); }
.news-card__title a:hover { color: var(--color-primary); }
.news-card__excerpt { font-size: 0.95rem; color: var(--color-text-light); }

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--color-primary-dark);
    color: rgba(255,255,255,0.85);
    padding: var(--space-xl) 0 0;
}
.footer__grid {
    display: grid; gap: var(--space-lg);
    grid-template-columns: 1fr;
}
@media (min-width: 768px) {
    .footer__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .footer__grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; }
}
.footer__logo { height: 45px; width: auto; margin-bottom: var(--space-sm); }
.footer__tagline { font-style: italic; font-size: 1rem; margin-bottom: 0.5rem; }
.footer__text { font-size: 0.9rem; color: rgba(255,255,255,0.65); }
.footer__heading {
    font-family: var(--font-heading); font-size: 1.15rem; font-weight: 600;
    color: #fff; margin-bottom: var(--space-sm);
}
.footer__links li { margin-bottom: 0.5rem; }
.footer__links a {
    color: rgba(255,255,255,0.75); font-size: 0.9rem;
    transition: color var(--transition);
}
.footer__links a:hover { color: #fff; }

.footer__address p {
    display: flex; align-items: flex-start; gap: 0.6rem;
    font-size: 0.9rem; font-style: normal; margin-bottom: 0.75rem;
}
.footer__address svg { flex-shrink: 0; margin-top: 0.15rem; color: var(--color-accent-warm); }
.footer__address a { color: rgba(255,255,255,0.85); }
.footer__address a:hover { color: #fff; }

.footer__social {
    display: flex; gap: 0.75rem; margin-top: var(--space-sm);
}
.footer__social a {
    width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.3);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.8);
    transition: all var(--transition);
}
.footer__social a:hover {
    background: #fff; color: var(--color-primary);
    border-color: #fff;
}

.footer__founders {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: var(--space-lg); padding: var(--space-md) 0;
    text-align: center;
}
.footer__founders-label {
    font-size: 0.85rem; color: rgba(255,255,255,0.75);
    margin-bottom: 0.5rem;
}
.footer__founders-list {
    display: flex; flex-wrap: wrap; justify-content: center;
    align-items: center; gap: 0.75rem;
    font-size: 0.9rem; font-weight: 500;
}
.footer__dot {
    width: 4px; height: 4px; border-radius: 50%;
    background: rgba(255,255,255,0.3);
}

.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: var(--space-sm) 0;
    display: flex; flex-wrap: wrap; justify-content: space-between;
    align-items: center; gap: 1rem;
    font-size: 0.8rem; color: rgba(255,255,255,0.75);
}
.footer__bottom-links {
    display: flex; flex-wrap: wrap; gap: 1.5rem;
}
.footer__bottom-links a { color: rgba(255,255,255,0.75); }
.footer__bottom-links a:hover { color: #fff; }

/* ============================================
   UTILITIES
   ============================================ */

.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.animate-fade-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-fade-left.animated {
    opacity: 1;
    transform: translateX(0);
}

.animate-fade-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-fade-right.animated {
    opacity: 1;
    transform: translateX(0);
}

.animate-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.animate-scale.animated {
    opacity: 1;
    transform: scale(1);
}

/* Staggered children */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.stagger-children.animated > *:nth-child(1) { transition-delay: 0s; }
.stagger-children.animated > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.animated > *:nth-child(3) { transition-delay: 0.2s; }
.stagger-children.animated > *:nth-child(4) { transition-delay: 0.3s; }
.stagger-children.animated > *:nth-child(5) { transition-delay: 0.4s; }
.stagger-children.animated > *:nth-child(6) { transition-delay: 0.5s; }
.stagger-children.animated > *:nth-child(7) { transition-delay: 0.6s; }
.stagger-children.animated > *:nth-child(8) { transition-delay: 0.7s; }
.stagger-children.animated > *:nth-child(9) { transition-delay: 0.8s; }
.stagger-children.animated > *:nth-child(10) { transition-delay: 0.9s; }
.stagger-children.animated > * {
    opacity: 1;
    transform: translateY(0);
}

/* Timeline items animation */
.timeline .timeline__item {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.timeline.animated .timeline__item { opacity: 1; transform: translateX(0); }
.timeline.animated .timeline__item:nth-child(1) { transition-delay: 0.05s; }
.timeline.animated .timeline__item:nth-child(2) { transition-delay: 0.12s; }
.timeline.animated .timeline__item:nth-child(3) { transition-delay: 0.19s; }
.timeline.animated .timeline__item:nth-child(4) { transition-delay: 0.26s; }
.timeline.animated .timeline__item:nth-child(5) { transition-delay: 0.33s; }
.timeline.animated .timeline__item:nth-child(6) { transition-delay: 0.4s; }
.timeline.animated .timeline__item:nth-child(7) { transition-delay: 0.47s; }
.timeline.animated .timeline__item:nth-child(8) { transition-delay: 0.54s; }
.timeline.animated .timeline__item:nth-child(9) { transition-delay: 0.61s; }
.timeline.animated .timeline__item:nth-child(10) { transition-delay: 0.68s; }

/* Timeline bar grow */
.timeline::before {
    transform-origin: top;
    transform: scaleY(0);
    transition: transform 0.8s ease;
}
.timeline.animated::before {
    transform: scaleY(1);
}

/* Stats counter pop-in */
.stats__grid > div {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.stats__grid.animated > div { opacity: 1; transform: scale(1); }
.stats__grid.animated > div:nth-child(1) { transition-delay: 0s; }
.stats__grid.animated > div:nth-child(2) { transition-delay: 0.15s; }
.stats__grid.animated > div:nth-child(3) { transition-delay: 0.3s; }
.stats__grid.animated > div:nth-child(4) { transition-delay: 0.45s; }

/* Steps animation */
.steps .step {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.steps.animated .step { opacity: 1; transform: translateY(0); }
.steps.animated .step:nth-child(1) { transition-delay: 0s; }
.steps.animated .step:nth-child(2) { transition-delay: 0.15s; }
.steps.animated .step:nth-child(3) { transition-delay: 0.2s; }
.steps.animated .step:nth-child(4) { transition-delay: 0.3s; }

/* Gallery items fade in */
.gallery-grid .gallery-item {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.gallery-grid.animated .gallery-item { opacity: 1; transform: scale(1); }
.gallery-grid.animated .gallery-item:nth-child(1) { transition-delay: 0.02s; }
.gallery-grid.animated .gallery-item:nth-child(2) { transition-delay: 0.07s; }
.gallery-grid.animated .gallery-item:nth-child(3) { transition-delay: 0.12s; }
.gallery-grid.animated .gallery-item:nth-child(4) { transition-delay: 0.17s; }
.gallery-grid.animated .gallery-item:nth-child(5) { transition-delay: 0.22s; }
.gallery-grid.animated .gallery-item:nth-child(6) { transition-delay: 0.27s; }
.gallery-grid.animated .gallery-item:nth-child(7) { transition-delay: 0.32s; }
.gallery-grid.animated .gallery-item:nth-child(8) { transition-delay: 0.37s; }

/* Cards stagger */
.card-grid .card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.card-grid.animated .card { opacity: 1; transform: translateY(0); }
.card-grid.animated .card:nth-child(1) { transition-delay: 0s; }
.card-grid.animated .card:nth-child(2) { transition-delay: 0.1s; }
.card-grid.animated .card:nth-child(3) { transition-delay: 0.15s; }
.card-grid.animated .card:nth-child(4) { transition-delay: 0.2s; }
.card-grid.animated .card:nth-child(5) { transition-delay: 0.25s; }
.card-grid.animated .card:nth-child(6) { transition-delay: 0.3s; }

/* Trust badges slide up */
.trust-badges__grid {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.trust-badges__grid.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll, .animate-fade-left, .animate-fade-right, .animate-scale,
    .stagger-children > *, .timeline .timeline__item, .stats__grid > div,
    .steps .step, .gallery-grid .gallery-item, .card-grid .card,
    .trust-badges__grid, .timeline::before {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ============================================
   COOKIE BANNER
   ============================================ */

.cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 9998;
    background: #fff;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    border-top: 3px solid var(--color-primary);
    animation: slideUp 0.4s ease;
}
@keyframes slideUp {
    from { transform: translateY(100%); } to { transform: translateY(0); }
}
.cookie-banner__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 1.25rem 1.5rem;
    display: flex; align-items: center; gap: 1.5rem;
    flex-wrap: wrap;
}
.cookie-banner__text {
    flex: 1; min-width: 280px;
    font-size: 0.9rem; color: var(--color-text-light);
    margin: 0; line-height: 1.5;
}
.cookie-banner__text a { font-weight: 600; }
.cookie-banner__actions {
    display: flex; gap: 0.75rem; flex-shrink: 0;
}
@media (max-width: 767px) {
    .cookie-banner__inner { flex-direction: column; align-items: stretch; text-align: center; }
    .cookie-banner__actions { justify-content: center; }
}

/* ============================================
   MOBILE OPTIMIZATIONS
   ============================================ */

@media (max-width: 767px) {
    .hero { min-height: 60vh; }
    .hero__title { font-size: 1.75rem; }
    .hero__subtitle { font-size: 1rem; }
    .hero__actions { flex-direction: column; }
    .hero__actions .btn { width: 100%; justify-content: center; }

    .section { padding: var(--space-lg) 0; }
    .section__header { margin-bottom: var(--space-md); }

    .btn { padding: 0.75rem 1.5rem; font-size: 0.95rem; min-height: 48px; }
    .btn--sm { min-height: 44px; }

    .form-control { font-size: 16px; }

    .quick-contact__item { font-size: 0.85rem; padding: 0.35rem; }

    .trust-badges__grid { gap: 0.75rem 1.25rem; }
    .trust-badge { font-size: 0.8rem; }

    .footer__grid { gap: var(--space-md); }
    .footer__bottom { flex-direction: column; text-align: center; gap: 0.5rem; }
    .footer__bottom-links { justify-content: center; }

    .cta-section { padding: var(--space-lg) 0; }
    .cta-section h2 { font-size: 1.5rem; }
    .cta-section .btn { margin: 0.25rem; }

    .two-col { gap: var(--space-md); }

    .page-header { padding: var(--space-md) 0; }
    .page-header__title { font-size: 1.75rem; }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .top-bar, .header, .mobile-cta, .footer, .cta-section { display: none; }
    body { font-size: 12pt; color: #000; }
    a { color: #000; text-decoration: underline; }
    .hero { min-height: auto; padding: 2rem 0; }
}
