/* =====================================
   DESKTOP - RIFINITURE
   NAVBAR TRASPARENTE
   Non deve bloccare elementi sottostanti
   CORREZIONE FOOTER
   La frase dell'artista
===================================== */

@media (min-width: 1280px) {
    .navbar-side {
        pointer-events: none;
    }

    .navbar-side a {
        pointer-events: auto;
    }

    .footer-right {
        transform: translateX(-20px);
    }
}


/* =====================================
   LARGE DESKTOP
   >= 2200px
===================================== */

@media (min-width: 2200px) {
    .simple-grid,
    .contact-view-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .center-contact {
        position: relative;
        left: -75px;
    }
}


/* =====================================
   DESKTOP / LAPTOP
   1280px - 2199px
===================================== */

@media (min-width: 1280px) and (max-width: 2199px) {
    .simple-grid,
    .contact-view-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .center-contact {
        position: relative;
        left: -75px;
    }
}


/* =====================================
   TABLET / MOBILE SHARED
   <= 1279px

   Desktop side navigation is replaced by:
   header + horizontal menu + hamburger.
===================================== */

@media (max-width: 1279px) {

    /* -------------------------------------
       LAYOUT
    ------------------------------------- */

    .site-layout {
        display: flex;
        flex-direction: column;
        width: 100%;
        min-width: 0;
    }

    .navbar-side {
        order: 2;
        width: 100%;
        height: 55px;
        padding: 0;
        background: #fff;
        position: sticky;
        top: 80px;
        display: block;
        border-bottom: none;
        z-index: 600;
    }

    .navbar-side nav {
        width: 100%;
        height: 100%;
    }


    /* -------------------------------------
       HORIZONTAL MENU
    ------------------------------------- */

    .menu {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 30px;
        padding: 0 25px;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .menu::-webkit-scrollbar {
        display: none;
    }

    .menu li {
        flex: 0 0 auto;
    }

    .menu li a {
        font-size: 0.92rem;
    }

    .menu-divider {
        display: none;
    }


    /* -------------------------------------
       HAMBURGER BUTTON
       Tre linee sempre uguali
    ------------------------------------- */

    .mobile-menu-toggle {
        display: flex;
        position: fixed;
        top: 22px;
        right: 25px;
        width: 42px;
        height: 36px;
        padding: 0;
        margin: 0;
        border: 0;
        background: transparent;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 6px;
        cursor: pointer;
        z-index: 1200;
        appearance: none;
        -webkit-appearance: none;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 26px;
        min-width: 26px;
        max-width: 26px;
        height: 2px;
        min-height: 2px;
        max-height: 2px;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: #000;
        flex: 0 0 26px;
        transform-origin: center center;
        transition: transform 0.35s ease, opacity 0.35s ease;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }


    /* -------------------------------------
       MENU OVERLAY
    ------------------------------------- */

    .mobile-menu-overlay {
        position: fixed;
        inset: 0;
        display: flex;
        align-items: stretch;
        justify-content: flex-end;
        background: rgba(255, 255, 255, 0.15);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 1100;
    }

    .mobile-menu-overlay.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }


    /* -------------------------------------
       MENU PANEL
       Centrato verticalmente e orizzontalmente
    ------------------------------------- */

    .mobile-menu-panel {
        width: min(360px, 78vw);
        height: 100%;
        padding: 40px 45px 35px;
        background: #fff;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: relative;
        overflow-y: auto;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
        transform: translateX(100%);
        transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .mobile-menu-overlay.open .mobile-menu-panel {
        transform: translateX(0);
    }

    .mobile-menu-list {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 20px;
        padding: 0;
        margin: 0;
    }

    .mobile-menu-list li:not(.menu-divider-mobile) {
        width: 100%;
        text-align: center;
        margin: 0;
        padding: 0;
    }

    .mobile-menu-list a {
        display: inline-block;
        font-family: "Cormorant Garamond", serif;
        font-size: 1rem;
        font-weight: 500;
        letter-spacing: 0.04em;
        text-decoration: none;
        text-transform: lowercase;
    }

    .menu-divider-mobile {
        width: 35px;
        height: 0.8px;
        margin: 2px 0;
        padding: 0;
        background: #000;
        flex: 0 0 1px;
    }


    /* -------------------------------------
       SOCIAL ICONS INSIDE MENU
    ------------------------------------- */

    .mobile-menu-social {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 13px;
        position: absolute;
        left: 0;
        bottom: 35px;
    }

    .mobile-menu-social a {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: #000;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 17px;
        transition: transform 0.3s ease;
    }

    .mobile-menu-social a:hover {
        transform: translateY(-3px);
    }


    /* -------------------------------------
       HEADER
    ------------------------------------- */

    .site-header {
        display: flex;
        align-items: center;
    }

    .artist-name {
        margin: 0;
        padding: 0;
        line-height: 1;
        font-weight: 700;
    }


    /* -------------------------------------
       MAIN CONTENT
    ------------------------------------- */

    .main-content {
        order: 3;
        width: 100%;
        min-width: 0;
    }


    /* -------------------------------------
       HOME GALLERY
       Il posizionamento masonry è gestito
       da main.js.
    ------------------------------------- */

    .gallery-grid {
        width: 100%;
        min-width: 0;
    }

    .gallery-item {
        min-width: 0;
        min-height: 0;
    }

    .gallery-item img,
    .gallery-item video {
        width: 100%;
        height: 100%;
    }


    /* -------------------------------------
       SIDEBAR SOCIAL
    ------------------------------------- */

    .sidebar-right {
        order: 4;
        width: 100%;
        height: auto;
        border-top: 1px solid #e8e8e8;
        grid-column: auto;
        grid-row: auto;
    }

    .social-container {
        position: static;
        width: 100%;
        height: auto;
        padding: 30px 0;
        flex-direction: row;
        justify-content: center;
        gap: 14px;
    }


    /* -------------------------------------
       FOOTER
    ------------------------------------- */

    .site-footer {
        order: 5;
        width: 100%;
        flex-direction: column;
        gap: 24px;
    }

    .footer-right {
        order: 1;
        font-size: 1.7rem;
        line-height: 1;
    }

    .footer-right p {
        margin: 0;
    }

    .footer-left {
        order: 2;
    }


    /* -------------------------------------
       CONTACT / VIEW RAIL
    ------------------------------------- */

    .contact-view-rail {
        position: fixed;
        top: var(--contact-rail-top);
        right: 0;
        bottom: 0;
        width: var(--contact-rail-width);
        height: auto;
        margin: 0;
        padding: 25px 0 35px;
        background: transparent;
        border-left: none;
        box-sizing: border-box;
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        overflow: visible;
        z-index: 900;
        pointer-events: none;
    }

    .contact-page-main {
        width: calc(100% - var(--contact-rail-width));
        flex: 0 0 calc(100% - var(--contact-rail-width));
        max-width: calc(100% - var(--contact-rail-width));
        margin: 0;
        padding-right: 0;
    }

    .center-contact {
        width: 100%;
        position: relative;
        left: 0;
        transform: translateX(calc(var(--contact-rail-width) / 2));
    }

    .contact-view-label {
        position: absolute;
        left: 50%;
        color: #000;
        writing-mode: vertical-rl;
        text-orientation: mixed;
        white-space: nowrap;
        transform: translateX(-50%) rotate(0deg);
        z-index: 1;
    }

    .view-label {
        transform: translateX(-50%) translateY(-100%) rotate(0deg);
    }

    .contact-view-rail.view-active .view-label {
        transform: translateX(-50%) rotate(0deg);
    }
}


/* =====================================
   TABLET GRANDE
   1024px - 1279px
===================================== */

@media (min-width: 1024px) and (max-width: 1279px) {
    :root {
        --contact-rail-width: 70px;
        --contact-rail-top: 135px;
    }

    .site-header {
        order: 1;
        width: 100%;
        height: 80px;
        padding: 0 70px;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        position: sticky;
        top: 0;
        z-index: 300;
        box-sizing: border-box;
    }

    .artist-name {
        font-size: 1.7rem;
        font-weight: 700;
        line-height: 1;
        margin: 0;
    }

    .navbar-side {
        height: 55px;
        position: sticky;
        top: 80px;
    }

    .menu {
        height: 55px;
        gap: 30px;
        padding: 0 25px;
    }

    .menu li a {
        font-size: 0.92rem;
    }

    .mobile-menu-toggle {
        top: 22px;
        right: 25px;
        width: 40px;
        height: 36px;
        gap: 6px;
    }

    .mobile-menu-toggle span {
        width: 26px;
        min-width: 26px;
        max-width: 26px;
        height: 2px;
    }

    .mobile-menu-overlay {
        background: rgba(0, 0, 0, 0.75);
    }

    .mobile-menu-panel {
        width: min(360px, 78vw);
        padding: 40px 45px 35px;
    }

    .mobile-menu-list {
        gap: 20px;
    }

    .mobile-menu-list a {
        font-size: 1rem;
    }

    .menu-divider-mobile {
        width: 35px;
        margin-top: 3px;
        margin-bottom: 3px;
    }

    .mobile-menu-social {
        gap: 13px;
        bottom: 35px;
    }

    .mobile-menu-social a {
        width: 40px;
        height: 40px;
        font-size: 17px;
    }

    .main-content {
        padding: 25px;
    }

    .simple-grid,
    .contact-view-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .contact-view-rail {
        top: 135px;
        width: var(--contact-rail-width);
        height: calc(100vh - 135px);
    }

    .contact-view-label {
        left: 50%;
        font-size: 1.25rem;
    }

    .site-footer {
        padding: 35px 25px;
    }
}


/* =====================================
   TABLET
   768px - 1023px
===================================== */

@media (min-width: 768px) and (max-width: 1023px) {
    :root {
        --contact-rail-width: 62px;
        --contact-rail-top: 130px;
    }

    .site-header {
        width: 100%;
        height: 75px;
        padding: 0 70px;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        position: sticky;
        top: 0;
        z-index: 300;
        box-sizing: border-box;
    }

    .artist-name {
        font-size: 1.6rem;
        font-weight: 700;
        line-height: 1;
        margin: 0;
    }

    .navbar-side {
        height: 55px;
        position: sticky;
        top: 75px;
    }

    .menu {
        height: 55px;
        gap: 28px;
        padding: 0 25px;
    }

    .menu li a {
        font-size: 0.95rem;
    }

    .mobile-menu-toggle {
        top: 19px;
        right: 25px;
        width: 40px;
        height: 36px;
        gap: 6px;
    }

    .mobile-menu-toggle span {
        width: 26px;
        min-width: 26px;
        max-width: 26px;
        height: 2px;
    }

    .mobile-menu-overlay {
        background: rgba(0, 0, 0, 0.75);
    }

    .mobile-menu-panel {
        width: min(340px, 76vw);
        padding: 40px 40px 30px;
    }

    .mobile-menu-list {
        gap: 20px;
    }

    .mobile-menu-list a {
        font-size: 1.5rem;
    }

    .menu-divider-mobile {
        width: 75%;
        height: 0.8px;
        margin-top: 2px;
        margin-bottom: 2px;
    }

    .mobile-menu-social {
        gap: 13px;
        bottom: 35px;
    }

    .mobile-menu-social a {
        width: 40px;
        height: 40px;
        font-size: 17px;
    }

    .main-content {
        padding: 25px;
    }

    .simple-grid,
    .contact-view-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .contact-view-rail {
        top: 130px;
        width: var(--contact-rail-width);
        height: calc(100vh - 130px);
    }

    .contact-view-label {
        left: 50%;
        font-size: 1.18rem;
    }

    .site-footer {
        padding: 35px 25px;
    }
}


/* =====================================
   SMARTPHONE GRANDE
   480px - 767px
===================================== */

@media (min-width: 480px) and (max-width: 767px) {
    :root {
        --contact-rail-width: 50px;
        --contact-rail-top: 122px;
    }

    .site-header {
        width: 100%;
        height: 70px;
        padding: 0 60px 0 20px;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        position: sticky;
        top: 0;
        z-index: 300;
        box-sizing: border-box;
    }

    .artist-name {
        font-size: 1.45rem;
        font-weight: 700;
        line-height: 1;
        margin: 0;
    }

    .navbar-side {
        height: 52px;
        position: sticky;
        top: 70px;
    }

    .menu {
        height: 52px;
        gap: 24px;
        padding: 0 20px;
    }

    .menu li a {
        font-size: 0.88rem;
    }

    .mobile-menu-toggle {
        top: 17px;
        right: 15px;
        width: 36px;
        height: 36px;
        gap: 6px;
    }

    .mobile-menu-toggle span {
        width: 26px;
        min-width: 26px;
        max-width: 26px;
        height: 2px;
    }

    .mobile-menu-overlay {
        background: rgba(255, 255, 255, 0.15);
    }

    .mobile-menu-panel {
        width: 100%;
        height: 100%;
        padding: 30px;
    }

    .mobile-menu-list {
        gap: 18px;
    }

    .mobile-menu-list a {
        font-size: 1.5rem;
    }

    .menu-divider-mobile {
        width: 55%;
        height: 0.8px;
        margin-top: 2px;
        margin-bottom: 2px;
    }

    .mobile-menu-social {
        gap: 13px;
        bottom: 35px;
    }

    .mobile-menu-social a {
        width: 40px;
        height: 40px;
        font-size: 17px;
    }

    .main-content {
        padding: 20px;
    }

    .simple-grid,
    .contact-view-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .contact-view-rail {
        top: 122px;
        width: var(--contact-rail-width);
        height: calc(100vh - 122px);
    }

    .contact-view-label {
        left: 50%;
        font-size: 1.05rem;
    }

    .contact-section {
        min-height: calc(100vh - 70px - 100px);
        padding: 35px 0 45px;
    }

    .contact-email {
        font-size: 1.25rem;
    }

    .contact-icons {
        gap: 16px;
    }

    .site-footer {
        padding: 35px 20px;
    }
}


/* =====================================
   SMARTPHONE PICCOLO
   < 480px
===================================== */

@media (max-width: 479px) {
    :root {
        --contact-rail-width: 44px;
        --contact-rail-top: 115px;
    }

    .site-header {
        width: 100%;
        height: 65px;
        padding: 0 55px 0 18px;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        position: sticky;
        top: 0;
        z-index: 300;
        box-sizing: border-box;
    }

    .artist-name {
        font-size: 1.25rem;
        font-weight: 700;
        line-height: 1;
        margin: 0;
    }

    .navbar-side {
        height: 50px;
        position: sticky;
        top: 65px;
    }

    .menu {
        height: 50px;
        gap: 20px;
        padding: 0 18px;
    }

    .menu li a {
        font-size: 0.82rem;
    }

    .mobile-menu-toggle {
        top: 14px;
        right: 10px;
        width: 36px;
        height: 36px;
        gap: 6px;
    }

    .mobile-menu-toggle span {
        width: 26px;
        min-width: 26px;
        max-width: 26px;
        height: 2px;
    }

    .mobile-menu-panel {
        width: 100%;
        height: 100%;
        padding: 30px 20px 22px;
    }

    .mobile-menu-list {
        gap: 15px;
    }

    .mobile-menu-list a {
        font-size: 1.5rem;
    }

    .menu-divider-mobile {
        width: 55%;
        height: 0.8px;
        margin-top: 2px;
        margin-bottom: 2px;
    }

    .mobile-menu-social {
        gap: 12px;
        bottom: 22px;
    }

    .mobile-menu-social a {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .main-content {
        padding: 16px;
    }

    .simple-grid,
    .contact-view-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .contact-view-rail {
        top: 115px;
        width: var(--contact-rail-width);
        height: calc(100vh - 115px);
    }

    .contact-view-label {
        left: 50%;
        font-size: 0.9rem;
    }

    .contact-section {
        min-height: calc(100vh - 65px - 90px);
        padding: 30px 0 35px;
    }

    .contact-email {
        font-size: 1.05rem;
    }

    .contact-icons {
        gap: 12px;
    }

    .contact-icons a {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .site-footer {
        padding: 30px 16px;
    }

    .section-page {
        padding: 10px 0 40px;
    }
}


/* -------------------------------------
   CONCEPT - DESKTOP / LAPTOP
   1280px - 1919px
   Layout alternato con descrizione
   parzialmente visibile.
------------------------------------- */

@media (min-width: 1280px) and (max-width: 1919px) {
    .concept-description.is-long .concept-description-content {
        max-height: calc(1.7em * 4);
    }

    .concept-description.is-long.expanded .concept-description-content {
        max-height: 2000px;
    }
}


/* =====================================
   CONCEPT - TABLET
   768px - 1279px
   Immagine sopra, testo sotto.
===================================== */

@media (min-width: 768px) and (max-width: 1279px) {
    .concept-section {
        gap: 55px;
    }

    .concept-row,
    .concept-row.reverse {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 22px;
    }

    .concept-media,
    .concept-text {
        width: 100%;
        max-width: 100%;
        flex: none;
        min-width: 0;
    }

    .concept-media {
        order: 1;
    }

    .concept-text {
        order: 2;
    }

    .concept-media img,
    .concept-media video {
        width: 100%;
        max-width: 100%;
        height: auto;
        display: block;
    }

    .concept-text h2 {
        margin-top: 0;
        margin-bottom: 12px;
    }

    .concept-info {
        margin-bottom: 12px;
    }

    .concept-description {
        width: 100%;
    }

    .concept-description p {
        line-height: 1.6;
    }

    .concept-description.is-long .concept-description-content {
        max-height: calc(1.6em * 3);
    }

    .concept-description.is-long.expanded .concept-description-content {
        max-height: 2000px;
    }

    .concept-more-button {
        margin-top: 0.65rem;
    }
}


/* =====================================
   CONCEPT - SMARTPHONE
   < 768px
   Immagine sopra, testo sotto.
===================================== */

@media (max-width: 767px) {
    .concept-section {
        gap: 45px;
    }

    .concept-row,
    .concept-row.reverse {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
    }

    .concept-media,
    .concept-text {
        width: 100%;
        max-width: 100%;
        flex: none;
        min-width: 0;
    }

    .concept-media {
        order: 1;
    }

    .concept-text {
        order: 2;
    }

    .concept-media img,
    .concept-media video {
        width: 100%;
        max-width: 100%;
        height: auto;
        display: block;
    }

    .concept-text h2 {
        margin-top: 0;
        margin-bottom: 12px;
    }

    .concept-info {
        margin-bottom: 12px;
    }

    .concept-description {
        width: 100%;
    }

    .concept-description p {
        line-height: 1.6;
    }

    .concept-description.is-long .concept-description-content {
        max-height: calc(1.6em * 3);
    }

    .concept-description.is-long.expanded .concept-description-content {
        max-height: 2000px;
    }

    .concept-more-button {
        margin-top: 0.6rem;
    }
}


/* =====================================
   CONCEPT - SMARTPHONE PICCOLO
   < 480px
===================================== */

@media (max-width: 479px) {
    .concept-section {
        gap: 40px;
    }

    .concept-row,
    .concept-row.reverse {
        gap: 16px;
    }
}


/* =====================================
   HOME GALLERY - TABLET / SMARTPHONE
   Due colonne, forme compatte e pochi
   elementi speciali a due colonne.
===================================== */

@media (max-width: 1279px) {
    .home-gallery {
        padding-bottom: 0;
        margin-bottom: 0;
    }

    .gallery-grid {
        gap: 8px;
    }

    .gallery-item--landscape {
        aspect-ratio: 3 / 2;
    }

    .gallery-item--portrait {
        aspect-ratio: 4 / 5;
    }

    .gallery-item--square {
        aspect-ratio: 1 / 1;
    }

    .gallery-item--wide,
    .gallery-item--mobile-wide {
        aspect-ratio: 16 / 9;
    }
}


/* =====================================
   HOME GALLERY - SMARTPHONE SPECIALI
   Alcuni elementi possono occupare
   entrambe le colonne.
===================================== */

@media (max-width: 767px) {
    .gallery-item--mobile-tall {
        aspect-ratio: 3 / 4;
    }

    .gallery-item--mobile-wide {
        aspect-ratio: 16 / 9;
    }
}


/* =====================================
   BIO - RESPONSIVE
   Regole specifiche della pagina Bio
===================================== */

/* Tablet e schermi intermedi */

@media (min-width: 768px) and (max-width: 1279px) {
    /* Contenuto Bio a tutta larghezza e chiusura compatta */

    .bio-page {
        width: 100%;
        max-width: none;
        padding: 14px 8px 18px;
    }

    .bio-page .bio-layout {
        gap: 42px;
    }

    .bio-page .bio-intro {
        grid-template-columns:
            minmax(0, 0.9fr)
            minmax(0, 1.1fr);
        gap: 26px;
    }

    .bio-page .bio-awards {
        grid-template-columns: 1fr 1.3fr;
        gap: 22px;
        padding: 26px;
    }

    .bio-page .bio-interview {
        padding: 24px;
    }
}


/* Smartphone */

@media (max-width: 767px) {
    .main-content.bio-page-main {
        width: 100%;
        padding: 16px;
    }

    /* Contenuto Bio compatto su smartphone */

    .bio-page {
        width: 100%;
        max-width: none;
        padding: 8px 0 12px;
    }

    .bio-page .bio-layout {
        gap: 38px;
    }

    /* Ritratto sopra, informazioni sotto */

    .bio-page .bio-intro {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        align-items: start;
    }

    .bio-page .bio-portrait {
        width: 100%;
        max-width: 460px;
        margin: 0 auto;
    }

    .bio-page .bio-portrait img {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 5;
        object-fit: cover;
    }

    .bio-page .bio-identity h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .bio-page .bio-subtitle {
        font-size: 1rem;
        line-height: 1.5;
    }

    .bio-page .bio-section h2 {
        font-size: clamp(1.55rem, 6vw, 2rem);
    }

    .bio-page .bio-section p {
        font-size: 0.95rem;
        line-height: 1.75;
    }

    /* Premi in una sola colonna */

    .bio-page .bio-awards {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        padding: 22px 18px;
    }

    .bio-page .bio-awards h2 {
        margin-bottom: 0;
    }

    .bio-page .bio-research-list {
        padding-left: 20px;
    }

    .bio-page .bio-quote {
        padding-left: 18px;
        font-size: 1.35rem;
    }

    .bio-page .bio-interview {
        padding: 18px 14px;
        margin-top: 28px;
    }

    .bio-page .bio-video-preview {
        width: 100%;
    }

    .bio-page .bio-youtube-logo {
        width: 58px;
    }

    .bio-page .bio-video-caption {
        right: 12px;
        bottom: 12px;
        left: 12px;
        font-size: 0.78rem;
    }

    .bio-video-modal {
        padding: 12px;
    }
}


/* Smartphone molto piccoli */

@media (max-width: 479px) {
    .main-content.bio-page-main {
        padding: 12px;
    }

    .bio-page .bio-layout {
        gap: 32px;
    }

    .bio-page .bio-awards {
        padding: 18px 14px;
    }

    .bio-page .bio-contact p {
        font-size: 0.82rem;
    }

    .bio-page .bio-interview-heading h3 {
        font-size: 1.45rem;
    }
}


/* =====================================
   BIO - GRANDI SCHERMI
   Da 2200px in su
===================================== */

@media (min-width: 2200px) {
    /* Recupera spazio a sinistra nella pagina */

    .main-content.bio-page-main {
        padding-left: 0;
        padding-right: 20px;
    }

    .bio-page {
        padding-left: 0;
        padding-right: 12px;
    }

    /* Immagine grande e testo più vicino */

    .bio-page .bio-intro {
        grid-template-columns:
            minmax(0, 720px)
            minmax(0, 1fr);
        gap: clamp(28px, 1.5vw, 40px);
        justify-content: start;
        align-items: center;
    }

    /* Ritratto più grande e allineato a sinistra */

    .bio-page .bio-portrait {
        width: 100%;
        max-width: 720px;
        justify-self: start;
    }

    .bio-page .bio-portrait img {
        width: 100%;
        aspect-ratio: 4 / 5;
        object-fit: cover;
        object-position: center;
    }

    /* Testo accostato maggiormente all'immagine */

    .bio-page .bio-identity {
        width: 100%;
        max-width: 900px;
        min-width: 0;
        justify-self: start;
    }

    .bio-page .bio-identity h1 {
        font-size: clamp(3.2rem, 3.2vw, 4.5rem);
    }

    .bio-page .bio-subtitle {
        font-size: 1.35rem;
    }

    .bio-page .bio-contact p {
        font-size: 1rem;
    }

    .bio-page .bio-intro-note {
        font-size: 1.35rem;
    }

    .bio-page .bio-section p {
        font-size: 1.08rem;
        line-height: 1.85;
    }
}


/* =====================================
   MENU - TELEFONO IN ORIZZONTALE
   Nasconde il menu quando si scorre in basso
===================================== */

@media (orientation: landscape) and (max-height: 500px) and (max-width: 1279px) {
    .site-header {
        z-index: 900;
        background-color: #fff;
        isolation: isolate;
    }

    .navbar-side {
        z-index: 800;
        background-color: #fff;
        isolation: isolate;
        transition:
            transform 0.28s ease,
            opacity 0.2s ease,
            visibility 0s linear;
    }

    .navbar-side.is-scroll-hidden {
        transform: translateY(calc(-100% - 2px));
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition:
            transform 0.28s ease,
            opacity 0.2s ease,
            visibility 0s linear 0.28s;
    }
}


/* =====================================
   MENU A COMPARSA - TELEFONO ORIZZONTALE
   Contenuto scorrevole senza sovrapposizioni
===================================== */

@media (orientation: landscape) and (max-height: 500px) and (max-width: 1279px) {
    .mobile-menu-panel {
        justify-content: flex-start;
        gap: 18px;
        padding: 58px 24px 24px;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior-y: contain;
        -webkit-overflow-scrolling: touch;
    }

    .mobile-menu-list {
        flex: 0 0 auto;
    }

    .mobile-menu-social {
        position: static;
        left: auto;
        bottom: auto;
        flex: 0 0 auto;
        margin-top: 0;
    }
}