:root {
    --primary-color: #DDDA00;
    /* Giallo Logo */
    --bg-dark: #121212;
    --bg-darker: #0d0d0d;
    --text-muted: #999;
    --font-heading: 'Kensington', 'Oswald', sans-serif;
    --font-body: 'Poppins', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: #ffffff;
    font-family: var(--font-body);
    line-height: 1.6;
}

.bg-darker {
    background-color: var(--bg-darker);
}

h1,
h2,
h3,
h4,
.kensington-heading {
    font-family: var(--font-heading) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

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

.text-white {
    color: #ffffff;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-40 {
    margin-top: 40px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.text-center {
    text-align: center;
}

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

/* Header */
.main-header {
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 10;
    padding: 20px 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 80px;
    width: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 30px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 14px;
    border: none;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #000;
}

.btn-primary:hover {
    background-color: #C4C100;
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
    display: block;
    text-align: center;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-image: url('Sfondo.jpg');
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(13, 13, 13, 0.95) 0%, rgba(13, 13, 13, 0.85) 50%, rgba(13, 13, 13, 0.6) 100%);
}

.hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
    padding-top: 100px;
    gap: 50px;
}

.hero-content {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
}

.hero-subtitle {
    font-size: 13px;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 20px;
    display: inline-block;
    text-transform: uppercase;
}

.hero-title {
    font-size: 4rem;
    line-height: 0.95;
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
}

.hero-description {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 500px;
}

/* Card Form */
.hero-form-wrapper {
    background-color: #1a1b1d;
    padding: 40px;
    border-radius: 8px;
    width: 100%;
    max-width: 450px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-title {
    font-size: 28px;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 10px;
}

.form-group input {
    width: 100%;
    padding: 15px;
    background-color: #111;
    border: 1px solid #2a2a2a;
    color: #fff;
    border-radius: 4px;
    font-family: var(--font-body);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Sections */
.section {
    padding: 90px 0;
}

.section-header {
    margin-bottom: 40px;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 10px;
}

/* Value Prop */
.value-prop-flex {
    display: flex;
    gap: 60px;
    align-items: center;
}

.value-prop-image {
    flex: 1;
}

.value-prop-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.value-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.value-item:last-child {
    border-bottom: none;
}

.value-icon {
    font-size: 24px;
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    border: 1px solid rgba(204, 253, 54, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    flex-shrink: 0;
}

.value-title {
    font-size: 20px;
    margin-bottom: 5px;
    text-transform: uppercase;
}

/* Corsi */
.corsi-grid-custom {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.corso-card {
    padding: 40px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: #111214;
}

.corso-card:nth-child(3n) {
    border-right: none;
}

.corso-card:nth-child(n+4) {
    border-bottom: none;
}

.corso-num {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
}

.corso-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.corso-card p {
    font-size: 14px;
}

/* Mission */
.mission-flex {
    display: flex;
    gap: 60px;
    align-items: center;
}

.mission-content {
    flex: 1;
}

.mission-image {
    flex: 1;
}

/* Servizi */
.oswald {
    font-family: var(--font-heading) !important;
    text-transform: uppercase;
}

.section-subtitle {
    font-size: 18px;
}

.grid {
    display: grid;
    gap: 25px;
}

.servizi-grid {
    grid-template-columns: repeat(3, 1fr);
}

.corsi-grid {
    grid-template-columns: repeat(4, 1fr);
}

.card {
    background-color: #1a1b1d;
    padding: 35px 25px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.card:hover {
    background-color: #222;
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.card-title {
    font-size: 22px;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.card-desc {
    font-size: 15px;
    line-height: 1.6;
}

.icon-wrapper {
    font-size: 36px;
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 992px) {

    .value-prop-flex,
    .mission-flex {
        flex-direction: column;
    }

    .corsi-grid-custom {
        grid-template-columns: repeat(2, 1fr);
    }

    .servizi-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .corsi-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .corso-card:nth-child(2n) {
        border-right: none;
    }

    .corso-card:nth-child(3n) {
        border-right: 1px solid rgba(255, 255, 255, 0.05);
    }

    .hero-container {
        justify-content: center;
        text-align: center;
        flex-direction: column;
    }

    .hero-form-wrapper {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .corsi-grid-custom {
        grid-template-columns: 1fr;
    }

    .servizi-grid {
        grid-template-columns: 1fr;
    }

    .corsi-grid {
        grid-template-columns: 1fr;
    }

    .corso-card {
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    }

    .corso-card:last-child {
        border-bottom: none !important;
    }

    .footer-content-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.5rem;
    }
    .milano-duomo-text {
        display: inline-block;
        white-space: nowrap;
    }

    .section-title {
        font-size: 2.5rem;
    }
}