/* =========================
   GENERAL
========================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #111111;
    color: white;
    font-family: "Manrope", sans-serif;
    font-weight: 500;
}


/* =========================
   NAVBAR
========================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 72px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 42px;

    background: rgba(10, 10, 10, 0.35);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);

    border-bottom: 1px solid rgba(255, 255, 255, 0.05);

    z-index: 1000;
}


/* LOGO */

.logo img {
    width: 160px;
    display: block;
}


/* NAVIGATION */

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links a {
    color: white;
    text-decoration: none;

    font-size: 14px;
    letter-spacing: 0.5px;

    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 0.7;
}


/* SUPPORT BUTTON */

.support-button {
    background: #ff008c;

    padding: 10px 16px;

    border-radius: 8px;

    transition: 0.3s;
}

.support-button:hover {
    opacity: 0.8 !important;
}

/* =========================
   SUPPORT MODAL
========================= */

.support-modal {
    position: fixed;
    inset: 0;

    display: flex;
    align-items: flex-start;
    padding-top: 150px;
    justify-content: center;


    z-index: 5000;

    visibility: hidden;
    opacity: 0;

    transition:
        opacity 0.35s ease,
        visibility 0.35s ease;
}


/* BACKDROP */

.support-modal-backdrop {
    position: absolute;
    inset: 0;

    background: rgba(5, 5, 5, 0.55);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}


/* BOX */

.support-modal-box {
    position: relative;
    z-index: 1;

    width: min(880px, 82vw);

    padding: 42px 48px 38px;

    background: rgba(35, 35, 35, 0.42);

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.28);

    transform: translateY(25px) scale(0.985);
    opacity: 0;

    transition:
        transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.35s ease;
}


/* OPEN STATE */

.support-modal.is-open {
    visibility: visible;
    opacity: 1;
}


.support-modal.is-open .support-modal-box {
    transform:
        translateY(0)
        scale(1);

    opacity: 1;
}


/* TITLE */

.support-modal-title {
    margin: 0 0 24px;

    font-family: "Michroma", sans-serif;
    font-size: 35px;
    font-weight: 500;

    color: #ff008c;
}


/* CLOSE */

.support-modal-close {
    position: absolute;

    top: 18px;
    right: 20px;

    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: none;

    background: transparent;

    color: rgba(255, 255, 255, 0.65);

    font-size: 32px;
    font-weight: 300;
    line-height: 1;

    cursor: pointer;

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}


.support-modal-close:hover {
    color: white;
    transform: rotate(90deg);
}


/* FORM */

.support-modal-form {
    display: flex;
    flex-direction: column;

    gap: 18px;
}


.support-modal-form input,
.support-modal-form textarea {
    width: 100%;

    padding: 16px 18px;

    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 4px;

    outline: none;

    background: rgba(8, 8, 8, 0.45);

    color: white;

    font-family: "Manrope", sans-serif;
    font-size: 10px;
    font-weight: 400;

    letter-spacing: 0.8px;

    transition:
        border-color 0.25s ease,
        background 0.25s ease;
}


.support-modal-form input:focus,
.support-modal-form textarea:focus {
    border-color: rgba(255, 0, 140, 0.45);
    background: rgba(8, 8, 8, 0.62);
}


.support-modal-form input {
    height: 42px;
}


.support-modal-form textarea {
    height: 150px;

    resize: none;
}


.support-modal-form input::placeholder,
.support-modal-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.38);
}


/* SEND */

.support-modal-form button {
    align-self: flex-end;

    padding: 13px 26px;

    border: none;
    border-radius: 5px;

    background: #ff008c;

    color: white;

    font-family: "Manrope", sans-serif;
    font-size: 12px;
    font-weight: 400;

    letter-spacing: 0.7px;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}


.support-modal-form button:hover {
    transform: translateY(-2px);
    opacity: 0.85;
}

/* LANGUAGE */

.language {
    opacity: 0.6;
}


/* =========================
   HERO
========================= */

.hero {
    position: relative;

    min-height: 700px;

    background-image:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0) 40%,
            rgba(17, 17, 17, 0.40) 65%,
            rgba(17, 17, 17, 0.90) 85%,
            #111111 96%,
            #111111 100%
        ),
        url("assets/foto-hero.jpg");

    background-size: cover;
    background-position: center top;

    display: flex;
    align-items: center;
}


/* =========================
   HERO CONTENT
========================= */

.hero-content {
    width: 100%;

    padding-left: 40px;
    padding-top: 150px;
}


/* =========================
   COUNTDOWN CARD
========================= */

.countdown-card {
    width: 500px;
    padding: 22px 24px 20px;

    border-radius: 7px;

    background: linear-gradient(
        110deg,
        rgba(52, 91, 96, 0.68) 0%,
        rgba(116, 62, 91, 0.68) 55%,
        rgba(175, 25, 105, 0.68) 100%
    );

    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);

    border: 1px solid rgba(255, 255, 255, 0.08);

    transform: translateY(130px);
}


/* TITLE */

.countdown-title {
    margin: 0 0 14px;

    font-size: 14px;
    letter-spacing: 3px;

    color: rgba(255, 255, 255, 0.8);
}


/* COUNTDOWN ROW */

.countdown-time {
    display: grid;
    grid-template-columns: repeat(5, auto);
    align-items: center;
    justify-content: space-between;
    row-gap: 10px;

    width: 100%;

    line-height: 1;
    white-space: nowrap;
}


/* NUMBERS */

.countdown-number {
    font-family: "Michroma", sans-serif;
    font-weight: 400;

    font-size: 61px;
    letter-spacing: 0;
}


/* COLONS */

.countdown-colon {
    font-family: "Manrope", sans-serif;
    font-weight: 700;

    font-size: 50px;

    color: #ff008c;

    margin: 0 4px;
}


/* LABELS */

.countdown-label {
    justify-self: center;

    /* compensa la spaziatura dopo l'ultima lettera, così il testo
       risulta davvero centrato sotto il numero */
    padding-left: 3px;

    font-size: 9px;
    letter-spacing: 3px;

    color: rgba(255, 255, 255, 0.55);
}

/* =========================
   NEWS
========================= */

.bg-gradient {
    position: absolute;

    pointer-events: none;

    z-index: 0;
}

.gradient-news-left {
    width: 900px;

    left: 0px;
    top: -550px;
}

.news-section {
    position: relative;

    padding: 90px 58px 80px;

    text-align: center;

    background: transparent;
}


.news-grid {
    max-width: 1500px;
    margin: 0 auto 65px;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;

    text-align: left;
}


.news-card {
    min-width: 0;
}

.news-card {
    display: block;

    color: inherit;
    text-decoration: none;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-image img {
    transition: transform 0.35s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.03);
}

.news-image {
    position: relative;

    width: 100%;
    aspect-ratio: 1.45 / 1;

    overflow: hidden;

    border-radius: 7px;
}


.news-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}


.news-tag {
    position: absolute;
    top: 12px;
    left: 12px;

    padding: 7px 11px;

    background: #ff008c;

    border-radius: 3px;

    font-size: 10px;
    font-weight: 600;
}


.news-date {
    margin: 16px 0 10px;

    font-size: 13px;
    font-weight: 600;

    letter-spacing: 1px;

    color: #7acbc7;
}


.news-card:first-child .news-date {
    color: #7acbc7;
}


.news-description {
    margin: 0;

    max-width: 270px;

    font-size: 12px;
    font-weight: 400;

    line-height: 1.45;

    color: rgba(255, 255, 255, 0.85);
}


/* =========================
   SECONDARY BUTTON
========================= */

.secondary-button {
    display: inline-block;

    padding: 11px 20px;

    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;

    color: white;
    text-decoration: none;

    font-size: 9px;
    font-weight: 600;

    letter-spacing: 1px;

    transition: 0.3s;
}


.secondary-button:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.6);
}


/* =========================
   TEAM INTRO
========================= */

.gradient-team-right {
    width: 750px;

    right: -140px;
    top: 100px;
}

.team-intro {
    position: relative;

    padding: 70px 40px 110px;

    text-align: center;

    background: transparent;

}


.team-title {
    margin: 0 auto 75px;

    display: flex;
    flex-direction: column;
    align-items: center;

    font-family: "Michroma", sans-serif;
    font-size: 50px;
    font-weight: 400;

    line-height: 1.1;

    letter-spacing: 0;

    color: white;
}


.pink {
    color: #ff008c;
}


.team-stats {
    max-width: 1200px;

    margin: 0 auto 65px;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
}


.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}


/* ODOMETER */

.odometer {
    display: flex;
    align-items: center;
    justify-content: center;

    height: 70px;
}


/* FINESTRA DI OGNI CIFRA */

.digit-window {
    position: relative;

    width: 58px;
    height: 70px;

    overflow: hidden;
}


/* CIFRA */

.digit {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 70px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-family: "Michroma", sans-serif;
    font-size: 52px;
    font-weight: 400;

    line-height: 1;

    white-space: nowrap;
}


/* + */

.stat-suffix {
    font-family: "Michroma", sans-serif;
    font-size: 52px;
    font-weight: 400;

    line-height: 70px;

    margin-left: 3px;
}


/* LABEL */

.stat-label {
    margin-top: 12px;

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 3px;

    color: rgba(255, 255, 255, 0.35);
}


.home-middle {
    position: relative;
    overflow: hidden;

    background:

        #111111;
}

.home-middle::before {
    content: "";

    position: absolute;

    top: 7px;
    left: 0;

    width: 100%;
    height: 100%;

    background-image:
        radial-gradient(
            circle,
            rgba(83, 83, 83, 0.45) 3px,
            transparent 1.5px
        );

    background-size: 35px 35px;

    opacity: 0.45;

    pointer-events: none;

    z-index: 0;

    mask-image: linear-gradient(
        to bottom,
        black 0%,
        black 25%,
        transparent 48%,
        transparent 82%,
        black 100%
    );

    -webkit-mask-image: linear-gradient(
        to bottom,
        black 0%,
        black 25%,
        transparent 48%,
        transparent 82%,
        black 100%
    );
}

/* =========================
   2026 RACE BOAT
========================= */

.race-boat-section {
    position: relative;
    overflow: hidden;

    padding: 70px 60px 120px;

    background: transparent;
}


/* CONTENUTO */

.race-boat-content {
    position: relative;
    z-index: 1;

    max-width: 1050px;
    margin: 0 auto;

    min-height: 590px;
}

.gradient-boat-left {
    width: 950px;

    left: 0px;
    top: 1300px;
}

/* TESTO */

.race-boat-text {
    position: absolute;
    top: 30px;
    left: -170px;

    width: 470px;

    z-index: 4;
}

.race-boat-text .secondary-button {
    margin-top: 30px;

    background: rgba(15, 15, 15, 0.28);

    border: 1px solid rgba(255, 255, 255, 0.30);
    border-radius: 5px;

    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(8px);

    padding: 10px 18px;
}

.race-boat-text .secondary-button:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.6);
}

.race-boat-title {
    margin: 0 0 16px;

    display: flex;
    flex-direction: column;

    font-family: "Michroma", sans-serif;
    font-size: 50px;
    font-weight: 400;

    line-height: 0.99;
}

.race-boat-title > span {
    white-space: nowrap;
}


.race-boat-description {
    width: 380px;

    margin: 0 0 5px;

    font-family: "Manrope", sans-serif;
    font-size: 14px;
    font-weight: 400;

    line-height: 1.45;

    color: rgba(255, 255, 255, 0.9);
}


/* BARCA */

.race-boat-visual {
    position: absolute;

    left: 7%;
    bottom: -100px;

    width: 100%;
    z-index: 2;

    transform: translateY(260px);
    opacity: 0;

    transition:
        transform 2.3s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 1.4s ease;
}

.race-boat-visual.is-visible {
    transform: translateY(0);
    opacity: 1;
}


.covered-boat {
    width: 100%;
    height: auto;

    display: block;
}


/* SPECIFICHE */

.boat-specs {
    position: absolute;

    right: -50px;
    top: 110px;

    display: flex;
    flex-direction: column;

    gap: 14px;

    z-index: 5;
}


.spec-card {
    width: 190px;

    padding: 14px 16px;

    background: rgba(15, 15, 15, 0.76);

    border-left: 4px solid #ff008c;
    border-radius: 7px;

    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(10px);

    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}


.spec-label {
    display: block;

    margin-bottom: 6px;

    font-size: 9px;
    font-weight: 600;

    letter-spacing: 1.6px;

    color: rgba(255, 255, 255, 0.55);
}


.spec-value {
    display: flex;
    align-items: baseline;
    gap: 7px;
}


.spec-value span {
    font-family: "Michroma", sans-serif;

    font-size: 29px;
    font-weight: 400;
}


.spec-value small {
    font-size: 9px;
    font-weight: 600;

    letter-spacing: 1.5px;

    color: rgba(255, 255, 255, 0.6);
}

/* =========================
   CALENDAR
========================= */

.calendar-section {
    position: relative;
    z-index: 1;

    padding: 5px 60px 85px;

    text-align: center;

    background: transparent;
}

.gradient-cal{
    width: 3000px;

    left: -850px;
    top: 1600px;
}

.calendar-title {
    margin: 0 0 75px;

    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 10px;

    font-family: "Michroma", sans-serif;
    font-size: 50px;
    font-weight: 400;
    line-height: 1;
}


.calendar-grid {
    max-width: 1200px;

    margin: 0 auto 55px;

    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 25px;
}


.calendar-card {
    position: relative;

    min-height: 80px;

    padding: 24px 24px 26px;

    text-align: left;

    background: rgba(20, 28, 28, 0.42);

    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 8px;

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    overflow: hidden;

    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.calendar-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.25);
}

.calendar-date {
    display: block;

    margin-bottom: 8px;

    font-size: 12px;
    font-weight: 500;

    color: rgba(115, 205, 205, 0.75);

    letter-spacing: 0.4px;
}


.calendar-card h3 {
    margin: 0;

    font-family: "Manrope", sans-serif;
    font-size: 20px;
    font-weight: 500;
}


.calendar-card-content {
    height: 120px;

    display: flex;
    align-items: center;
    justify-content: flex-start;

    text-align: left;
}


.calendar-card-content img {
    object-fit: contain;
}


.calendar-text-event {
    flex-direction: column;

    font-family: "Manrope", sans-serif;
    font-size: 16px;
    font-weight: 700;

    line-height: 1.05;
}

.calendar-logo {
    display: block;
    width: auto;
    object-fit: contain;
    object-position: left center;
}

.logo-sardegna {
    height: 80px;
}

.logo-polimi {
    height: 150px;
}

.logo-viverone {
    height: 125px;
    transform: translateX(-80px) scale(1.45);
    transform-origin: left center;
}

.logo-monaco {
    height: 65px;
}

.calendar-button {
    margin-top: 0;
}

/* =========================
   INSTAGRAM
========================= */

.instagram-section {
    position: relative;
    z-index: 1;

    padding: 35px 60px 100px;

    text-align: center;

    background: transparent;
}


.instagram-grid {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
    margin: 0 auto 55px;

    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 25px;
}


.instagram-card {
    position: relative;

    aspect-ratio: 9 / 14;

    overflow: hidden;

    border-radius: 7px;

    display: block;
}


.instagram-card img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    transition: transform 0.35s ease;
}


.instagram-card:hover img {
    transform: scale(1.035);
}


.instagram-views {
    position: absolute;
    left: 10px;
    bottom: 9px;

    display: flex;
    align-items: center;
    gap: 5px;

    color: white;

    font-family: "Manrope", sans-serif;
    font-size: 12px;
    font-weight: 600;

    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.7);
}

.instagram-views img {
    width: 13px;
    height: 13px;
    object-fit: contain;
}

/* =========================
   CONTACT
========================= */

.contact-section {
    position: relative;
    z-index: 1;

    padding: 100px 60px 110px;

    background: transparent;
}

.gradient-contact{
    width: 1600px;

    left: 400px;
    top: 2800px;
}

.contact-content {
    width: 100%;
    max-width: none;
    margin: 0;

    display: grid;
    grid-template-columns: 0.8fr 1.4fr;
    gap: 90px;

    align-items: center;
}


/* LEFT */

.contact-copy {
    align-self: start;

    padding-top: 55px;
}


.contact-title {
    margin: 0 0 16px;

    display: flex;
    flex-direction: column;

    font-family: "Michroma", sans-serif;
    font-size: 50px;
    font-weight: 400;

    line-height: 1.05;
}


.contact-description {
    max-width: 380px;

    margin: 0 0 25px;

    font-family: "Manrope", sans-serif;
    font-size: 14px;
    font-weight: 400;

    line-height: 1.45;

    color: rgba(255,255,255,0.88);
}


.contact-label {
    display: block;

    margin-bottom: 8px;

    font-size: 10px;
    font-weight: 400;

    letter-spacing: 1.5px;

    color: rgba(255,255,255,0.40);
}


.contact-email {
    color: #ff008c;

    font-size: 14px;
    font-weight: 400;

    text-decoration: none;
}


.contact-email:hover {
    text-decoration: underline;
}


/* FORM */

.contact-form {
    padding: 50px;

    display: flex;
    flex-direction: column;

    gap: 20px;

    background: rgba(18, 24, 24, 0.28);

    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}


.contact-form input,
.contact-form textarea {
    width: 100%;

    padding: 16px 18px;

    border: none;
    border-radius: 4px;

    outline: none;

    background: rgba(8, 15, 16, 0.48);

    color: white;

    font-family: "Manrope", sans-serif;
    font-size: 10px;
    font-weight: 400;

    letter-spacing: 0.8px;
}


.contact-form input {
    height: 48px;
}


.contact-form textarea {
    height: 170px;

    resize: vertical;
}


.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255,255,255,0.38);
}


.contact-form button {
    align-self: flex-end;

    padding: 13px 28px;

    border: none;
    border-radius: 5px;

    background: #ff008c;

    color: white;

    font-family: "Manrope", sans-serif;
    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.7px;

    cursor: pointer;

    transition: opacity 0.25s ease;
}


.contact-form button:hover {
    opacity: 0.82;
}



.partners-section {
    position: relative;
    z-index: 1;

    padding: 70px 60px 100px;

    text-align: center;
    background: transparent;
}

.partners-title {
    margin: 0 0 45px;

    font-family: "Michroma", sans-serif;
    font-size: 50px;
    font-weight: 400;
}

.partners-title .pink {
    color: #ff008c;
}

.partners-logos {
    display: flex;
    flex-direction: column;

    gap: 45px;

    max-width: 1100px;

    margin: 0 auto;
}

/* =========================
   FOOTER
========================= */

.site-footer {
    position: relative;
    overflow: hidden;

    width: 100%;

    padding: 55px 65px 35px;

    background: #111111;
}


/* =========================
   FOOTER GRADIENTS
========================= */

.footer-gradient {
    position: absolute;

    pointer-events: none;

    z-index: 0;

    user-select: none;
}

/* gradiente esportato da Figma a sinistra */
.footer-gradient-left {
    width: 1600px;

    left: -80px;
    bottom: 0px;
}


/* =========================
   MAIN FOOTER CONTENT
========================= */

.footer-content {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 1200px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        1fr
        0.65fr
        1fr;

    column-gap: 85px;

    align-items: center;
}


/* =========================
   LEFT COLUMN
========================= */

.footer-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}


.footer-physis-logo {
    display: block;

    width: 180px;
    height: auto;

    margin-bottom: 24px;
    margin-left: -25px;

    position: relative;
    z-index: 3;
}

.footer-logo-link {
    display: inline-block;
}

html {
    scroll-behavior: smooth;
}

.footer-address {
    margin-bottom: 34px;

    position: relative;
    z-index: 3;
}


.footer-address p {
    margin: 0;

    color: #ffffff;

    font-family: "Manrope", sans-serif;
    font-size: 12px;
    font-weight: 400;

    line-height: 1.45;
}


/* =========================
   SOCIAL ICONS
========================= */

.footer-socials {
    display: flex;
    align-items: center;

    gap: 24px;

    position: relative;
    z-index: 3;
}


.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;

    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}


.footer-socials img {
    display: block;

    width: 25px;
    height: 22px;

    object-fit: contain;
}


.footer-socials a:hover {
    transform: translateY(-2px);
    opacity: 0.70;
}


/* =========================
   CENTER NAVIGATION
========================= */

.footer-nav {
    display: flex;
    flex-direction: column;

    align-items: flex-start;

    gap: 15px;

    position: relative;
    z-index: 3;
}


.footer-nav a {
    color: #ffffff;

    font-family: "Manrope", sans-serif;
    font-size: 14px;
    font-weight: 500;

    line-height: 1.1;

    text-decoration: none;

    transition: opacity 0.25s ease;
}


.footer-nav a:hover {
    opacity: 0.55;
}


/* =========================
   RIGHT COLUMN
========================= */

.footer-right {
    display: flex;
    flex-direction: column;

    align-items: flex-start;

    justify-self: end;

    position: relative;
    z-index: 3;
    transform: translateX(45px);
}


.footer-polimi-logo {
    display: block;

    width: 265px;
    height: auto;

    margin-bottom: 30px;
    margin-left: -45px;
}


/* =========================
   LEGAL
========================= */

.footer-legal {
    text-align: left;
}


.footer-legal p {
    margin: 0 0 10px;

    color: rgba(255, 255, 255, 0.82);

    font-family: "Manrope", sans-serif;
    font-size: 12px;
    font-weight: 500;

    line-height: 1.3;
}


.footer-links {
    display: flex;
    align-items: center;

    gap: 24px;
}


.footer-links a {
    color: rgba(255, 255, 255, 0.82);

    font-family: "Manrope", sans-serif;
    font-size: 12px;
    font-weight: 500;

    text-decoration: none;

    transition: color 0.25s ease;
}


.footer-links a:hover {
    color: #ffffff;
}

/* =========================
   TEAM PAGE
========================= */

.team-page {
    background: #111111;
    overflow: hidden;
}


/* =========================
   TEAM HERO
========================= */

.team-page-hero {
    position: relative;

    min-height: 560px;

    background-image:
        linear-gradient(
            to bottom,
            rgba(0,0,0,0.05) 0%,
            rgba(0,0,0,0.05) 55%,
            #111111 100%
        ),
        url("assets/team-hero.JPG");

    background-size: cover;
    background-position: center;

    display: flex;
    align-items: center;
}


.team-page-hero-content {
    position: relative;
    z-index: 1;

    width: 100%;

    padding: 0 70px;
}


.team-page-main-title {
    display: flex;
    flex-direction: column;

    margin: 0;

    font-family: "Michroma", sans-serif;
    font-size: 58px;
    font-weight: 400;

    line-height: 0.92;

    color: white;
}

.team-page-stats {
    padding: 30px 60px 90px;
}


.team-page-stats-grid {
    max-width: 1050px;

    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
}


.team-page-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}


.team-page-stat-number {
    font-family: "Michroma", sans-serif;
    font-size: 52px;
    line-height: 1;
}


.team-page-stat-label {
    margin-top: 12px;

    font-size: 9px;
    font-weight: 600;

    letter-spacing: 3px;

    color: rgba(255,255,255,0.35);
}

/* =========================
   TEAM INTRO
========================= */

.team-page-intro {
    max-width: 800px;

    margin: 0 auto;

    padding: 130px 40px 130px;

    text-align: center;
}

.team-page-intro p {
    margin: -100px;

    font-family: "Michroma", sans-serif;
    font-size: 32px;
    font-weight: 400;

    line-height: 1.35;
    letter-spacing: 0.5px;

    color: #ffffff;
}

.team-page-intro .pink {
    color: #ff008c;
}

.gradient-team-page {
    width: 300px;

    left: 0px;
    top: 500px;
}

/* =========================
   ADMINISTRATIVE BOARD
========================= */

.admin-board {
    width: 100%;

    padding: 0 80px 100px;

    box-sizing: border-box;
}

.admin-board h2 {
    max-width: 1200px;

    margin: 0 auto 55px;

    font-family: "Michroma", sans-serif;
    font-size: 38px;
    font-weight: 400;

    line-height: 1;
    transform: translateX(-80px);

    color: #ff008c;
}


/* =========================
   BOARD GRID
========================= */

.admin-board-grid {
    max-width: 1050px;

    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 110px;

    align-items: start;
}


/* =========================
   MEMBER CARD
========================= */

.member-card {
    width: 100%;

    text-align: left;
}


/* contenitore generale foto */
.member-image-frame {
    position: relative;

    width: 100%;
    aspect-ratio: 1 / 1;

    margin-bottom: 18px;

    overflow: visible;
}


/* rettangolo sfumato dietro */
.member-image-frame::before {
    content: "";

    position: absolute;

    top: -24px;
    left: -20px;

    width: calc(100% - 10px);
    height: calc(100% - 15px);

    border-radius: 6px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 0, 140, 0.20) 0%,
            rgba(120, 0, 70, 0.10) 40%,
            rgba(20, 20, 20, 0.20) 100%
        );

    border: 1px solid rgba(255, 0, 140, 0.08);

    z-index: 0;
}


/* foto */
.member-image-frame img {
    position: relative;

    z-index: 1;

    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    border-radius: 6px;
}

.member-card:nth-child(1) img {
    object-position: center 29%;
}

.member-card:nth-child(2) img {
    object-position: center 37%;
}

.member-card:nth-child(3) img {
    object-position: 50% 25%;
}


/* nome */
.member-card h3 {
    margin: 0 0 2px;

    font-family: "Manrope", sans-serif;
    font-size: 22px;
    font-weight: 600;

    line-height: 1.0;

    color: #ffffff;
}


/* ruolo */
.member-card p {
    margin: 0;

    font-family: "Manrope", sans-serif;
    font-size: 14px;
    font-weight: 400;

    line-height: 1.35;

    letter-spacing: 0.5px;

    color: #63c8cd;
}


/* =========================
   BOTTOM TRANSITION TEXT
========================= */

.team-page-transition {
    max-width: 1000px;

    margin: 0 auto;

    padding: 0 40px 110px;

    text-align: center;
}

.team-page-transition p {
    margin: 0;

    font-family: "Michroma", sans-serif;
    font-size: 32px;
    font-weight: 400;

    line-height: 1.35;
    letter-spacing: 0.5px;

    color: #ffffff;
}

.team-page-transition .pink {
    color: #ff008c;
}

/* =========================
   UNIT SECTION
========================= */

.unit-section {
    max-width: 1180px;
    margin: 0 auto;

    padding: 75px 70px 85px;

    box-sizing: border-box;

     transform: translateX(-130px);
}


/* TITLE */

.unit-title {
    margin: 0 0 30px;

    font-family: "Michroma", sans-serif;
    font-size: 38px;
    font-weight: 400;
    line-height: 1;

    color: #ff008c;
}


/* DESCRIPTION */

.unit-description {
    width: 600px;
    max-width: 100%;

    margin: 0 0 38px;

    font-family: "Manrope", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;

    color: rgba(255, 255, 255, 0.88);
}


/* =========================
   PHOTO + MEMBERS
========================= */

.unit-team {
    display: grid;

    grid-template-columns: 240px 1fr;

    gap: 55px;

    align-items: center;
}


/* PHOTO */

.unit-photo-wrapper {
    position: relative;

    width: 220px;
    height: 220px;
}


.unit-photo-back {
    position: absolute;

    top: -16px;
    left: -16px;

    width: 100%;
    height: 100%;

    border-radius: 6px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 0, 140, 0.22),
            rgba(50, 0, 30, 0.05)
        );

    border: 1px solid rgba(255, 0, 140, 0.10);
}


.unit-photo {
    position: relative;
    z-index: 1;

    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center 35%;

    border-radius: 6px;
}


/* =========================
   PEOPLE
========================= */

.unit-people {
    align-self: center;

    transform: translateY(-4px);
    position: relative;
    min-height: 220px;
}


/* COORDINATOR */

.unit-coordinator {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    margin: 0 0 20px;

    padding: 0;
    border: 0;

    background: transparent;

    cursor: pointer;
}


.unit-coordinator-name {
    font-family: "Manrope", sans-serif;
    font-size: 25px;
    font-weight: 600;
    line-height: 1.1;

    color: #ffffff;
}


.unit-coordinator-role {
    margin-top: 4px;

    font-family: "Manrope", sans-serif;
    font-size: 14px;
    font-weight: 400;

    letter-spacing: 0.5px;

    color: #63c8cd;
}


/* MEMBERS GRID */

.unit-members-page {
    display: grid;

    grid-template-columns: repeat(3, 320px);
    grid-template-rows: repeat(4, auto);
    grid-auto-flow: column;

    column-gap: 55px;
    row-gap: 12px;
}


.member-trigger {
    width: fit-content;

    padding: 0;
    border: 0;

    background: transparent;

    font-family: "Manrope", sans-serif;
    font-size: 18px;
    font-weight: 500;

    letter-spacing: 0.7px;

    color: rgba(255, 255, 255, 0.48);

    text-align: left;

    cursor: pointer;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}


.member-trigger:hover {
    color: #ffffff;
    transform: translateX(3px);
}


.member-trigger.active {
    color: #63c8cd;
}

/* =========================================
   DYNAMICS PAGINATION
========================================= */

.dynamics-page {
    display: none;
    grid-template-columns: repeat(3, 320px);
    grid-template-rows: repeat(4, auto);
    grid-auto-flow: column;
    column-gap: 55px;
    row-gap: 14px;
}

.dynamics-page.active {
    display: grid;
}


/* contenitore frecce */

.unit-pagination {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-top: 25px;
}


/* pulsanti */

.unit-arrow {
    width: 50px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255, 255, 255, 0.02);

    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;

    color: #ffffff;
    font-size: 18px;

    cursor: pointer;

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        opacity 0.25s ease;
}

.unit-arrow:not(:disabled):hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.65);
}

/* freccia non utilizzabile */
.unit-arrow:disabled {
    opacity: 0.18;
    cursor: default;
}


/* FRECCIA NON DISPONIBILE */

.unit-arrow:disabled {
    opacity: 0.2;
    cursor: default;
}

.dynamics-pagination {
    position: absolute;

    left: -0px;
    bottom: -55px;

    display: flex;
    gap: 10px;
}

/* =========================
   STRUCTURES PAGINATION
========================= */

.structures-page {
    display: none;

    grid-template-columns: repeat(3, 320px);
    grid-template-rows: repeat(4, auto);
    grid-auto-flow: column;

    column-gap: 55px;
    row-gap: 14px;

    min-height: 150px;
}

.structures-page.active {
    display: grid;
}

.structures-pagination {
    position: absolute;

    left: 0;
    top: 245px;

    display: flex;
    gap: 10px;

    margin: 0;
}

.unit-team {
    position: relative;
}

/* =========================
   TEAM PAGE NEWS
========================= */

.team-news-section {
    padding-top: 90px;
    padding-bottom: 90px;
}

.team-news-title {
    margin: 0 0 35px;

    font-family: "Michroma", sans-serif;
    font-size: 32px;
    font-weight: 400;
    text-align: left;

    color: #ffffff;
}

/* =========================
   POWERTRAIN LAYOUT
========================= */

.powertrain-team {
    grid-template-columns: 500px 1fr;
    gap: 55px;
}

/* area foto */
.powertrain-photo-area {
    position: relative;

    width: 500px;
    height: 220px;
}


/* =========================
   STATO INIZIALE: 2 FOTO
========================= */

.powertrain-dual-photos {
    display: flex;
    align-items: flex-start;

    width: 100%;
    height: 100%;
}

.powertrain-dual-photos .unit-photo-wrapper {
    width: 220px;
    height: 220px;
    flex: 0 0 220px;
}

/* spostiamo SOLO la seconda foto più a destra */
.powertrain-dual-photos .unit-photo-wrapper:nth-child(2) {
    margin-left: 100px;
}

/* =========================
   STATO DOPO CLICK
========================= */

.powertrain-team.person-selected {
    grid-template-columns: 240px 1fr;
    gap: 55px;
}

.powertrain-team.person-selected .powertrain-photo-area {
    width: 220px;
}

.powertrain-team.person-selected .powertrain-dual-photos {
    display: none;
}

.powertrain-team.person-selected .powertrain-single-photo {
    display: block;
}

.powertrain-single-photo {
    position: relative;

    width: 220px;
    height: 220px;

    display: none;
}


/* =========================
   COORDINATORS TEXT
========================= */

.powertrain-coordinators {
    margin-bottom: 20px;
}


.powertrain-coordinator-names {
    display: flex;
    align-items: baseline;
    flex-wrap: nowrap;

    gap: 10px;
}

.powertrain-coordinator-names > * {
    flex-shrink: 0;
    white-space: nowrap;
}


.coordinator-name-button {
    font-family: "Manrope", sans-serif;
    font-size: 25px;
    font-weight: 600;

    letter-spacing: 1.1px;

    color: #ffffff;
}


.coordinator-separator {
    color: #ffffff;

    font-family: "Manrope", sans-serif;
    font-size: 17px;
    font-weight: 700;
}


/* non vogliamo che il nome coordinator
   si sposti a destra in hover */

.coordinator-name-button:hover {
    transform: none;
}


/* =========================
   POWERTRAIN MEMBERS
========================= */

.powertrain-members {
    grid-template-columns: repeat(3, max-content);
    grid-template-rows: repeat(4, auto);
    grid-auto-flow: column;

    column-gap: 55px;
    row-gap: 14px;
}

.powertrain-page {
    display: none;
}

.powertrain-page.active {
    display: grid;
}

.powertrain-reset {
    margin: 4px 0 0;
    padding: 0;

    border: none;
    background: transparent;

    font-family: "Manrope", sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.5px;

    color: #63c8cd;

    cursor: pointer;

    transition: opacity 0.2s ease;
}

.powertrain-reset:hover {
    opacity: 0.7;
}

.powertrain-section .unit-people {
    transform: translate(0, -2px);
}

.powertrain-team.person-selected .unit-people {
    transform: translate(0, -2px);
}



/* =========================
   PARTNERS PAGE
========================= */

.partners-page {
    position: relative;

    background: #111111;
    overflow: hidden;
}

/* griglia di puntini come nella home, sfuma verso il basso */

.partners-page-hero::before {
    content: "";

    position: absolute;
    inset: 0;

    background-image:
        radial-gradient(
            circle,
            rgba(83, 83, 83, 0.45) 3px,
            transparent 1.5px
        );

    background-size: 35px 35px;

    opacity: 0.45;

    pointer-events: none;

    mask-image: linear-gradient(to bottom, black 0%, black 55%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 55%, transparent 100%);
}


/* =========================
   PARTNERS HERO
========================= */

.partners-page-hero {
    position: relative;

    min-height: 560px;

    background-size: cover;
    background-position: center;

    display: flex;
    align-items: center;
}


.partners-page-hero-content {
    position: relative;
    z-index: 1;

    width: 100%;

    padding: 0 70px;
}


.partners-page-main-title {
    display: flex;
    flex-direction: column;

    margin: 0;

    font-family: "Michroma", sans-serif;
    font-size: 58px;
    font-weight: 400;

    line-height: 0.92;

    color: white;
}

/* =========================
   PARTNERS HERO TEXT
========================= */

.partners-page-hero {
    position: relative;

    min-height: 800px;

    display: flex;
    align-items: flex-start;

    padding-top: 105px;

    box-sizing: border-box;
}

.partners-page-hero-content {
    width: 100%;
    padding: 170px 70px;
    box-sizing: border-box;
}

.partners-page-main-title {
    display: block;

    margin: 0 0 60px;

    font-family: "Michroma", sans-serif;
    font-size: 58px;
    font-weight: 400;
    line-height: 1;

    color: #ffffff;
}

.partners-page-intro {
    width: 420px;
    max-width: 100%;

    margin: 0;

    font-family: "Manrope", sans-serif;
    font-size: 14px;
    line-height: 1.5;

    color: rgba(255,255,255,0.85);
}


/* =========================
   PARTNERS LIST
========================= */

.partners-list {
    position: relative;

    padding: 0 70px 120px;

    box-sizing: border-box;
}

.partner-tier {
    position: relative;
    z-index: 1;

    margin-bottom: 110px;
}


/* TITLE + LINE */

.partner-tier-heading {
    display: flex;
    align-items: center;

    gap: 18px;

    margin-bottom: 55px;
}

.partner-tier-heading h2 {
    margin: 0;

    flex: 0 0 auto;

    font-family: "Michroma", sans-serif;
    font-size: 26px;
    font-weight: 400;

    color: #ff008c;
}

.partner-tier-line {
    height: 1px;

    flex: 1;

    background: rgba(255,0,140,0.75);
}


/* =========================
   SPONSOR LOGOS
   I loghi sono WebP già rifilati ai bordi: ogni logo sta in una
   cella di dimensione fissa per tier, così le righe restano regolari.
========================= */

.sponsor-grid {
    --logo-height: 60px;
    --logo-width: 170px;
    --gap-x: 60px;
    --gap-y: 45px;

    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;

    gap: var(--gap-y) var(--gap-x);
}

.sponsor-logo {
    flex: 0 0 var(--logo-width);

    display: flex;
    align-items: center;
    justify-content: center;

    max-width: 100%;
    height: var(--logo-height);

    text-decoration: none;
}

.sponsor-logo img {
    display: block;

    width: auto;
    height: auto;

    max-width: 100%;
    max-height: 100%;

    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}

/* loghi quasi quadrati: un po' più alti, altrimenti sembrano minuscoli */

.sponsor-logo.is-compact {
    height: calc(var(--logo-height) * 1.35);
}

/* loghi molto larghi e bassi (es. Osculati): cella più larga */

.sponsor-logo.is-wide {
    flex-basis: calc(var(--logo-width) * 1.4);
}

a.sponsor-logo:hover img {
    transform: scale(1.04);
    opacity: 0.8;
}

.sponsor-grid-platinum {
    --logo-height: 90px;
    --logo-width: 430px;
}

.sponsor-grid-gold {
    --logo-height: 110px;
    --logo-width: 300px;
}

.sponsor-grid-bronze {
    --logo-height: 50px;
    --logo-width: 145px;
    --gap-x: 50px;
    --gap-y: 40px;

    /* massimo 6 loghi per riga come nel Figma (+ spazio per un logo .is-wide),
       così non resta mai un logo da solo a capo */
    max-width: calc(6.4 * var(--logo-width) + 5 * var(--gap-x));
    margin: 0 auto;
}

.sponsor-grid-white {
    --logo-height: 42px;
    --logo-width: 125px;
    --gap-x: 45px;
    --gap-y: 35px;
}

/* in home tutti i loghi un po' più piccoli */

.sponsor-grid-home {
    --gap-x: 45px;
    --gap-y: 30px;
}

.sponsor-grid-home.sponsor-grid-platinum { --logo-height: 70px; --logo-width: 340px; }
.sponsor-grid-home.sponsor-grid-gold     { --logo-height: 85px; --logo-width: 230px; }
.sponsor-grid-home.sponsor-grid-silver   { --logo-height: 45px; --logo-width: 135px; }
.sponsor-grid-home.sponsor-grid-bronze   { --logo-height: 38px; --logo-width: 115px; }
.sponsor-grid-home.sponsor-grid-white    { --logo-height: 32px; --logo-width: 100px; }

.gradient-partners {
    width: 1600px;

    right: 0;
    top: -700px;
}

.gradient-partners-left {
    width: 900px;

    left: 0;
    bottom: -250px;
}

.partners-contact {
    z-index: 0;
}

.partners-contact .contact-content {
    position: relative;
    z-index: 1;
}

.gradient-partners-contact {
    width: 1500px;

    left: 30%;
    top: -450px;
}
/* =========================
   TEAM - FASCIA ANNI
   un anno per cella; l'anno mostrato è evidenziato,
   gli altri portano alla pagina work in progress
========================= */

.team-years {
    position: relative;
    z-index: 1;

    display: grid;
    grid-template-columns: repeat(6, 1fr);

    background: linear-gradient(to bottom, #141414 0%, #0a0a0a 25%, #0b0b0b 100%);

    border-top: 1px solid #222222;
    border-bottom: 1px solid #1a1a1a;

    margin-bottom: 110px;
}

.team-year {
    display: flex;
    align-items: center;
    justify-content: center;

    height: 92px;

    border-left: 1px solid #0f0f0f;

    font-family: "Manrope", sans-serif;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 2px;

    color: #3e6468;
    text-decoration: none;

    transition:
        color 0.25s ease,
        background-color 0.25s ease;
}

.team-year:first-child {
    border-left: none;
}

a.team-year:hover {
    color: #7fa9ad;
    background-color: #121212;
}

.team-year.is-active {
    background: #7f0c4b;

    font-weight: 700;
    color: #ffffff;
}


/* =========================
   WORK IN PROGRESS
========================= */

.wip-page {
    position: relative;

    background: #111111;
    overflow: hidden;
}

.wip-hero {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 640px;

    padding: 150px 24px 120px;
    box-sizing: border-box;
}

/* stessa griglia di puntini della home, sfuma verso il basso */

.wip-hero::before {
    content: "";

    position: absolute;
    inset: 0;

    background-image:
        radial-gradient(
            circle,
            rgba(83, 83, 83, 0.45) 3px,
            transparent 1.5px
        );

    background-size: 35px 35px;

    opacity: 0.45;

    pointer-events: none;

    mask-image: linear-gradient(to bottom, black 0%, black 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 60%, transparent 100%);
}

.wip-title {
    position: relative;
    z-index: 1;

    margin: 0;

    font-family: "Michroma", sans-serif;
    font-size: 58px;
    font-weight: 400;
    line-height: 1.1;

    text-align: center;

    color: #ffffff;
}

/* =========================
   LEGAL PAGES (PRIVACY / COOKIE)
========================= */

.legal-page {
    position: relative;

    max-width: 820px;
    margin: 0 auto;

    padding: 150px 40px 110px;
}

.legal-page h1 {
    margin: 0 0 12px;

    font-family: "Michroma", sans-serif;
    font-size: 42px;
    font-weight: 400;
    line-height: 1.1;
}

.legal-updated {
    margin: 0 0 50px;

    font-size: 12px;
    letter-spacing: 1px;

    color: #7acbc7;
}

.legal-page h2 {
    margin: 45px 0 14px;

    font-family: "Michroma", sans-serif;
    font-size: 18px;
    font-weight: 400;

    color: #ff008c;
}

.legal-page p,
.legal-page li {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.65;

    color: rgba(255, 255, 255, 0.85);
}

.legal-page ul {
    padding-left: 20px;
}

.legal-page a {
    color: #ff008c;
}


/* =========================
   ANCHOR LINKS
========================= */

/* la navbar fissa non copre il titolo della sezione */
#news,
#boats,
#calendar,
#contact {
    scroll-margin-top: 72px;
}

/* =========================
   LANGUAGE SWITCH (EN / IT)
========================= */

.language-switch {
    display: flex;
    align-items: center;
    gap: 6px;

    padding: 0;

    border: none;
    background: transparent;

    color: white;

    font-family: "Manrope", sans-serif;
    font-size: 14px;
    letter-spacing: 0.5px;

    cursor: pointer;
}

.language-switch span {
    opacity: 0.45;
    transition: opacity 0.3s;
}

.language-switch span.is-active {
    opacity: 1;
}

.language-switch:hover span {
    opacity: 0.8;
}

.language-switch:hover span.is-active {
    opacity: 1;
}

/* blocchi di testo lunghi (privacy, cookie) in una sola lingua */
html[lang="it"] [data-lang="en"],
html[lang="en"] [data-lang="it"] {
    display: none;
}


/* =========================
   NAV TOGGLE (HAMBURGER)
========================= */

.nav-toggle {
    display: none;

    width: 40px;
    height: 40px;

    padding: 0;

    border: none;
    background: transparent;

    cursor: pointer;

    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.nav-toggle span {
    display: block;

    width: 24px;
    height: 2px;

    background: white;
    border-radius: 2px;

    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}

.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* =========================
   RESPONSIVE - LARGE LAPTOP
========================= */

@media (max-width: 1400px) {

    .unit-section {
        transform: none;
    }

    .admin-board h2 {
        transform: none;
    }

    .unit-members-page,
    .dynamics-page,
    .structures-page,
    .powertrain-members {
        grid-template-columns: repeat(3, minmax(0, 220px));
        column-gap: 35px;
    }
}


/* =========================
   RESPONSIVE - TABLET
========================= */

@media (max-width: 1100px) {

    body {
        overflow-x: hidden;
    }

    /* NAVBAR */

    .navbar {
        padding: 0 24px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;

        flex-direction: column;
        align-items: flex-start;
        gap: 22px;

        padding: 28px 24px 32px;

        background: rgba(10, 10, 10, 0.94);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);

        border-bottom: 1px solid rgba(255, 255, 255, 0.06);

        visibility: hidden;
        opacity: 0;
        transform: translateY(-10px);

        transition:
            opacity 0.3s ease,
            transform 0.3s ease,
            visibility 0.3s ease;
    }

    .nav-links.is-open {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links a,
    .language-switch {
        font-size: 16px;
    }

    /* HOME - NEWS */

    .news-section {
        padding: 70px 24px 60px;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }

    .news-description {
        max-width: none;
    }

    /* HOME - RACE BOAT */

    .race-boat-section {
        padding: 60px 24px 80px;
    }

    .race-boat-content {
        min-height: 0;

        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .race-boat-text,
    .race-boat-visual,
    .boat-specs {
        position: static;
    }

    .race-boat-text {
        width: 100%;
    }

    .race-boat-description {
        width: 100%;
        max-width: 480px;
    }

    .race-boat-visual {
        width: 100%;
    }

    .boat-specs {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .spec-card {
        flex: 1 1 160px;
        width: auto;
    }

    /* HOME - CALENDAR / INSTAGRAM */

    .calendar-section,
    .instagram-section,
    .partners-section {
        padding-left: 24px;
        padding-right: 24px;
    }

    .calendar-grid,
    .instagram-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* HOME - CONTACT */

    .contact-section {
        padding: 70px 24px 80px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-copy {
        padding-top: 0;
    }

    /* FOOTER - UNA COLONNA CENTRATA */

    .site-footer {
        padding: 50px 24px 35px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        row-gap: 40px;
        justify-items: center;
        text-align: center;
    }

    .footer-left,
    .footer-nav,
    .footer-right {
        align-items: center;
    }

    .footer-right {
        justify-self: center;
        transform: none;
    }

    .footer-physis-logo,
    .footer-polimi-logo {
        margin-left: 0;
        margin-right: 0;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-legal {
        text-align: center;
    }

    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px 20px;
    }

    /* TEAM PAGE */

    .team-page-hero-content,
    .partners-page-hero-content {
        padding-left: 24px;
        padding-right: 24px;
    }

    .team-page-intro p {
        margin: 0;
        font-size: 26px;
    }

    .team-page-intro {
        padding: 60px 24px 80px;
    }

    .admin-board {
        padding: 0 24px 80px;
    }

    .admin-board-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 60px 40px;
    }

    .unit-section {
        padding: 60px 24px;
    }

    .unit-team,
    .powertrain-team,
    .powertrain-team.person-selected {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .unit-team > .unit-photo-wrapper,
    .powertrain-photo-area {
        margin-left: 16px;
    }

    .powertrain-photo-area {
        width: auto;
        max-width: 100%;
    }

    .powertrain-dual-photos .unit-photo-wrapper:nth-child(2) {
        margin-left: 40px;
    }

    .powertrain-section .unit-people,
    .unit-people {
        transform: none;
        min-height: 0;
    }

    .unit-members-page,
    .dynamics-page,
    .structures-page,
    .powertrain-members {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: none;
        grid-auto-flow: row;
        min-height: 0;
    }

    .powertrain-coordinator-names {
        flex-wrap: wrap;
    }

    .powertrain-coordinator-names > * {
        flex-shrink: 1;
        white-space: normal;
    }

    .dynamics-pagination,
    .structures-pagination {
        position: static;
        margin-top: 25px;
    }

    .team-page-transition {
        padding: 0 24px 80px;
    }

    .team-page-transition p {
        font-size: 24px;
    }

    /* PARTNERS PAGE */

    .partners-page-hero {
        min-height: 0;
    }

    .partners-page-hero-content {
        padding-top: 90px;
        padding-bottom: 80px;
    }

    .partners-list {
        padding: 0 24px 80px;
    }

    .partner-tier {
        margin-bottom: 70px;
    }

    .sponsor-grid {
        --gap-x: 40px;
        --gap-y: 35px;
    }
}


/* =========================
   RESPONSIVE - MOBILE
========================= */

@media (max-width: 700px) {

    /* TITLES */

    .team-title,
    .race-boat-title,
    .calendar-title,
    .contact-title,
    .partners-title {
        font-size: 30px;
    }

    .team-title {
        margin-bottom: 45px;
    }

    .calendar-title {
        margin-bottom: 40px;
        flex-wrap: wrap;
        row-gap: 6px;
    }

    .team-page-main-title,
    .partners-page-main-title {
        font-size: 36px;
    }

    .admin-board h2,
    .unit-title {
        font-size: 26px;
    }

    .team-page-intro p,
    .team-page-transition p {
        font-size: 19px;
    }

    .team-news-title {
        font-size: 24px;
    }

    .legal-page {
        padding: 120px 20px 80px;
    }

    .legal-page h1 {
        font-size: 28px;
    }

    /* NAVBAR */

    .navbar {
        padding: 0 16px;
    }

    .logo img {
        width: 130px;
    }

    /* HERO */

    .hero {
        min-height: 560px;
        background-position: 60% top;
    }

    .hero-content {
        padding: 120px 16px 0;
    }

    .countdown-card {
        width: 100%;
        max-width: 420px;
        padding: 18px 18px 16px;
        transform: translateY(80px);
    }

    .countdown-title {
        font-size: 11px;
        letter-spacing: 2px;
    }

    .countdown-number {
        font-size: 40px;
    }

    .countdown-colon {
        font-size: 32px;
    }

    /* NEWS / GRIDS */

    .news-section {
        padding: 110px 16px 50px;
    }

    .news-grid,
    .calendar-grid {
        grid-template-columns: 1fr;
    }

    .instagram-grid {
        gap: 12px;
    }

    .calendar-section,
    .instagram-section,
    .partners-section,
    .race-boat-section,
    .contact-section {
        padding-left: 16px;
        padding-right: 16px;
    }

    /* TEAM STATS (HOME) */

    .team-intro {
        padding: 50px 16px 70px;
    }

    .digit-window {
        width: 36px;
        height: 50px;
    }

    .digit {
        height: 50px;
        font-size: 34px;
    }

    .odometer {
        height: 50px;
    }

    .stat-suffix {
        font-size: 34px;
        line-height: 50px;
    }

    .stat-label {
        font-size: 9px;
        letter-spacing: 2px;
    }

    /* CALENDAR LOGOS */

    .calendar-card-content {
        height: 100px;
    }

    .logo-polimi {
        height: 110px;
    }

    .logo-viverone {
        height: 90px;
        transform: translateX(-50px) scale(1.4);
    }

    /* CONTACT */

    .contact-form {
        padding: 24px;
    }

    /* SUPPORT MODAL */

    .support-modal {
        padding: 90px 16px 0;
    }

    .support-modal-box {
        width: 100%;
        padding: 32px 22px 26px;
    }

    .support-modal-title {
        font-size: 24px;
    }

    /* FOOTER */

    .site-footer {
        padding: 45px 16px 30px;
    }

    .footer-polimi-logo {
        width: 210px;
    }

    /* TEAM PAGE */

    .team-page-hero {
        min-height: 420px;
    }

    .team-page-hero-content,
    .partners-page-hero-content {
        padding-left: 16px;
        padding-right: 16px;
    }

    .team-page-stats {
        padding: 20px 16px 60px;
    }

    .team-page-stat-number {
        font-size: 34px;
    }

    .team-page-intro {
        padding: 40px 16px 60px;
    }

    .admin-board {
        padding: 0 16px 60px;
    }

    .admin-board-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        max-width: 360px;
        padding-left: 20px;
    }

    .unit-section {
        padding: 50px 16px;
    }

    .unit-photo-wrapper {
        width: 180px;
        height: 180px;
    }

    .powertrain-photo-area {
        width: auto;
        height: 180px;
    }

    .powertrain-dual-photos .unit-photo-wrapper {
        width: 140px;
        height: 140px;
        flex: 0 0 140px;
    }

    .powertrain-dual-photos .unit-photo-wrapper:nth-child(2) {
        margin-left: 30px;
    }

    .unit-coordinator-name,
    .coordinator-name-button {
        font-size: 21px;
    }

    .member-trigger {
        font-size: 15px;
    }

    .unit-members-page,
    .dynamics-page,
    .structures-page,
    .powertrain-members {
        column-gap: 20px;
    }

    .team-page-transition {
        padding: 0 16px 60px;
    }

    /* PARTNERS PAGE */

    .partners-list {
        padding: 0 16px 60px;
    }

    .partner-tier-heading h2 {
        font-size: 17px;
    }

    .partner-tier-heading {
        margin-bottom: 35px;
    }

    .sponsor-grid {
        --gap-x: 30px;
        --gap-y: 28px;
    }

    .sponsor-grid-platinum { --logo-height: 60px; --logo-width: 280px; }
    .sponsor-grid-gold     { --logo-height: 75px; --logo-width: 200px; }
    .sponsor-grid-silver   { --logo-height: 40px; --logo-width: 120px; }
    .sponsor-grid-bronze   { --logo-height: 34px; --logo-width: 105px; }
    .sponsor-grid-white    { --logo-height: 30px; --logo-width: 92px; }

    .sponsor-grid-home {
        --gap-x: 18px;
        --gap-y: 24px;
    }

    .sponsor-grid-home.sponsor-grid-platinum { --logo-height: 55px; --logo-width: 260px; }
    .sponsor-grid-home.sponsor-grid-gold     { --logo-height: 70px; --logo-width: 180px; }
    .sponsor-grid-home.sponsor-grid-silver   { --logo-height: 32px; --logo-width: 100px; }
    .sponsor-grid-home.sponsor-grid-bronze   { --logo-height: 30px; --logo-width: 95px; }
    .sponsor-grid-home.sponsor-grid-white    { --logo-height: 26px; --logo-width: 88px; }

    .team-years {
        margin-bottom: 60px;
    }

    .team-year {
        height: 56px;

        font-size: 13px;
        letter-spacing: 1px;
    }

    .wip-hero {
        min-height: 480px;
    }

    .wip-title {
        font-size: 30px;
    }
}


/* =========================
   NEWS PAGE
========================= */

.news-page {
    position: relative;
    overflow: hidden;
}


.news-page-hero {
    position: relative;

    min-height: 560px;

    display: flex;
    align-items: center;

    background-image:
        linear-gradient(
            to bottom,
            rgba(17, 17, 17, 0.15) 0%,
            rgba(17, 17, 17, 0.25) 60%,
            #111111 100%
        ),
        url("assets/news-hero.jpg");

    background-size: cover;
    background-position: center 35%;
}

.news-page-hero-content {
    width: 100%;

    padding: 60px 90px 0;
}

.news-page-title {
    margin: 0 0 30px;

    font-family: "Michroma", sans-serif;
    font-size: 58px;
    font-weight: 400;
    line-height: 1;

    color: #ff008c;
}

.news-page-subtitle {
    margin: 0;

    font-size: 18px;
    font-weight: 400;

    color: rgba(255, 255, 255, 0.92);
}


/* NEWS IN EVIDENZA */

.news-featured {
    /* sopra l'hero: il titolo ci sale sopra col margine negativo */
    position: relative;

    padding: 0 58px 90px;
}

.news-featured-title {
    margin: -30px 0 36px;

    font-family: "Michroma", sans-serif;
    font-size: 48px;
    font-weight: 400;
    line-height: 1.1;

    color: white;
}

.news-featured-grid {
    display: grid;
    grid-template-columns: minmax(0, 762fr) minmax(0, 520fr);
    gap: 40px;
}

.news-featured-image {
    display: block;

    aspect-ratio: 3 / 2;

    overflow: hidden;

    border-radius: 7px;
}

.news-featured-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    display: block;

    transition: transform 0.35s ease;
}

.news-featured-image:hover img {
    transform: scale(1.03);
}

.news-featured-body {
    display: flex;
    flex-direction: column;

    padding-top: 24px;
}

.news-featured-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;

    margin-bottom: 24px;
}

.news-featured-tag {
    padding: 6px 14px;

    background: #ff008c;
    border-radius: 3px;

    font-size: 16px;
    font-weight: 700;
    letter-spacing: 3px;
}

.news-featured-date {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 3px;

    color: #7acbc7;
}

.news-featured-text {
    max-width: 440px;
    margin: 0;

    font-size: 17px;
    font-weight: 400;
    line-height: 1.45;

    color: rgba(255, 255, 255, 0.92);
}

.news-featured-text strong {
    font-weight: 700;
    color: white;
}

.news-featured-more {
    font-weight: 700;

    color: #ff008c;
    text-decoration: none;
}

.news-featured-more:hover {
    text-decoration: underline;
}

.news-hashtags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;

    margin-top: auto;
    padding-top: 40px;
}

.news-hashtags span {
    padding: 11px 26px;

    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
}


/* ARCHIVIO: FILTRO / ORDINA */

.news-archive {
    padding: 30px 58px 140px;
}

.news-toolbar {
    display: flex;
    justify-content: space-between;

    margin-bottom: 50px;
}

.news-dropdown {
    position: relative;
}

.news-toolbar-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    padding: 12px 30px;

    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 5px;

    color: white;

    font-family: "Manrope", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;

    cursor: pointer;

    transition: 0.3s;
}

.news-toolbar-button:hover,
.news-toolbar-button[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.6);
}

.news-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 5;

    min-width: 190px;

    display: flex;
    flex-direction: column;

    padding: 6px;

    background: #1c1c1c;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 5px;
}

.news-dropdown-menu[hidden] {
    display: none;
}

.news-dropdown-right .news-dropdown-menu {
    left: auto;
    right: 0;
}

.news-dropdown-menu button {
    padding: 10px 14px;

    background: transparent;
    border: 0;
    border-radius: 3px;

    color: rgba(255, 255, 255, 0.75);

    font-family: "Manrope", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-align: left;

    cursor: pointer;
}

.news-dropdown-menu button:hover {
    background: rgba(255, 255, 255, 0.06);
    color: white;
}

.news-dropdown-menu button.is-active {
    color: #ff008c;
}

.news-archive-grid {
    max-width: none;
    margin: 0;
}

.news-card[hidden] {
    display: none;
}

.news-empty {
    margin: 0;

    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}


@media (max-width: 1100px) {

    .news-page-hero {
        min-height: 460px;
    }

    .news-page-hero-content {
        padding: 60px 24px 0;
    }

    .news-featured,
    .news-archive {
        padding-left: 24px;
        padding-right: 24px;
    }

    .news-featured-title {
        font-size: 36px;
    }

    .news-featured-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .news-featured-text {
        max-width: none;
    }
}


@media (max-width: 700px) {

    .news-page-hero {
        min-height: 380px;
    }

    .news-page-hero-content {
        padding: 60px 16px 0;
    }

    .news-page-title {
        font-size: 40px;
        margin-bottom: 18px;
    }

    .news-page-subtitle {
        font-size: 15px;
    }

    .news-featured,
    .news-archive {
        padding-left: 16px;
        padding-right: 16px;
    }

    .news-featured-title {
        margin-top: -10px;
        font-size: 24px;
    }

    .news-featured-meta {
        gap: 18px;
    }

    .news-featured-tag,
    .news-featured-date {
        font-size: 13px;
        letter-spacing: 2px;
    }

    .news-featured-text {
        font-size: 15px;
    }

    .news-hashtags {
        padding-top: 28px;
    }

    .news-hashtags span {
        padding: 9px 16px;
        font-size: 11px;
    }

    .news-toolbar-button {
        padding: 11px 18px;
    }

    .news-archive {
        padding-bottom: 90px;
    }
}
