/* =========================
   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: flex;
    align-items: center;
    justify-content: space-between;

    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-labels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    margin-top: 10px;

    font-size: 9px;
    letter-spacing: 3px;

    color: rgba(255, 255, 255, 0.55);

    text-align: center;
}

/* =========================
   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: block;

    width: 100%;
    max-width: 1000px;

    height: auto;

    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: wrap;

    gap: 10px;
}


.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, 320px);
    grid-template-rows: repeat(4, auto);
    grid-auto-flow: column;

    column-gap: 55px;
    row-gap: 14px;
}

.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(120px, -2px);
}

.powertrain-team.person-selected .unit-people {
    transform: translate(0, -2px);
}



/* =========================
   PARTNERS PAGE
========================= */

.partners-page {
    background: #111111;
    overflow: hidden;
}


/* =========================
   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 {
    padding: 0 70px 120px;

    box-sizing: border-box;
}

.partner-tier {
    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);
}


/* LOGO AREA */

.partner-tier-content {
    display: flex;
    justify-content: center;
    align-items: center;

    min-height: 170px;
}


/* CLICKABLE LOGOS */

.partner-logo-link {
    display: inline-block;

    text-decoration: none;
}

.partner-logo {
    display: block;

    max-width: 100%;
    height: auto;

    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}

.partner-logo-link:hover .partner-logo {
    transform: scale(1.03);
    opacity: 0.82;
}


/* LOGO SIZES */

.partner-logo-chiaravalli {
    width: 430px;
}

.partner-logo-alumec {
    width: 140px;
}

/* =========================
   SILVER SPONSORS
========================= */

.silver-sponsors-grid {
    display: grid;

    grid-template-columns: repeat(6, 1fr);

    column-gap: 25px;
    row-gap: 45px;

    align-items: center;

    width: 100%;
}


/* SLOT DI OGNI LOGO */

.silver-sponsor {
    height: 90px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;
    cursor: pointer;
}


/* LOGO GENERICO */

.silver-logo {
    display: block;

    width: auto;
    height: auto;

    object-fit: contain;

    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}


.silver-sponsor:hover .silver-logo {
    transform: scale(1.04);
    opacity: 0.8;
}

/* =========================
   INDIVIDUAL LOGO FIXES
========================= */

.logo-lamiflex {
    width: 315px;

    position: relative;
    left: 75px;
}

.logo-altium {
    width: 130px;

    position: relative;
    left: 25px;
}

.logo-solbian {
    width: 150px;
}

.logo-elesa {
    width: 100px;
}

.logo-unicu {
    width: 95px;

    position: relative;
    left: -25px;
}

.logo-esss {
    width: 170px;
}

.logo-ansys {
    width: 110px;
}

.logo-siemens {
    width: 145px;
}

.logo-kisssoft {
    width: 150px;

    position: relative;
    top: -28px;
}

.logo-homberger {
    height: 22px;
    width: auto;
}

.logo-loctite {
    width: 145px;
}

.logo-teroson {
    width: 165px;
}

.gradient-partners {
    width: 1600px;

    right: 0;
    top: 100px;
}