/* ========================= */
/* GENERAL */
/* ========================= */

@font-face {
    font-family: 'Open Sans';
    src: url('../font/Open_Sans/static/OpenSans-Regular.ttf')
}

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

html {
    scroll-behavior: smooth;
    scrollbar-width: none;
}

/* Chrome, Edge, Safari */
::-webkit-scrollbar {
    display: none;
}

::selection {
    background: rgba(0, 0, 0, 0.5);
    color: red;
}

::-moz-selection {
    background: rgba(0, 0, 0, 0.85);
    color: red;
}

body {
    font-family: "Open Sans", Arial, sans-serif;
    color: white;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    background: transparent;
    -ms-overflow-style: none;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;

    background-image: url("../img/background.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    z-index: -2;

    will-change: transform;
    transform: translateZ(0) scale(1.02);
}

/* ========================= */
/* NAVBAR */
/* ========================= */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px;
    padding: 0 2rem;
    background: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.nav-left {
    font-size: 1.3rem;
    font-weight: bold;
}

.nav-left a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: white;
    text-decoration: none;
    transition: 0.2s;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: white;
    display: block;
}

.nav-logo {
    height: 36px;
    width: auto;
    opacity: 0.9;
}

.nav-title-short {
    display: none;
}

.nav-left a:hover {
    opacity: 0.85;
}

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

.nav-links a {
    color: lightgray;
    text-decoration: none;
    transition: 0.2s;
}

.nav-links a:hover {
    color: white;
}

.nav-links a.panel-link {
    color: white;
    position: relative; /* necessario per posizionare il pallino */
}

/* Pallino */
.nav-links a.panel-link::after {
    content: '';
    display: none;
    position: absolute;
    top: 0;
    right: -10px;
    width: 8px;
    height: 8px;
    background: red;
    border-radius: 50%;
}

.nav-links a.panel-link.has-notif::after {
    display: block;
}

/* ============================= */
/* OVERLAY */
/* ============================= */

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 50;
}

.overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* ============================= */
/* PANNELLO LATERALE */
/* ============================= */

.side-panel {
    position: fixed;
    top: calc(70px + 3vh);
    right: 0;
    width: 600px;
    height: calc(100vh - 70px - 6vh);
    background: rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    color: white;
    padding: 1.5rem;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.8));
    transform: translateX(100%);
    z-index: 5000;
}

/* STATO APERTO – BOUNCE IN */
.side-panel.open {
    animation: panelBounceIn 0.3s ease-out forwards;
}

/* STATO CHIUSURA – BOUNCE OUT */
.side-panel.closing {
    animation: panelBounceOut 0.25s ease-in forwards;
}

/* Entrata */
@keyframes panelBounceIn {
    0%   { transform: translateX(100%); }
    50%  { transform: translateX(-10%); }
    75%  { transform: translateX(-8%); }
    100% { transform: translateX(-5%); }
}

/* Uscita */
@keyframes panelBounceOut {
    0%   { transform: translateX(-5%); }
    25%  { transform: translateX(-8%); }
    50%  { transform: translateX(-10%); }
    100% { transform: translateX(100%); }
}

/* ============================= */
/* HEADER PANNELLO */
/* ============================= */

.panel-header {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.8rem;
    background: transparent;
    backdrop-filter: blur(10px);
}

/* Titolo – fix allineamento */
.panel-header h2 {
    margin: 0;
    line-height: 1;
}

/* Bottone chiusura – fix allineamento */
.panel-close {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 1.6em;
    background: none;
    border: none;
    color: white;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.75;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.panel-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* ============================= */
/* LISTA NEWS */
/* ============================= */

.news-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: calc(100% - 60px);
    overflow-y: auto;
    padding-top: 5px;
}

.news-card {
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 1rem;
    backdrop-filter: blur(10px);
    transition: transform 0.2s ease, background 0.2s ease;
}

.news-card:hover {
    transform: translateY(-3px);
    background: rgba(255,255,255,0.12);
}

.news-card h3 {
    font-size: 1rem;
    margin: 0.5rem 0;
}

.news-date {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    opacity: 0.85;
}

.calendar-icon {
    width: 24px;
    height: 24px;
    fill: #d0d0d0;
    flex-shrink: 0;
}

.news-btn {
    display: inline-block;       /* 🔑 fa funzionare margin */
    margin-top: 0.8rem;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 8px;
    background: rgba(255,255,255,0.15);
    color: white;
    text-decoration: none;       /* 🔑 toglie la sottolineatura */
    cursor: pointer;
    transition: 0.2s;
}
.news-btn:hover {
    text-decoration: none;
    background: rgba(255,255,255,0.25);
}

.news-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    display: inline-block;
}

.news-card.exam .news-badge  { background: #ff6b6b; }
.news-card.stage .news-badge { background: #4dabf7; }
.news-card.gara .news-badge  { background: #ffd43b; color: black;}
.news-card.social .news-badge {background: #9775fa;}

/* ============================= */
/* PAGE CONTENT + FOOTER */
/* ============================= */

.section {
    min-height: 100vh;
    width: 100%;
    padding: 0;
    display: flex;
}

.content-container {
    width: 100%;
    max-width: 1700px;
    margin: 0 auto;
    padding:
        calc(70px + 2rem)
        3rem
        2rem
        3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5rem;
}

/* HOME LAYOUT */
#home {
    position: relative;
}

#home .content-container {
    position: relative;
}

.home-left {
    flex: 1.1;
    opacity: 0;
    transform: translateX(-25px);
    padding-left: 2rem;
}

#home.loaded .home-left {
    opacity: 1;
    transform: translateX(0);
    transition:
        opacity .8s ease,
        transform .8s ease;
}

.home-left p {
    margin-top: 1.75rem;
    line-height: 1.9;
    max-width: 65ch;
}

#home h1::before {
    content: "";
    display: block;
    width: 60px;
    height: 2px;
    margin-bottom: 1.25rem;
    background: rgba(255,255,255,0.35);
}

#home h1 {
    letter-spacing: -1px;
    line-height: 1;
    margin-bottom: 0;
}

#home h1,
#home p {
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.home-buttons {
    margin-top: 3rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    opacity: 0;
    transform: translateY(-15px);
}

.social-icons {
    opacity: 0;
    transform: translateX(-10px);
}

#home.loaded .home-buttons {
    opacity: 1;
    transform: translateY(0);
    transition: all .7s ease;
    transition-delay: .15s;
}

#home.loaded .social-icons {
    opacity: 1;
    transform: translateX(0);
    transition: all .6s ease;
    transition-delay: .25s;
}

.primary-button {
    background: rgba(255,255,255,0.15);
    color: white;
    border: 1px solid transparent;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.primary-button:hover {
    background: rgba(0,0,0,0.05);
    color: whitesmoke;
    border: 1px solid rgba(255,255,255,0.15);
}

.social-icons {
    display: flex;
    flex-direction: row;
    gap: 12px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    outline: none;
}

.social-icon:focus,
.social-icon:active,
.social-icon:visited {
    outline: none;
    text-decoration: none;
}

.social-icon svg {
    width: 36px;
    height: 36px;
    fill: white;
    transition: transform 0.2s, fill 0.2s;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6));
    display: block;
}

.social-icon:hover svg {
    transform: scale(1.1);
}

.social-icon.facebook:hover svg {
    fill: #4dabf7;
}

.social-icon.instagram:hover svg {
    fill: #c13584;
}

.social-icon.youtube:hover svg {
    fill: #ff0000;
}

.home-right {
    flex: 0.9;
    display: flex;
    justify-content: center;
}

.logo {
    width: 100%;
    max-width: 450px;
    opacity: 0.85;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.4));
}

.logo {
    opacity: 0;
    transform: translateX(25px) scale(.97);
}

#home.loaded .logo {
    opacity: .85;
    transform: translateX(0) scale(1);

    transition:
        opacity 1s ease,
        transform 1s ease;
}

/* ========================= */
/* CORSI */
/* ========================= */

.courses-container {

    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 2rem;
}

.course-box {
    width: 32%;
    height: 35vw;
    min-height: 620px;
    max-height: 760px;
    background: rgba(255,255,255,0.08);
    padding: 1.2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    opacity: 0;
    transform: translateY(20px);
}

.course-box.in-view {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.course-img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 12px;
}

.course-box h3 {
    margin: 0;
    margin-top: 2rem;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.course-box:hover h3 {
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.course-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.2rem;
}

.orari {
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 500;
}

.nota-corso {
    display: block;
    margin-top: 0.3rem;
    font-style: italic;
    font-size: 0.95rem;
    opacity: 0.85;
}

.nav-button.small {
    width: 72px;
    height: 72px;
    min-width: 72px;
    border-radius: 14px;
    background: rgba(255,255,255,0.22);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none; /* evita sottolineatura link */
    transition: 0.2s;
}

.nav-button.small:hover,
.nav-button.small:focus {
    background: rgba(255,255,255,0.35);
    text-shadow: 0 1px 6px rgba(0,0,0,0.35);
    animation: none;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}

.nav-button.small svg {
    width: 24px;
    fill: white;
    transition: 0.2s;
}

.course-spacer {
    flex-grow: 1;
}

.course-desc {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-top: 0.4rem;
    opacity: 0.8;
    font-style: italic;
}

/* ========================= */
/* CONTATTACI */
/* ========================= */

.contact-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.45);
}

.contact-grid {
    display: flex;
    gap: 2.5rem;
    width: 100%;
    height: 520px;
}

.contact-map {
    flex: 1.1;
    height: 100%;
    border-radius: 15px;
    overflow: hidden;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.contact-form {
    flex: 0.9;
    height: 100%;
    padding: 1.6rem;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    background: none;
    box-shadow: none;
    backdrop-filter: none;
}

/* ========================= */
/* ANIMAZIONE INGRESSO */
/* ========================= */

/* Stato iniziale */

#name,
#email,
#subject,
#message,
.contact-form button[type="submit"] {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
    will-change: opacity, transform;
}

.subject-options {
    opacity: 0;
    will-change: opacity;
}

/* Nome */

.contact-form.animate #name {
    animation: formFadeUp 0.45s ease forwards;
    animation-delay: 0.05s;
}

/* Email */

.contact-form.animate #email {
    animation: formFadeUp 0.45s ease forwards;
    animation-delay: 0.12s;
}

/* Oggetto */

.contact-form.animate #subject {
    animation: formFadeUp 0.45s ease forwards;
    animation-delay: 0.19s;
}

/* Suggerimenti */

.contact-form.animate .subject-options {
    animation: fadeOnly 0.35s ease forwards;
    animation-delay: 0.24s;
}

/* Messaggio */

.contact-form.animate #message {
    animation: formFadeUp 0.45s ease forwards;
    animation-delay: 0.31s;
}

/* Pulsante */

.contact-form.animate button[type="submit"] {
    animation: formFadeUp 0.45s ease forwards;
    animation-delay: 0.38s;
}

/* Feedback escluso */

.form-feedback {
    opacity: 1;
    transform: none;
    animation: none;
}

@keyframes formFadeUp {
    from {
        opacity: 0;
        transform: translate3d(0, 20px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeOnly {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ========================= */
/* CAMPI FORM */
/* ========================= */

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    margin-bottom: 1rem;
    background-color: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    backdrop-filter: blur(6px);
    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255,255,255,0.7);
    transition: opacity 0.25s ease;
}

.contact-form input:focus::placeholder,
.contact-form textarea:focus::placeholder {
    opacity: 0.45;
}

.contact-form input:hover,
.contact-form textarea:hover {
    background-color: rgba(255,255,255,0.20);
    border-color: rgba(255,255,255,0.40);

    box-shadow:
        0 6px 18px rgba(0,0,0,0.15);
}

.contact-form input:focus,
.contact-form textarea:focus {
    background-color: rgba(255,255,255,0.22);
    border-color: rgba(255,255,255,0.55);

    box-shadow:
        0 8px 24px rgba(0,0,0,0.20);
}

.contact-form textarea {
    height: 140px;
    resize: none;
    font-family: inherit;
}

.contact-form button {
    margin-top: auto;
}

/* ========================= */
/* SUBJECT INPUT SUGGERIMENTI */
/* ========================= */

.subject-wrapper {
    position: relative;
    width: 100%;
}

.subject-options {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(calc(-50% - 8px));
    display: flex;
    align-items: center;
    gap: 6px;
    pointer-events: auto;
}

.subject-chip {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    border: 1px solid rgba(255,255,255,0.25);
    background-color: rgba(255,255,255,0.12);
    backdrop-filter: blur(6px);
    color: white;
    cursor: pointer;
    white-space: nowrap;

    transition:
        background-color .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

.subject-chip:hover {
    background-color: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.45);
    transform: translateY(-1px);
}

/* ========================= */
/* FEEDBACK FORM */
/* ========================= */

.form-feedback {
    margin-top: 10px;
    font-size: 0.9rem;
}

/* ========================= */
/* FOOTER */
/* ========================= */

.site-footer {
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 3rem 2rem 1.5rem;
    color: rgba(255,255,255,0.85);
    box-shadow: 0 -10px 30px rgba(0,0,0,0.5);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.site-footer .footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-column h4 {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.8);
}

.footer-contact-item svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    opacity: 0.85;
}

.footer-contact-item a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.footer-contact-item a:hover {
    color: white;
    opacity: 1;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.4rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.15);
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.7;
}







@media (max-width: 1020px) {
    .subject-options{
        display: none !important;
    }

}

/* =====================================================
   MOBILE – max 768px
   ===================================================== */

@media (max-width: 768px) {

/* =========================
   NAVBAR MOBILE
   ========================= */

    .navbar {
        height: auto;
        min-height: 70px;
        padding: 0 1rem;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        overflow: hidden;
    }

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

    .nav-left {
        display: flex;
        align-items: center;
        font-size: 1.05rem;
    }

    .nav-title-full {
        display: none;
    }

    .nav-title-short {
        display: inline;
        font-weight: bold;
        letter-spacing: 1px;
    }

    .nav-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
    }

    .nav-toggle span {
        width: 24px;
        height: 2px;
        background: white;
        display: block;
        transition:
            transform .25s ease,
            opacity .25s ease;
    }

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

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

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

    .nav-links {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        max-height: 0;
        overflow: hidden;
        border-top: 1px solid rgba(255,255,255,0.08);
        opacity: 0;
        padding: 0 1rem;
        transition:
            max-height .3s ease,
            opacity .25s ease,
            padding .25s ease;
    }

    .nav-links.open {
        max-height: 300px;
        opacity: 1;
        max-height: 250px;
        padding: 1rem;
        padding:
            0.5rem
            1rem
            1.25rem;
    }

    .nav-links a {

        display: block;

        color: white;

        text-decoration: none;

        font-size: 1.05rem;

        padding: .4rem 0;
    }

    /* =========================
       NEWS PANEL
       ========================= */

    .side-panel {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: auto;
        height: 88vh;
        margin: 0;
        padding: 1.2rem 1.2rem 1.6rem;
        border-radius: 20px 20px 0 0;
        transform: translateY(100%);
        animation: none !important;
        z-index: 11000;
    }

    .side-panel.open {
        transform: translateY(0);
    }

    .side-panel.closing {
        transform: translateY(100%);
    }

    .news-list {
        max-height: calc(100% - 50px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* =========================
       SEZIONI GENERALI
       ========================= */

    .section {
        position: relative;
        min-height: auto;
        display: block;
        padding: 2.5rem 0;
    }

    .section::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        pointer-events: none;
        z-index: 1;
    }

    .section:first-of-type {
        padding-top: 3.8rem;
    }

    .section:last-of-type {
        padding-bottom: 3.5rem;
    }

    .content-container {
        position: relative;
        z-index: 2;
        flex-direction: column;
        justify-content: center;
        padding: calc(70px + 1.2rem) 1.2rem 1.5rem;
        gap: 1.8rem;
        text-align: left;
    }

    /* =========================
       HOME – FIX SPAZI VUOTI
       ========================= */

    #home {
        padding: 1.2rem 0 1.6rem;
    }

    /* #home::before {
        content: none !important;
    } */

    #home .content-container {
        padding-top: calc(70px + 3rem);
        padding-bottom: 0;
    }

    .home-left {
        width: 100%;
        max-width: 520px;
        text-align: left;
        padding-left: 0;
    }

    .home-right {
        display: none;
    }

    .home-buttons {
        justify-content: left;
        flex-wrap: wrap;
        gap: 1rem;
    }

    /* =========================
       CORSI
       ========================= */

    .courses-container {
        flex-direction: column;
        gap: 1.6rem;
    }

    .course-box {
        width: 100%;
        height: auto;
        min-height: 480px;
        max-height: none;
        padding-bottom: 1rem;
    }

    .course-img {
        height: 170px;
    }

    .course-box h3 {
        font-size: 1.4rem;
    }

    .nav-button.small {
        width: 54px;
        height: 54px;
        min-width: 54px;
    }

    /* =========================
       CONTATTI
       ========================= */

    #contattaci .content-container {
        padding-top: 1.5rem;
    }
    .contact-grid {
        flex-direction: column;
        gap: 1.6rem;
        height: auto;
    }

    .contact-map {
        height: 240px;
    }

    .contact-form {
        padding: 0;
    }

    /* =========================
       FOOTER – CENTRATO
       ========================= */

    .site-footer {
        padding-top: 2.5rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }

    .site-footer .footer-column {
        align-items: center;
        text-align: center;
    }

    .footer-contact-item {
        justify-content: center;
    }

    .footer-links {
        align-items: center;
    }

    .footer-bottom {
        font-size: 0.75rem;
        padding: 1rem 0 0.5rem;
    }
}





































/* ====================================== */
/* 4K / LARGE DESKTOP */
/* ====================================== */

@media screen and (min-width: 2560px) {

    html {
        font-size: 18px;
    }

    /* ========================= */
    /* NAVBAR */
    /* ========================= */

    .navbar {

        height: 88px;

        padding-inline: 3.5rem;
    }

    .nav-logo {
        height: 44px;
    }

    .nav-left {
        font-size: 1.45rem;
    }

    .nav-links {
        gap: 1.6rem;
    }

    .nav-links a {
        font-size: 1.05rem;
    }

    /* ========================= */
    /* SIDE PANEL */
    /* ========================= */

    .side-panel {
        top: calc(88px + 2vh);
        right: -2%;
        width: 860px;
        height: calc(100vh - 88px - 4vh);
        padding: 2rem;
        border-radius: 22px;
    }

    .news-card {
        padding: 1.3rem;
    }

    .news-card h3 {
        font-size: 1.1rem;
    }

    /* ========================= */
    /* GLOBAL LAYOUT */
    /* ========================= */

    .content-container {

        max-width: 2400px;

        margin: 0 auto;

        padding:
            calc(88px + 2rem)
            2.5rem
            2rem
            2.5rem;

        gap: 5rem;
    }

    /* ========================= */
    /* HOME */
    /* ========================= */

    .home-left {
        width: 55%;
    }

    .home-right {
        width: 45%;
    }

    #home h1 {
        font-size: clamp(3.2rem, 3.2vw, 4.4rem);
        line-height: 1;
        margin-bottom: 1.2rem;
    }

    #home p {
        font-size: 1.3rem;
        line-height: 1.9;
        max-width: 950px;
    }

    .home-buttons {
        margin-top: 3rem;
        gap: 2rem;
    }

    .primary-button {
        padding: 1.15rem 1.8rem;
        font-size: 1.05rem;
        border-radius: 14px;
    }

    .social-icon svg {
        width: 44px;
        height: 44px;
    }

    .logo {
        width: 90%;
        max-width: 720px;
    }

    /* ========================= */
    /* CORSI */
    /* ========================= */

    .courses-container {
        justify-content: center;
        align-items: center;
        gap: 6rem;
    }

    .course-box {
        width: 33%;
        height: 860px;
        max-height: unset;
        padding: 2rem;
        border-radius: 24px;
    }

    .course-img {
        height: 380px;
        border-radius: 20px;
    }

    .course-box h3 {
        font-size: 2.3rem;
        margin-top: 2rem;
    }

    .orari {
        font-size: 1.2rem;
        line-height: 1.8;
    }

    .nota-corso {
        font-size: 1rem;
    }

    .course-desc {
        font-size: 1rem;
        line-height: 1.8;
    }

    .nav-button.small {
        width: 86px;
        height: 86px;
        min-width: 86px;
        border-radius: 18px;
    }

    .nav-button.small svg {
        width: 28px;
    }

    /* ========================= */
    /* CONTATTI */
    /* ========================= */

    .contact-wrapper {
        max-width: 1700px;
        padding: 3rem;
        border-radius: 28px;
    }

    .contact-grid {
        height: 650px;
        gap: 3rem;
    }

    .contact-map {
        border-radius: 20px;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 1.02rem;
        padding: 1rem 1.1rem;
        border-radius: 14px;
    }

    .contact-form textarea {
        height: 240px;
    }

    .subject-chip {
        font-size: 0.8rem;
        padding: 5px 12px;
    }

    /* ========================= */
    /* FOOTER */
    /* ========================= */

    .site-footer {
        padding: 4rem 3rem 2rem;
    }

    .footer-content {
        max-width: 1600px;
    }

    .footer-column h4 {
        font-size: 1.2rem;
    }

    .footer-contact-item,
    .footer-links a {
        font-size: 1rem;
    }

}