@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

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

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #ffffff;
    color: #333333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.page-header {
    background-color: #ffffff;
    padding: 20px;
    position: relative;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 15px;
}

.site-logo {
    height: 40px;
    width: auto;
    display: block;
    object-fit: contain;
}

.site-title {
    font-size: 24px;
    font-weight: 700;
}

/* Body */
.page-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
}

.body-container {
    text-align: center;
    padding: 40px 20px;
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    flex: 1;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5);
    z-index: 1;
}

.hero-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.hero-text {
    font-size: 52px;
    font-weight: 800;
    letter-spacing: -1px;
    color: #ffffff;
    max-width: 900px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
}

.hero-subtext {
    font-size: 22px;
    font-weight: 500;
    color: #e5e7eb;
    max-width: 800px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    line-height: 1.6;
    margin-top: 5px;
    margin-bottom: 25px;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    color: #000000;
    text-decoration: none;
    padding: 18px 40px;
    font-size: 20px;
    font-weight: 700;
    border-radius: 8px;
    border: 2px solid #ffffff;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.hero-cta:hover {
    background-color: #f3f4f6;
    border-color: #f3f4f6;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

/* Footer */
.page-footer {
    background-color: #ffffff;
    padding: 30px 20px;
    position: relative;
    z-index: 10;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
}

/* --- OTTIMIZZAZIONE MOBILE --- */

/* Impedisce a qualsiasi immagine di superare la larghezza dello schermo */
img {
    max-width: 100%;
}

@media (max-width: 768px) {
    /* Centra il logo nell'header */
    .header-container {
        justify-content: center;
    }

    /* Riduce il testo per evitare overflow */
    .hero-text {
        font-size: 32px;
    }

    .hero-subtext {
        font-size: 16px;
        line-height: 1.5;
    }

    .hero-cta {
        padding: 14px 28px;
        font-size: 16px;
    }

    /* Ottimizza gli spazi generali */
    .body-container {
        padding: 20px 15px;
    }

    .page-footer {
        padding: 20px 15px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* --- CONTACT FORM --- */
.contact-container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    text-align: left;
}

.form-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
}

.form-subtitle {
    color: #666;
    margin-bottom: 30px;
    text-align: center;
}

.contact-form {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 16px;
    transition: border-color 0.3s;
    background-color: #fafafa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #007bff;
    outline: none;
    background-color: #fff;
}

.checkbox-group {
    margin-bottom: 25px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: normal;
    color: #555;
    cursor: pointer;
}

.privacy-link {
    color: #007bff;
    text-decoration: underline;
}

.submit-button {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: #333;
}

.success-message {
    margin-top: 20px;
    padding: 15px;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    text-align: center;
}

.error-message {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    text-align: center;
}

/* Nav styles */
.main-nav {
    margin-left: auto;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    margin-left: 20px;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s;
}

.nav-link:hover, .nav-link.active {
    border-bottom: 2px solid #000;
}

/* --- FAQ SECTION --- */
.faq-hero {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.faq-hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.1) 0%, transparent 60%);
    pointer-events: none;
}

.faq-hero-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.faq-hero-subtitle {
    font-size: 20px;
    color: #e0e0e0;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.faq-container {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
}

.faq-item {
    margin-bottom: 20px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 24px 30px;
    background: none;
    border: none;
    font-size: 18px;
    font-weight: 600;
    color: #222;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
    transition: color 0.3s ease;
}

.faq-question::after {
    content: '+';
    font-size: 24px;
    font-weight: 300;
    color: #007bff;
    transition: transform 0.3s ease;
}

.faq-question.active {
    color: #007bff;
}

.faq-question.active::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
    background-color: #fafafa;
}

.faq-answer p {
    padding: 0 30px 24px 30px;
    color: #555;
    line-height: 1.7;
    font-size: 16px;
}

.faq-answer.open {
    transition: max-height 0.4s cubic-bezier(0.9, 0, 1, 1);
}

@media (max-width: 768px) {
    .faq-hero {
        padding: 60px 20px;
    }
    .faq-hero-title {
        font-size: 36px;
    }
    .faq-question {
        font-size: 16px;
        padding: 20px;
    }
    .faq-answer p {
        padding: 0 20px 20px 20px;
    }
}

/* --- HAMBURGER MENU --- */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 20;
    margin-left: auto;
}

.hamburger-btn span {
    width: 100%;
    height: 3px;
    background-color: #333;
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

@media (max-width: 768px) {
    .header-container {
        justify-content: flex-start !important;
        flex-wrap: wrap;
    }
    
    .hamburger-btn {
        display: flex !important;
        -webkit-appearance: none;
        appearance: none;
    }

    .main-nav {
        flex-basis: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
        margin-left: 0;
        width: 100%;
        background: #ffffff;
    }

    .main-nav.open {
        max-height: 250px;
        padding-top: 15px;
    }

    .nav-link {
        margin: 10px 0;
        margin-left: 0;
    }
    
    .hamburger-btn.open span:nth-child(1) {
        transform: rotate(45deg);
    }
    
    .hamburger-btn.open span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger-btn.open span:nth-child(3) {
        transform: rotate(-45deg);
    }
}