/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.cookie-content {
    background: white;
    padding: 40px;
    border-radius: 8px;
    max-width: 600px;
    margin: 20px;
    text-align: left;
}

.cookie-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.cookie-content p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #666;
}

.cookie-content strong {
    color: #333;
    font-weight: 600;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.cookie-buttons button {
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-accept {
    background: #4a7c59;
    color: white;
}

.btn-accept:hover {
    background: #3d6b4a;
}

.btn-settings, .btn-reject {
    background: transparent;
    color: #4a7c59;
    border: 2px solid #4a7c59;
}

.btn-settings:hover, .btn-reject:hover {
    background: #4a7c59;
    color: white;
}

/* Header Styles */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo span {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #4a7c59;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    margin-top: 80px;
    padding: 80px 0;
    background: #f8f9fa;
    background: url(./img/im1.png) no-repeat center/cover;
}

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

.hero-content h1 {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #333;
}

.hero-content p {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn-primary, .btn-secondary {
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-primary {
    background: #4a7c59;
    color: white;
}

.btn-primary:hover {
    background: #3d6b4a;
}

.btn-secondary {
    background: transparent;
    color: #4a7c59;
    border: 2px solid #4a7c59;
}

.btn-secondary:hover {
    background: #4a7c59;
    color: white;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Corsi Section */
.corsi {
    padding: 80px 0;
    background: white;
}

.corsi h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #4a7c59;
    margin-bottom: 20px;
}

.corsi > .container > p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    color: #666;
    line-height: 1.6;
}

.corsi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.corso-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.corso-card:hover {
    transform: translateY(-5px);
}

.corso-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.corso-card p {
    color: #666;
    line-height: 1.6;
}

.corsi h3 {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin: 60px 0 40px;
    color: #333;
}

.caratteristiche-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.caratteristica {
    text-align: center;
    padding: 20px;
}

.caratteristica h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.caratteristica p {
    color: #666;
    line-height: 1.6;
}

/* Risorse Section */
.risorse {
    padding: 80px 0;
    background: #f8f9fa;
}

.risorse h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 50px;
    color: #333;
}

.risorse-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.risorsa-item h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.risorsa-item p {
    color: #666;
    line-height: 1.6;
}

.risorse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.risorsa-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.risorsa-card:hover {
    transform: translateY(-5px);
}

.risorsa-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.risorsa-card h4 {
    padding: 20px 20px 10px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.risorsa-card p {
    padding: 0 20px 20px;
    color: #666;
    line-height: 1.6;
}

.risorse h3 {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #333;
}

.articoli-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.articolo-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.articolo-card:hover {
    transform: translateY(-5px);
}

.articolo-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.articolo-card h4 {
    padding: 20px 20px 10px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.articolo-card p {
    padding: 0 20px 20px;
    color: #666;
    line-height: 1.6;
}

/* Testimonianze Section */
.testimonianze {
    padding: 80px 0;
    background: white;
}

.testimonianze h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.testimonianze h3 {
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    color: #4a7c59;
    margin-bottom: 20px;
}

.testimonianze > .container > p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    color: #666;
    line-height: 1.6;
}

.testimonianze-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.testimonianza {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    border-left: 4px solid #4a7c59;
}

.testimonianza p {
    font-style: italic;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.6;
}

.testimonianza cite {
    font-weight: 600;
    color: #4a7c59;
    font-style: normal;
}

/* Contatti Section */
.contatti {
    padding: 80px 0;
    background: #f8f9fa;
}

.contatti h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 50px;
    color: #333;
}

.contatti-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contatti-info h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.contatti-info p {
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.contatti-form {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4a7c59;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    background: #4a7c59;
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 14px;
}

.btn-submit:hover {
    background: #3d6b4a;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-info p {
    margin-bottom: 5px;
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #4a7c59;
}

/* Hidden class for cookie consent */
.hidden {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 40px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 32px;
    }

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

    .risorse-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contatti-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 40px 0;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .corsi, .risorse, .testimonianze, .contatti {
        padding: 60px 0;
    }

    .corsi h2, .risorse h2, .testimonianze h2, .contatti h2 {
        font-size: 28px;
    }

    .corsi h3, .risorse h3 {
        font-size: 24px;
    }

    .corsi-grid, .risorse-grid, .articoli-grid, .testimonianze-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .caratteristiche-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .cookie-content {
        padding: 30px 20px;
        margin: 10px;
    }

    .cookie-buttons {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .nav-container {
        padding: 0 15px;
    }

    .hero-content h1 {
        font-size: 24px;
    }

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

    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 250px;
    }

    .contatti-form {
        padding: 30px 20px;
    }
}