/* ═══════════════════════════════════════════
   T.Com ICT — Stili condivisi (tutte le pagine)
   File: css/style.css
═══════════════════════════════════════════ */

/* ── VARIABILI ── */
:root {
    --white: #ffffff;
    --off-white: #f8f7f4;
    --light-gray: #f0eeea;
    --mid-gray: #c8c4bc;
    --text-dark: #1a1916;
    --text-mid: #4a4844;
    --text-light: #7a7774;
    --accent: #2e7d32;
    --accent-light: #e8f5e2;
    --accent-warm: #c8860a;
    --border: #e4e0d8;
}

/* ── RESET & BASE ── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--white);
    color: var(--text-dark);
    font-size: 16px;
    line-height: 1.65;
}

/* ── NAVIGATION ── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.nav-logo {
    font-family: 'Manrope', 'DM Sans', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.04em;
    text-decoration: none;
    text-transform: uppercase;
}

    .nav-logo span {
        color: var(--accent-warm);
        font-weight: 800;
    }

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

    .nav-links a {
        text-decoration: none;
        font-size: 0.88rem;
        font-weight: 500;
        color: var(--text-mid);
        letter-spacing: 0.02em;
        transition: color 0.2s;
    }

        .nav-links a:hover {
            color: var(--accent);
        }

.nav-cta {
    background: var(--accent) !important;
    color: white !important;
    padding: 0.5rem 1.2rem;
    border-radius: 4px;
    transition: background 0.2s !important;
}

    .nav-cta:hover {
        background: #163d73 !important;
        color: white !important;
    }

/* ── BOTTONI ── */
.btn-primary {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 0.85rem 2rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    margin-right: 1rem;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

    .btn-primary:hover {
        background: #163d73;
        transform: translateY(-1px);
    }

.btn-secondary {
    display: inline-block;
    border: 1.5px solid var(--accent);
    color: var(--accent);
    padding: 0.85rem 2rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

    .btn-secondary:hover {
        background: var(--accent-light);
    }

/* ── SEZIONI COMUNI ── */
section {
    padding: 80px 5%;
}

.section-tag {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-warm);
    margin-bottom: 0.8rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    max-width: 600px;
}

.section-desc {
    font-size: 1rem;
    color: var(--text-mid);
    font-weight: 300;
    max-width: 580px;
    margin-bottom: 3rem;
}

.divider {
    width: 60px;
    height: 3px;
    background: var(--accent-warm);
    margin: 1.5rem 0 2.5rem;
    border-radius: 2px;
}

/* ── PLACEHOLDER IMMAGINI ── */
.img-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--text-light);
}

    .img-placeholder svg {
        opacity: 0.4;
    }

/* ── FOOTER ── */
footer {
    background: var(--text-dark);
    color: rgba(255,255,255,0.6);
    padding: 40px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

    footer .logo {
        font-family: 'Manrope', 'DM Sans', sans-serif;
        font-size: 1.2rem;
        color: white;
        font-weight: 800;
        letter-spacing: -0.04em;
        text-transform: uppercase;
    }

        footer .logo span {
            color: var(--accent-warm);
        }

    footer p {
        font-size: 0.82rem;
    }

    footer a {
        color: rgba(255,255,255,0.5);
        text-decoration: none;
        transition: color 0.2s;
        font-size: 0.82rem;
    }

        footer a:hover {
            color: white;
        }

/* ── ANIMAZIONI ── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

.fade-in-delay-1 {
    animation: fadeInUp 0.6s ease 0.1s both;
}

.fade-in-delay-2 {
    animation: fadeInUp 0.6s ease 0.2s both;
}

.fade-in-delay-3 {
    animation: fadeInUp 0.6s ease 0.3s both;
}

/* ── RESPONSIVE ── */

/* ── HAMBURGER ── */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 101;
}

    .nav-hamburger span {
        display: block;
        width: 22px;
        height: 2px;
        background: var(--accent);
        border-radius: 2px;
        transition: transform 0.3s ease, opacity 0.3s ease;
        transform-origin: center;
    }

    /* Animazione X quando aperto */
    .nav-hamburger.open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-hamburger.open span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .nav-hamburger.open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

@media (max-width: 768px) {
    .nav-hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        z-index: 99;
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    }

        .nav-links.open {
            display: flex;
        }

        .nav-links li {
            width: 100%;
        }

        .nav-links a {
            display: block;
            padding: 0.85rem 5%;
            font-size: 1rem;
            border-bottom: 1px solid var(--border);
        }

        .nav-links li:last-child a {
            border-bottom: none;
        }

    .nav-cta {
        margin: 0.75rem 5% 0.25rem !important;
        display: block;
        text-align: center;
        border-radius: 6px !important;
        padding: 0.75rem !important;
    }
}
