/* CSS Globale - Stile Apple Minimalista */

:root {
    --apple-black: #1d1d1f;
    --apple-gray: #86868b;
    --apple-light-gray: #f5f5f7;
    --apple-white: #ffffff;
    --apple-blue: #0071e3;
    --apple-blue-hover: #0077ed;
    --apple-border: #d2d2d7;
    --font-apple: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-apple);
    background-color: var(--apple-white);
    color: var(--apple-black);
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
}

/* Navbar - Stile Apple */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--apple-border);
    z-index: 1000;
    min-height: 44px;
}

.navbar-container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
}

.navbar-brand {
    font-size: 17px;
    font-weight: 600;
    color: var(--apple-black);
    text-decoration: none;
    letter-spacing: -0.022em;
    white-space: nowrap;
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

    .navbar-menu::-webkit-scrollbar {
        display: none;
    }

    .navbar-menu li {
        margin: 0;
        padding: 0;
        flex-shrink: 0;
    }

    .navbar-menu a {
        display: block;
        padding: 12px 6px;
        font-size: 11px;
        color: var(--apple-black);
        text-decoration: none;
        transition: var(--transition);
        opacity: 0.8;
        font-weight: 400;
        letter-spacing: -0.01em;
        white-space: nowrap;
    }

        .navbar-menu a:hover {
            opacity: 1;
        }

/* Menu Mobile Toggle */
.navbar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--apple-black);
}

/* Main Content */
main {
    margin-top: 44px;
}

/* Container */
.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 22px;
}

.container-large {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 22px;
}

/* Typography */
h1 {
    font-size: 56px;
    line-height: 1.07143;
    font-weight: 600;
    letter-spacing: -0.005em;
}

h2 {
    font-size: 48px;
    line-height: 1.08349;
    font-weight: 600;
    letter-spacing: -0.003em;
}

h3 {
    font-size: 40px;
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: 0;
}

h4 {
    font-size: 32px;
    line-height: 1.125;
    font-weight: 600;
    letter-spacing: 0.004em;
}

h5 {
    font-size: 24px;
    line-height: 1.16667;
    font-weight: 600;
    letter-spacing: 0.009em;
}

h6 {
    font-size: 19px;
    line-height: 1.21053;
    font-weight: 600;
    letter-spacing: 0.012em;
}

p {
    font-size: 17px;
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    color: var(--apple-black);
}

.text-large {
    font-size: 21px;
    line-height: 1.381;
    font-weight: 400;
    letter-spacing: 0.011em;
}

.text-muted {
    color: var(--apple-gray);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 980px;
    font-size: 17px;
    line-height: 1.17648;
    font-weight: 400;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    letter-spacing: -0.022em;
}

.btn-primary {
    background: var(--apple-blue);
    color: var(--apple-white);
}

    .btn-primary:hover {
        background: var(--apple-blue-hover);
    }

.btn-secondary {
    background: transparent;
    color: var(--apple-blue);
    border: 1px solid var(--apple-blue);
}

    .btn-secondary:hover {
        background: var(--apple-blue);
        color: var(--apple-white);
    }

/* Sections */
section {
    padding: 80px 0;
}

.section-dark {
    background: var(--apple-black);
    color: var(--apple-white);
}

    .section-dark h1,
    .section-dark h2,
    .section-dark h3,
    .section-dark h4,
    .section-dark h5,
    .section-dark h6,
    .section-dark p {
        color: var(--apple-white);
    }

.section-gray {
    background: var(--apple-light-gray);
}

/* Footer */
footer {
    background: var(--apple-light-gray);
    border-top: 1px solid var(--apple-border);
    padding: 40px 0;
    margin-top: 80px;
}

.footer-content {
    text-align: center;
    color: var(--apple-gray);
    font-size: 12px;
    line-height: 1.33337;
}

/* Responsive */
@media (max-width: 1068px) {
    .container {
        max-width: 692px;
    }

    .container-large {
        max-width: 980px;
    }

    h1 {
        font-size: 48px;
    }

    h2 {
        font-size: 40px;
    }

    h3 {
        font-size: 32px;
    }
}

@media (max-width: 734px) {
    .navbar-menu {
        display: none;
        position: absolute;
        top: 44px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: saturate(180%) blur(20px);
        flex-direction: column;
        padding: 20px 0;
        border-bottom: 1px solid var(--apple-border);
    }

        .navbar-menu.active {
            display: flex;
            z-index: 9999;
        }

        .navbar-menu li {
            margin: 0;
            width: 100%;
        }

        .navbar-menu a {
            padding: 12px 22px;
            font-size: 14px;
            width: 100%;
        }

    .navbar-toggle {
        display: block;
    }

    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 28px;
    }

    h3 {
        font-size: 24px;
    }

    h4 {
        font-size: 21px;
    }

    section {
        padding: 60px 0;
    }
}

@media (max-width: 1068px) and (min-width: 735px) {
    .navbar-menu a {
        font-size: 11px;
        padding: 12px 8px;
    }

    .navbar-brand {
        font-size: 15px;
    }
}

/* Animazioni */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* ---- HERO SECTION ---- */
.hero {
    background: linear-gradient(135deg, #f0f7f4 0%, #e8f5f0 50%, #f5f9f7 100%);
    padding: 80px 0 60px;
    overflow: visible;
    position: relative;
}

    .hero::before {
        content: '';
        position: absolute;
        top: -80px;
        right: -80px;
        width: 400px;
        height: 400px;
        background: radial-gradient(circle, rgba(0,130,100,0.08) 0%, transparent 70%);
        pointer-events: none;
    }

.hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Logo */
.hero-logo-wrap {
    margin-bottom: 24px;
}

.hero-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0,130,100,0.25));
}

/* Testo */
.hero-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #1a2e24;
    margin-bottom: 12px;
}

.hero-title-accent {
    color: #007852;
}

.hero-subtitle {
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #007852;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 16px;
    line-height: 1.65;
    color: #4a6358;
    margin-bottom: 36px;
    max-width: 480px;
}

/* CTA Buttons */
.hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* Immagine destra */
.hero-image-col {
    position: relative;
}

.hero-image-wrap {
    position: relative;
    border-radius: 24px;
    overflow: visible;
}

.hero-image {
    width: 100%;
    height: 460px;
    object-fit: cover;
    border-radius: 24px;
    display: block;
    box-shadow: 0 24px 60px rgba(0,100,70,0.18);
}

/* Placeholder se l'immagine manca */
.hero-image-placeholder {
    background: linear-gradient(145deg, #c8e6da, #a8d5c2);
    border-radius: 24px;
    height: 460px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Badge flottante "20+ anni" */
.hero-badge {
    position: absolute;
    bottom: -20px;
    left: -24px;
    background: #ffffff;
    border-radius: 16px;
    padding: 16px 22px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 32px rgba(0,100,70,0.15);
    border: 1px solid rgba(0,130,100,0.1);
}

.hero-badge-number {
    font-size: 32px;
    font-weight: 700;
    color: #007852;
    line-height: 1;
}

.hero-badge-text {
    font-size: 12px;
    color: #4a6358;
    font-weight: 500;
    line-height: 1.4;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-title {
        font-size: 34px;
    }

    .hero-description {
        max-width: 100%;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-logo-wrap {
        display: flex;
        justify-content: center;
    }

    .hero-image {
        height: 300px;
    }

    .hero-image-placeholder {
        height: 300px;
    }

    .hero-badge {
        left: 50%;
        transform: translateX(-50%);
        bottom: -16px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 0 50px;
    }

    .hero-title {
        font-size: 26px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
}
