/* ========================================================
   TINY TEMPLE - CORE STYLESHEET (CLEAN & OPTIMIZED)
   ======================================================== */

/* ========================================================
   FONT SELF-HOSTED (SIL Open Font License 1.1)
   Archivo (Omnibus-Type) e Inter (Rasmus Andersson).
   Licenze complete in assets/fonts/OFL-*.txt
   Nessuna richiesta verso Google: i file sono serviti dal sito.
   ======================================================== */

@font-face {
    font-family: 'Archivo';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('assets/fonts/archivo-400-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Archivo';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('assets/fonts/archivo-400-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Archivo';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('assets/fonts/archivo-500-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Archivo';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('assets/fonts/archivo-500-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Archivo';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('assets/fonts/archivo-600-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Archivo';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('assets/fonts/archivo-600-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Archivo';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('assets/fonts/archivo-700-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Archivo';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('assets/fonts/archivo-700-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('assets/fonts/inter-300-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('assets/fonts/inter-300-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('assets/fonts/inter-400-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('assets/fonts/inter-400-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('assets/fonts/inter-500-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('assets/fonts/inter-500-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- 1. RESET & VARIABLES --- */
:root {
    --bg-color: #080808;
    --text-primary: #e6e6e6;
    --text-muted: #a09085;
    --accent-brown: #4a3b32;
    --accent-orange: #cf5c36;

    --font-title: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-text: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;

    --ease-cinematic: cubic-bezier(0.65, 0, 0.35, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Gli attributi width/height sui tag <img> servono solo a prenotare lo spazio
   prima che l'immagine arrivi: le proporzioni restano decise dal CSS.
   Sta qui in alto apposta, cosi' ogni regola successiva puo' sovrascriverlo. */
img {
    height: auto;
}

html, body {
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-text);
    overflow-x: hidden;
    overflow-y: auto;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(74, 59, 50, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(207, 92, 54, 0.08) 0%, transparent 60%);
    background-attachment: fixed;
}

body.menu-open {
    overflow: hidden;
}

h1, h2, h3 { 
    font-weight: 300; 
}

/* Film Grain Overlay */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('data:image/svg+xml,%3Csvg viewBox=%220 0 200 200%22 xmlns=%22http://www.w3.org/2000/svg%22%3E%3Cfilter id=%22noiseFilter%22%3E%3CfeTurbulence type=%22fractalNoise%22 baseFrequency=%220.8%22 numOctaves=%223%22 stitchTiles=%22stitch%22/%3E%3C/filter%3E%3Crect width=%22100%25%22 height=%22100%25%22 filter=%22url(%23noiseFilter)%22 opacity=%220.06%22/%3E%3C/svg%3E');
    pointer-events: none;
    z-index: 9998;
    mix-blend-mode: overlay;
}

/* --- 2. INTRO LAYER & LOGO --- */
#intro-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 1.5s ease-out;
}

#intro-layer.intro-complete {
    background-color: rgba(8, 8, 8, 0);
    pointer-events: none;
}

.logo-wrapper {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10020;
    will-change: top, left, transform;
    transition: all 1.2s var(--ease-cinematic);
}

.logo-wrapper.in-nav,
.logo-wrapper.static-nav {
    top: 58px;
    left: 50px;
    transform: translate(-50%, -50%) scale(0.5);
    background: transparent !important;
    border-radius: 50%;
    box-shadow: none;
    cursor: pointer;
    pointer-events: auto;
    transition: all 1.2s var(--ease-cinematic);
}

body.menu-open .logo-wrapper {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.temple-logo {
    width: 100%;
    height: 100%;
    transition: fill 0.5s ease;
}

@keyframes heartbeat {
    0% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.15); filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.2)); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

.pulse-anim {
    animation: heartbeat 0.8s ease-in-out forwards;
}

/* --- 3. NAVBAR & FULLSCREEN MENU --- */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 35px 40px;
    z-index: 10010;
    box-sizing: border-box;
    display: flex;
    justify-content: flex-end;
    pointer-events: none;
    mix-blend-mode: exclusion;
}

body.menu-open #navbar {
    mix-blend-mode: normal;
}

.menu-trigger {
    pointer-events: auto;
    cursor: pointer;
    width: 50px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 8px;
    transition: transform 0.3s ease;
}

.menu-trigger .line {
    width: 40px;
    height: 2px;
    background-color: #fff;
    transition: all 0.4s var(--ease-cinematic);
    transform-origin: center;
}

.menu-trigger:hover .line:first-child { transform: translateY(-2px); }
.menu-trigger:hover .line:last-child { transform: translateY(2px); }

body.menu-open .menu-trigger .line:first-child {
    transform: translateY(5px) rotate(45deg);
    background-color: var(--accent-orange);
    width: 35px;
}

body.menu-open .menu-trigger .line:last-child {
    transform: translateY(-5px) rotate(-45deg);
    background-color: var(--accent-orange);
    width: 35px;
}

#fullscreen-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10005;
    transform: translateY(100%);
    transition: transform 0.8s var(--ease-cinematic);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #080808;
}

body.menu-open #fullscreen-menu {
    transform: translateY(0%);
}

.menu-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.3);
    z-index: 1;
}

.menu-content {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.menu-logo {
    width: 80px;
    height: auto;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s;
}

body.menu-open .menu-logo {
    opacity: 1;
    transform: translateY(0);
}

.menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.menu-link {
    display: block;
    font-family: var(--font-title);
    font-size: 2.8rem;
    color: #e6e6e6;
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    opacity: 0;
    transform: translateY(40px);
    transition: color 0.3s ease, transform 0.3s ease, opacity 0.5s ease;
}

body.menu-open .menu-link:nth-child(1) { transition-delay: 0.3s; }
body.menu-open .menu-link:nth-child(2) { transition-delay: 0.4s; }
body.menu-open .menu-link:nth-child(3) { transition-delay: 0.5s; }
body.menu-open .menu-link:nth-child(4) { transition-delay: 0.6s; }

body.menu-open .menu-link {
    opacity: 1;
    transform: translateY(0);
}

.menu-link:hover {
    color: var(--accent-orange);
    transform: scale(1.05);
    text-shadow: 0 0 20px rgba(207, 92, 54, 0.4);
}

/* --- 4. HERO SECTION --- */
.hero-section {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-color: var(--bg-color);
    z-index: 10;
}

@keyframes kenBurns {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}

#hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--hero-bg, none);
    background-size: cover;
    background-position: center;
    opacity: 0.6;
    z-index: 0;
    animation: kenBurns 25s ease-out infinite alternate;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(8, 8, 8, 0.3) 0%, rgba(8, 8, 8, 1) 95%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

h1 {
    font-family: var(--font-title);
    font-size: 4rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

h1.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-subtitle {
    font-family: var(--font-text);
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-top: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 300;
    opacity: 0;
    transition: opacity 1s ease, transform 1s ease;
}

/* --- 5. NARRATIVE SECTION --- */
.narrative-section {
    position: relative;
    padding: 120px 5%;
    max-width: 1300px;
    margin: 0 auto;
    z-index: 10;
}

.story-block {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    align-items: center;
    margin-bottom: 180px;
    perspective: 1500px;
}

.story-block.text-left .image-box { grid-column: 5 / 13; grid-row: 1; z-index: 1; }
.story-block.text-left .content-box { grid-column: 1 / 7; grid-row: 1; z-index: 2; }
.story-block.text-right .image-box { grid-column: 1 / 9; grid-row: 1; z-index: 1; }
.story-block.text-right .content-box { grid-column: 7 / 13; grid-row: 1; z-index: 2; }

.image-box {
    height: 550px;
    position: relative;
    overflow: hidden;
    background: #000;
    border-radius: 4px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
    opacity: 0;
    transform: translateY(40px);
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
    will-change: transform;
}

.image-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    z-index: 2;
    transform-origin: top;
    transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}

.image-box.is-visible { opacity: 1; transform: translateY(0); }
.image-box.is-visible::after { transform: scaleY(0); }

.detail-img {
    position: absolute;
    top: -10%;
    left: 0;
    width: 100%;
    height: 120%;
    object-fit: cover;
    will-change: transform;
    transition: transform 0.1s linear;
    z-index: 1;
}

.content-box {
    background: rgba(12, 12, 12, 0.75);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 60px 50px;
    border-radius: 4px;
    border-left: 2px solid var(--accent-orange);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    opacity: 0;
    transform: translateY(40px) translateZ(0);
    will-change: transform, opacity, filter;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.2s ease, filter 1.2s ease;
    transform-origin: center;
}

.story-block.text-right .content-box {
    border-left: none;
    border-right: 2px solid var(--accent-orange);
    text-align: right;
}

.content-box.is-visible {
    opacity: 1;
    transform: translateY(0) translateZ(0);
}

.content-box h2,
.content-box p {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.content-box h2 {
    font-family: var(--font-title);
    font-size: 3rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: 25px;
    color: var(--text-primary);
    line-height: 1.05;
}

.content-box p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-muted);
    font-weight: 300;
}

.content-box h2::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--accent-orange);
    margin-top: 20px;
    transition: width 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.story-block.text-right .content-box h2::after { margin-left: auto; }

.content-box.is-visible h2 { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
.content-box.is-visible h2::after { width: 40px; transition-delay: 0.6s; }
.content-box.is-visible p { opacity: 1; transform: translateY(0); transition-delay: 0.8s; }

/* Desktop Hover 3D per Sezione Narrativa */
@media (hover: hover) and (pointer: fine) {
    .story-block:has(.image-box:hover) .image-box {
        transform: scale(1.02) translateZ(40px);
        box-shadow: 0 40px 80px rgba(0, 0, 0, 0.9);
        z-index: 3;
    }

    .story-block:has(.image-box:hover) .content-box {
        opacity: 0.3;
        filter: blur(6px);
        transform: scale(0.95) translateZ(-50px);
    }

    .story-block:has(.content-box:hover) .content-box {
        transform: scale(1.02) translateZ(40px);
        box-shadow: 0 40px 80px rgba(0, 0, 0, 0.9);
        z-index: 3;
    }

    .story-block:has(.content-box:hover) .image-box {
        opacity: 0.3;
        filter: blur(6px);
        transform: scale(0.95) translateZ(-50px);
    }
}

/* --- 6. SPATIAL UI: CONNECT SECTION & SOCIAL GRID --- */
.connect-section {
    position: relative;
    padding: 140px 5% 160px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    overflow: visible;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.connect-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.spatial-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(
        ellipse at center, 
        rgba(207, 92, 54, 0.14) 0%, 
        rgba(207, 92, 54, 0.08) 30%, 
        rgba(74, 59, 50, 0.03) 60%, 
        transparent 75%
    );
    pointer-events: none;
    z-index: 1;
    opacity: 1;
}

.spatial-glass-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 900px;
    padding: 70px 40px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(20, 18, 16, 0.45) 100%);
    backdrop-filter: blur(35px) saturate(180%);
    -webkit-backdrop-filter: blur(35px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.4);
    text-align: center;
}

.connect-tag {
    display: inline-block;
    font-family: var(--font-text);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-orange);
    margin-bottom: 16px;
    font-weight: 400;
}

.connect-title {
    font-family: var(--font-title);
    font-size: 2.3rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 45px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.social-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.spatial-btn,
.spatial-btn:visited,
.spatial-btn:active,
.spatial-btn:focus {
    position: relative;
    width: 66px;
    height: 66px;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: #ffffff !important;
    transform: translateZ(0);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    -webkit-tap-highlight-color: transparent;
}

.spatial-btn .btn-glass {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(15, 15, 15, 0.6) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.5),
        inset 0 1px 2px rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 2;
}

.spatial-btn svg {
    position: relative;
    z-index: 3;
    color: #ffffff;
    transition: transform 0.4s ease, filter 0.4s ease, color 0.4s ease;
}

.spatial-btn .btn-glow {
    position: absolute;
    inset: -2px;
    border-radius: 20px;
    opacity: 0;
    filter: blur(8px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: 1;
    pointer-events: none;
}

.tiktok-btn .btn-glow { background: radial-gradient(circle at 30% 30%, rgba(0, 242, 254, 0.6), rgba(254, 9, 121, 0.6)); }
.instagram-btn .btn-glow { background: radial-gradient(circle, rgba(253, 89, 73, 0.6), rgba(214, 36, 159, 0.6), rgba(40, 90, 235, 0.6)); }
.whatsapp-btn .btn-glow { background: radial-gradient(circle, rgba(37, 211, 102, 0.6), rgba(18, 140, 126, 0.6)); }
.mail-btn .btn-glow { background: radial-gradient(circle, rgba(207, 92, 54, 0.6), rgba(255, 159, 67, 0.6)); }

@media (hover: hover) and (pointer: fine) {
    .spatial-btn:hover { transform: translateY(-6px) scale(1.06); }
    .spatial-btn:hover .btn-glow { opacity: 0.45; }
    .spatial-btn:hover .btn-glass {
        border-color: rgba(255, 255, 255, 0.35);
        background: linear-gradient(145deg, rgba(255, 255, 255, 0.15) 0%, rgba(20, 20, 20, 0.4) 100%);
    }
    .spatial-btn:hover svg { transform: scale(1.1); }
    .tiktok-btn:hover svg { filter: drop-shadow(0 0 8px rgba(0, 242, 254, 0.6)); }
    .instagram-btn:hover svg { color: #ff8ca3; filter: drop-shadow(0 0 10px rgba(214, 36, 159, 0.6)); }
    .whatsapp-btn:hover svg { color: #4dfa8b; filter: drop-shadow(0 0 10px rgba(37, 211, 102, 0.6)); }
    .mail-btn:hover svg { color: var(--accent-orange); filter: drop-shadow(0 0 10px rgba(207, 92, 54, 0.7)); }
}

.spatial-btn:active {
    transform: translateY(-2px) scale(0.98);
}

/* --- 7. FLOATING BUTTONS (WHATSAPP & LINGUA) --- */
/* --- FLOATING BUTTONS BASE & TRANSIZIONI --- */
.floating-btn {
    position: fixed;
    bottom: 30px;
    width: 50px;
    height: 50px;
    z-index: 10015;
    border-radius: 50%;
    
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(18, 18, 18, 0.45) 100%);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.35);
    border-left: 1px solid rgba(255, 255, 255, 0.25);
    
    box-shadow: 
        0 12px 28px rgba(0, 0, 0, 0.6),
        inset 0 1px 2px rgba(255, 255, 255, 0.3),
        inset 0 -1px 2px rgba(0, 0, 0, 0.4);
        
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    
    /* TRANSIZIONE DI RITORNO MODERATA (Fade-out morbido di 0.5 secondi) */
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), 
                box-shadow 0.5s ease, 
                border-color 0.5s ease, 
                background 0.5s ease,
                opacity 0.4s ease;
                
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    -webkit-tap-highlight-color: transparent;
}

.floating-btn::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    opacity: 0;
    filter: blur(12px);
    /* Ritorno morbido per il glow */
    transition: opacity 0.6s ease, transform 0.6s ease;
    z-index: 1;
    pointer-events: none;
}

/* TAP / TOUCH REACTION (Mobile e Desktop) */
.floating-btn:active,
.floating-btn.is-pressed {
    transform: translateY(-8px) scale(1.1) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    /* Salita rapida e reattiva */
    transition: transform 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.12s ease, 
                background 0.12s ease !important;
}

#wa-btn:active,
#wa-btn.is-pressed {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(37, 211, 102, 0.25) 100%) !important;
    box-shadow: 
        0 18px 35px rgba(37, 211, 102, 0.35),
        0 10px 20px rgba(0, 0, 0, 0.8),
        inset 0 1px 3px rgba(255, 255, 255, 0.6) !important;
}

#lang-btn:active,
#lang-btn.is-pressed {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(207, 92, 54, 0.22) 100%) !important;
    box-shadow: 
        0 18px 35px rgba(207, 92, 54, 0.3),
        0 10px 20px rgba(0, 0, 0, 0.8),
        inset 0 1px 3px rgba(255, 255, 255, 0.6) !important;
}

.floating-btn:active::before,
.floating-btn.is-pressed::before {
    opacity: 1 !important;
    transform: scale(1.15) !important;
    transition: opacity 0.12s ease, transform 0.12s ease !important;
}

#wa-btn::before {
    background: radial-gradient(circle at center, rgba(37, 211, 102, 0.5) 0%, rgba(18, 140, 126, 0) 70%);
}

#lang-btn::before {
    background: radial-gradient(circle at center, rgba(207, 92, 54, 0.35) 0%, rgba(74, 59, 50, 0) 70%);
}

#wa-btn svg {
    position: relative;
    z-index: 2;
    width: 28px;
    height: 28px;
    fill: #ffffff !important;
    color: #ffffff !important;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.4));
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.4s ease, fill 0.4s ease;
}

.lang-icon {
    width: 24px;
    height: 24px;
    stroke: #ffffff !important;
    fill: none !important;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), stroke 0.3s ease, filter 0.3s ease;
    pointer-events: none;
}

.lang-icon.rotate-anim {
    transform: scale(1.15) rotate(360deg) !important;
}

.floating-btn.nav-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.floating-btn.nav-hidden-scroll {
    transform: translateY(150%) !important;
    opacity: 0;
    pointer-events: none;
}

body.menu-open .floating-btn {
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto;
}

.float-left { left: 30px; }
.float-right { right: 30px; }

/* HOVER REACTION (DESKTOP) */
@media (hover: hover) and (pointer: fine) {
    .floating-btn:hover {
        transform: translateY(-6px) scale(1.08) !important;
        border-color: rgba(255, 255, 255, 0.5);
        box-shadow: 
            0 20px 35px rgba(0, 0, 0, 0.8),
            inset 0 1px 3px rgba(255, 255, 255, 0.6);
    }

    #wa-btn:hover {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0%, rgba(37, 211, 102, 0.2) 100%);
        box-shadow: 
            0 15px 30px rgba(37, 211, 102, 0.25),
            0 10px 20px rgba(0, 0, 0, 0.8),
            inset 0 1px 3px rgba(255, 255, 255, 0.6);
    }

    #lang-btn:hover {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0%, rgba(207, 92, 54, 0.18) 100%);
        box-shadow: 
            0 15px 30px rgba(207, 92, 54, 0.2),
            0 10px 20px rgba(0, 0, 0, 0.8),
            inset 0 1px 3px rgba(255, 255, 255, 0.6);
    }

    .floating-btn:hover::before {
        opacity: 1;
        transform: scale(1.1);
    }

    #wa-btn:hover svg {
        fill: #ffffff !important;
        transform: scale(1.1);
        filter: drop-shadow(0 0 8px rgba(37, 211, 102, 0.6));
    }

    #lang-btn:hover .lang-icon {
        stroke: #ffffff !important;
        fill: none !important;
        transform: scale(1.1);
        filter: drop-shadow(0 0 8px rgba(207, 92, 54, 0.6));
    }
}

#wa-btn:active svg {
    fill: #ffffff !important;
    transform: scale(1.1) !important;
    filter: drop-shadow(0 0 8px rgba(37, 211, 102, 0.6)) !important;
}

#lang-btn:active .lang-icon {
    stroke: #ffffff !important;
    fill: none !important;
    transform: scale(1.1) !important;
    filter: drop-shadow(0 0 8px rgba(207, 92, 54, 0.6)) !important;
}

.floating-btn:focus:not(:focus-visible),
.floating-btn:focus-within:not(:focus-visible) {
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

/* --- 8. FOOTER --- */
footer {
    text-align: center;
    padding: 30px;
    color: #333;
    font-size: 0.8rem;
    margin-bottom: 60px;
}

.footer-address {
    color: var(--text-muted);
    font-family: var(--font-title);
    font-size: 1rem;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.footer-legal-note {
    max-width: 620px;
    margin: 18px auto 20px;
    font-size: 0.72rem;
    line-height: 1.7;
    color: var(--text-muted);
    opacity: 0.75;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 22px;
    margin-bottom: 14px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.78rem;
    /* area di tocco: il testo non si muove, il bersaglio arriva a 25px */
    padding: 5px 2px;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-orange);
}

/* --- Riga privacy sotto il form contatti (art. 13 GDPR) --- */
.form-privacy {
    font-size: 0.82rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-top: 4px;
}

.form-privacy a {
    color: var(--text-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.3s ease;
}

.form-privacy a:hover {
    color: var(--accent-orange);
}

.is-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* --- 9. PORTFOLIO & SERVIZI SECTIONS --- */
.process-bar {
    text-align: center;
    padding: 80px 20px 60px;
    position: relative;
    z-index: 5;
    background: transparent;
    overflow: hidden;
}

.process-bar span {
    font-family: var(--font-title);
    font-size: 1.5rem;
    color: var(--accent-orange);
    opacity: 0.9;
    letter-spacing: 2px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    display: block;
    white-space: nowrap;
}

.portfolio-hero {
    height: 40vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    margin-top: 80px;
}

.portfolio-hero h1 {
    font-size: 2.2rem;
    font-weight: 300;
    color: var(--text-muted);
    font-family: var(--font-text);
    letter-spacing: 1px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.portfolio-hero h1.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-grid-section {
    padding: 0 5% 100px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.cover-card {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
    cursor: pointer;
    background: #111;
    opacity: 0;
    transform: translateY(30px);
}

.cover-card.is-visible { opacity: 1; transform: translateY(0); }
.cover-card:hover { transform: scale(1.03) translateY(-5px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7); z-index: 2; }
.cover-card img { width: 100%; height: 100%; object-fit: cover; transition: filter 0.4s ease; }

.cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
    text-align: center;
}

.cover-card:hover .cover-overlay { opacity: 1; }

.project-title {
    color: #fff;
    font-family: var(--font-title);
    font-size: 1.2rem;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.cover-card:hover .project-title { transform: translateY(0); }

.visual-break {
    padding: 100px 20px;
    text-align: center;
}

.visual-break p {
    font-family: var(--font-title);
    font-size: 1.8rem;
    color: var(--text-primary);
    opacity: 0.8;
}

.playlist-section {
    background: radial-gradient(circle at center, rgba(74, 59, 50, 0.2) 0%, rgba(5, 5, 5, 1) 70%);
    padding: 120px 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.playlist-content h2 {
    font-family: var(--font-title);
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--text-primary);
}

.playlist-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.playlist-cover-img {
    width: 280px;
    height: 280px;
    object-fit: cover;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    transition: transform 0.4s ease;
    border-radius: 4px;
}

.playlist-cover-img:hover { transform: scale(1.03); }

.spotify-btn {
    display: inline-block;
    text-decoration: none;
    color: #fff;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 15px 45px;
    border-radius: 50px;
    font-family: var(--font-text);
    font-weight: 300;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.spotify-btn:hover {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(207, 92, 54, 0.4);
}

.role-text {
    color: var(--accent-orange);
    font-family: var(--font-text);
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

/* --- 10. COVERFLOW PLAYER SECTION --- */
.coverflow-section {
    width: 100vw;
    padding: 90px 0 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    position: relative;
    z-index: 5;
}

.mp-text-info-dynamic {
    text-align: center;
    margin-bottom: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
    height: 110px;
    justify-content: flex-end;
}

.mp-dynamic-title {
    font-family: var(--font-title);
    font-size: 1.8rem;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 2px;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.mp-dynamic-artist {
    font-size: 1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.mp-song-detail {
    font-size: 0.8rem;
    color: #fff;
    margin-top: 5px;
    opacity: 0.7;
}

.mp-song-detail span {
    color: var(--accent-orange);
    font-weight: bold;
}

.mp-carousel {
    position: relative;
    width: 100vw;
    height: 360px;
    perspective: 1000px;
    transform-style: preserve-3d;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    cursor: grab;
    touch-action: pan-y;
}

.mp-carousel:active { cursor: grabbing; }
.mp-carousel.is-dragging { cursor: grabbing; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.mp-carousel.is-dragging .carousel-item { transition: none; }

.carousel-item {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 270px;
    height: 270px;
    margin-left: -135px;
    margin-top: -135px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease, filter 0.4s ease;
    user-select: none;
    -webkit-user-drag: none;
    cursor: pointer;
}

.player-bottom-ui {
    width: 100%;
    max-width: 500px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mp-progress-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    width: 100%;
    margin-bottom: 20px;
}

.mp-progress-bar {
    flex-grow: 1;
    height: 5px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.mp-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--text-primary);
    border-radius: 4px;
    pointer-events: none;
    transition: width 0.1s linear;
}

.mp-buttons-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
}

.mp-ctrl-side.left {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 20px;
    padding-right: 30px;
}

.mp-ctrl-center {
    display: flex;
    justify-content: center;
}

.mp-ctrl-side.right {
    justify-self: start;
    display: flex;
    align-items: center;
    gap: 20px;
    padding-left: 30px;
}

.mp-btn {
    background: transparent;
    border: none;
    /* area di tocco: l'icona resta da 22px, il bersaglio diventa 32px */
    padding: 5px;
    color: var(--text-primary);
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mp-btn:hover {
    color: var(--accent-orange);
    transform: scale(1.1);
}

.mp-play-btn {
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    color: #000;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.mp-play-btn:hover {
    background: var(--accent-orange);
    color: #fff;
}

.spotify-player-btn {
    color: #1DB954;
}

.spotify-player-btn:hover {
    color: #1ed760;
    transform: scale(1.15);
    filter: drop-shadow(0 0 10px rgba(29, 185, 84, 0.4));
}

.mp-badge-inline {
    font-family: var(--font-text);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-muted);
    padding: 3px 8px;
    border-radius: 4px;
}

.mp-badge-inline[data-type="Album"] {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
    background: rgba(207, 92, 54, 0.1);
}

/* --- 11. TRACKLIST TABLE --- */
.tracklist-container {
    max-width: 1400px;
    margin: 0 auto 150px;
    padding: 0 5%;
}

.tracklist-header {
    display: grid;
    grid-template-columns: 50px 60px 3fr 2fr 1.5fr 3.5fr 60px;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-family: var(--font-text);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.track-row {
    display: grid;
    grid-template-columns: 50px 60px 3fr 2fr 1.5fr 3.5fr 60px;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    cursor: pointer;
    transition: background 0.3s ease;
}

.track-row:hover { background: rgba(255, 255, 255, 0.02); }

.track-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(207, 92, 54, 0.08);
    width: 0%;
    pointer-events: none;
    transition: width 0.1s linear;
    z-index: 0;
}

.track-row>div:not(.track-progress) { position: relative; z-index: 1; }

.col-cover img {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    opacity: 0.6;
    transition: opacity 0.3s;
}

.track-row:hover .col-cover img,
.track-row.playing .col-cover img { opacity: 1; }

.col-title {
    font-family: var(--font-title);
    font-size: 1.15rem;
    color: var(--text-primary);
}

.col-artist { color: var(--text-muted); font-size: 1rem; }
.col-genre, .col-roles { color: var(--text-muted); font-size: 0.9rem; }
.col-time { color: var(--text-muted); font-size: 0.85rem; text-align: right; font-variant-numeric: tabular-nums; }

.list-play-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.2);
    width: 30px;
    height: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.track-row:hover .list-play-btn { color: #fff; transform: scale(1.1); }
.track-row.playing .list-play-btn { color: var(--accent-orange); }
.track-row.playing .col-title { color: #fff; font-weight: bold; }
.track-row.playing .col-artist { color: var(--accent-orange); }

.mobile-stack { display: contents; }

/* --- 12. CONTACT FORM SECTION --- */
.contact-form-section {
    position: relative;
    padding: 100px 5% 140px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-form-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.form-glass-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 820px;
    padding: 60px 50px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(18, 16, 14, 0.65) 100%);
    backdrop-filter: blur(35px) saturate(180%);
    -webkit-backdrop-filter: blur(35px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 
        0 30px 70px rgba(0, 0, 0, 0.8),
        inset 0 1px 1px rgba(255, 255, 255, 0.15),
        inset 0 -1px 2px rgba(0, 0, 0, 0.5);
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-title {
    font-family: var(--font-title);
    font-size: 2.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.form-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    font-weight: 300;
}

.spatial-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.input-group label {
    font-family: var(--font-text);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
}

.input-group input,
.input-group textarea,
.input-group select {
    width: 100%;
    padding: 16px 20px;
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font-text);
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.input-group textarea {
    resize: vertical;
    min-height: 120px;
}

.input-group input::placeholder,
.input-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {
    border-color: var(--accent-orange);
    background: rgba(15, 12, 10, 0.85);
    box-shadow: 
        0 0 20px rgba(207, 92, 54, 0.25),
        inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '↓';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-orange);
    pointer-events: none;
    font-size: 0.9rem;
}

.input-group select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    padding-right: 45px;
}

.input-group select option {
    background-color: #121212;
    color: #fff;
}

.spatial-submit-btn {
    position: relative;
    width: 100%;
    padding: 18px 30px;
    border-radius: 14px;
    border: none;
    background: transparent;
    cursor: pointer;
    overflow: hidden;
    margin-top: 10px;
    color: #ffffff;
    font-family: var(--font-text);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.spatial-submit-btn .btn-lens {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(207, 92, 54, 0.3) 0%, rgba(74, 59, 50, 0.4) 100%);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-top: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.3);
    transition: all 0.4s ease;
    z-index: 1;
}

.spatial-submit-btn .btn-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.spatial-submit-btn:hover {
    transform: translateY(-3px);
}

.spatial-submit-btn:hover .btn-lens {
    background: linear-gradient(135deg, rgba(207, 92, 54, 0.6) 0%, rgba(148, 93, 56, 0.7) 100%);
    box-shadow: 0 15px 35px rgba(207, 92, 54, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.5);
}

.spatial-submit-btn:hover svg {
    transform: translate(3px, -3px);
}

.spatial-submit-btn:active {
    transform: translateY(-1px);
}

.spatial-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-status {
    display: none;
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    text-align: center;
}

.form-status.success {
    display: block;
    background: rgba(37, 211, 102, 0.1);
    border: 1px solid rgba(37, 211, 102, 0.4);
    color: #4dfa8b;
}

.form-status.error {
    display: block;
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.4);
    color: #ff7070;
}

/* Team Mini Socials */
.bio-socials {
    display: flex !important;
    gap: 15px !important;
    margin-top: 25px !important;
    align-items: center !important;
}

.bio-socials .social-btn.mini-btn {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 50% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.bio-socials .social-btn.mini-btn svg {
    width: 18px !important;
    height: 18px !important;
    display: block !important;
    stroke: #ffffff !important;
    fill: none !important;
    transition: stroke 0.3s ease, transform 0.3s ease !important;
}

.bio-socials .social-btn.mini-btn:hover {
    background: var(--accent-orange) !important;
    border-color: var(--accent-orange) !important;
    transform: scale(1.1) !important;
}

.bio-socials .social-btn.mini-btn:hover svg {
    stroke: #ffffff !important;
}

/* --- 13. MOBILE RESPONSIVE UNIFICATO (Max Width 768px) --- */
@media (max-width: 768px) {
    main h1 {
        font-size: 2.2rem;
        padding: 0 10px;
        line-height: 1.2;
    }

    body section.narrative-section {
        padding: 60px 20px;
    }

    .story-block {
        display: flex;
        flex-direction: column;
        gap: 0;
        margin-bottom: 80px;
    }

    .content-box {
        order: 2;
        padding: 30px 20px;
        width: 90%;
        margin-top: -50px;
        margin-left: auto;
        margin-right: auto;
        text-align: left !important;
        border-left: 2px solid var(--accent-orange) !important;
        border-right: none !important;
    }

    .story-block.text-right .content-box h2::after { margin-left: 0; }
    .content-box h2 { font-size: 2.2rem; }

    body div.image-box {
        order: 1;
        width: 100%;
        height: 350px;
        margin: 0;
        display: block;
        position: relative;
        overflow: hidden;
        background: #111;
        mask-image: none;
        -webkit-mask-image: none;
    }

    .image-box picture,
    .image-box img {
        display: block;
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
        border: none;
    }

    body img.detail-img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transform: none !important;
        opacity: 1;
    }

    nav#navbar {
        padding: 25px 30px;
        background: transparent;
        backdrop-filter: none;
    }

    .menu-link { font-size: 2.5rem; }
    .menu-logo { width: 60px; }
    .menu-content { transform: translateY(-50px); gap: 20px; }

    .logo-wrapper.in-nav,
    .logo-wrapper.static-nav {
        top: 45px;
        left: 40px;
        transform: translate(-50%, -50%) scale(0.6);
    }

    .float-left { left: 20px; }
    .float-right { right: 20px; }

    footer {
        padding: 30px 22px;
    }

    .footer-address {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .footer-legal-note {
        font-size: 0.68rem;
        margin: 16px auto 18px;
    }

    .footer-links {
        gap: 8px 16px;
    }

    /* Coverflow & Player Mobile */
    .mp-carousel { height: 260px; }
    .carousel-item { width: 200px; height: 200px; margin-left: -100px; margin-top: -100px; }
    .mp-dynamic-title { font-size: 1.6rem; }
    .mp-ctrl-side.left { gap: 15px; padding-right: 20px; }
    .mp-ctrl-side.right { gap: 15px; padding-left: 20px; }
    .mp-text-info-dynamic { height: 120px; margin-bottom: 10px; }
    .coverflow-section { padding-bottom: 110px; }

    .tracklist-header { display: none; }
    .track-row {
        grid-template-columns: 40px 50px 1fr 50px;
        padding: 15px 10px;
        gap: 10px;
    }
    .col-genre, .col-roles { display: none; }
    .mobile-stack {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .col-title { font-size: 1.05rem; line-height: 1.2; }
    .col-artist { font-size: 0.85rem; margin-top: 4px; }

    /* Connect Section Mobile */
    .connect-section {
        padding: 80px 20px 140px;
    }

    .spatial-glass-card {
        padding: 45px 22px;
        border-radius: 22px;
    }

    .connect-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .social-grid {
        gap: 16px;
    }

    .spatial-btn {
        width: 58px;
        height: 58px;
        border-radius: 16px;
    }

    .spatial-btn .btn-glass {
        border-radius: 16px;
    }

    .spatial-glow {
        width: 100%;
        height: 250px;
    }

    .contact-form-section {
        padding: 60px 5% 120px;
    }
    .form-glass-card {
        padding: 40px 24px;
        border-radius: 20px;
    }
    .form-title {
        font-size: 2.1rem;
    }
    .form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ========================================================
   14. RESTYLE 2026 - HUB SERVIZI, LANDING, TEAM, MAIL
   ======================================================== */

/* --- 14.1 PAGE HEADER (hero compatta senza foto) --- */
.page-header {
    position: relative;
    z-index: 10;
    max-width: 1300px;
    margin: 0 auto;
    /* compatta: il contenuto della pagina deve iniziare dentro il primo schermo */
    padding: clamp(96px, 13vh, 150px) 5% 30px;
    text-align: center;
}

.page-header .eyebrow {
    display: block;
    font-family: var(--font-text);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-orange);
    margin-bottom: 18px;
}

.page-header h1 {
    font-size: clamp(2.1rem, 4vw, 2.7rem);
    line-height: 1.05;
    text-shadow: none;
}

.page-header .page-intro {
    max-width: 720px;
    margin: 16px auto 0;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-muted);
    font-weight: 300;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

/* --- 14.2 HOME: I TRE SERVIZI COME SOTTOTITOLO --- */
.hero-services {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 34px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.hero-services.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-services a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 26px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(10, 10, 10, 0.35);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    font-family: var(--font-text);
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.4s var(--ease-cinematic);
    -webkit-tap-highlight-color: transparent;
}

.hero-services a::after {
    content: '\2192';
    font-size: 0.95em;
    opacity: 0.45;
    transform: translateX(-4px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.hero-services a:active {
    border-color: var(--accent-orange);
    background: rgba(207, 92, 54, 0.18);
}

@media (hover: hover) and (pointer: fine) {
    .hero-services a:hover {
        border-color: var(--accent-orange);
        background: rgba(207, 92, 54, 0.15);
        transform: translateY(-3px);
        box-shadow: 0 12px 26px rgba(0, 0, 0, 0.5), 0 0 26px rgba(207, 92, 54, 0.18);
    }
    .hero-services a:hover::after {
        opacity: 1;
        transform: translateX(2px);
    }
}

/* --- 14.3 BLOCCO TESTO A PIENA LARGHEZZA (Home: CHI SIAMO) --- */
.story-block.full-width {
    margin-bottom: 0;
}

.story-block.full-width .content-box {
    grid-column: 1 / 13;
    grid-row: 1;
    max-width: 900px;
    margin: 0 auto;
}

/* --- 14.4 HUB SERVIZI: LE TRE CARD --- */
.services-hub {
    position: relative;
    z-index: 10;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 5% 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    align-items: stretch;
}

.service-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 46px 34px 38px;
    border-radius: 22px;
    text-decoration: none;
    scroll-margin-top: 140px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.05) 0%, rgba(18, 16, 14, 0.55) 100%);
    backdrop-filter: blur(25px) saturate(160%);
    -webkit-backdrop-filter: blur(25px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.4s ease,
                box-shadow 0.4s ease;
    -webkit-tap-highlight-color: transparent;
}

.service-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.service-icon {
    width: 54px;
    height: 54px;
    display: block;
    opacity: 0.9;
    transition: opacity 0.4s ease, transform 0.4s var(--ease-cinematic), filter 0.4s ease;
}

.service-card h2 {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    line-height: 1.15;
    color: var(--text-primary);
}

.service-card p {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-muted);
    font-weight: 300;
    flex-grow: 1;
}

.service-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    padding: 12px 24px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-family: var(--font-text);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-primary);
    transition: all 0.4s var(--ease-cinematic);
}

.service-cta span {
    transition: transform 0.4s var(--ease-cinematic);
}

.service-card:active .service-cta {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    color: #fff;
}

@media (hover: hover) and (pointer: fine) {
    .service-card:hover {
        border-color: rgba(207, 92, 54, 0.5);
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.75), 0 0 40px rgba(207, 92, 54, 0.12);
        transform: translateY(-6px);
    }
    .service-card:hover .service-icon {
        opacity: 1;
        transform: scale(1.06);
        filter: drop-shadow(0 0 12px rgba(207, 92, 54, 0.45));
    }
    .service-card:hover .service-cta {
        background: var(--accent-orange);
        border-color: var(--accent-orange);
        color: #fff;
    }
    .service-card:hover .service-cta span {
        transform: translateX(4px);
    }
}

/* --- 14.5 LANDING SERVIZIO --- */
.landing-body {
    position: relative;
    z-index: 10;
    max-width: 860px;
    margin: 0 auto;
    padding: 20px 5% 40px;
}

.landing-claim {
    font-family: var(--font-title);
    font-size: 1.35rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    line-height: 1.4;
    color: var(--accent-orange);
    padding-left: 24px;
    border-left: 2px solid var(--accent-orange);
    margin-bottom: 40px;
}

.landing-section {
    margin-bottom: 64px;
}

.landing-section h2 {
    font-family: var(--font-title);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-primary);
    margin-bottom: 28px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.landing-section p {
    font-size: 1.08rem;
    line-height: 1.9;
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 20px;
}

.landing-section p:last-child {
    margin-bottom: 0;
}

.landing-section a {
    color: var(--text-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    word-break: break-word;
    transition: color 0.3s ease;
}

.landing-section a:hover {
    color: var(--accent-orange);
}

.landing-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.landing-list.compact {
    gap: 12px;
}

.landing-list li {
    padding-left: 24px;
    position: relative;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-muted);
    font-weight: 300;
}

.landing-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.75em;
    width: 8px;
    height: 1px;
    background: var(--accent-orange);
}

.landing-list strong {
    display: block;
    font-family: var(--font-text);
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.landing-note {
    font-size: 0.95rem !important;
    line-height: 1.8;
    color: #7a6d64 !important;
    padding: 20px 24px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.landing-outro {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    line-height: 1.4;
    color: var(--text-primary);
    text-align: center;
    padding: 50px 0 10px;
}

.landing-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    padding: 20px 5% 0;
}

.landing-nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-family: var(--font-text);
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.4s var(--ease-cinematic);
    -webkit-tap-highlight-color: transparent;
}

.landing-nav a:active {
    color: #fff;
    border-color: var(--accent-orange);
}

@media (hover: hover) and (pointer: fine) {
    .landing-nav a:hover {
        color: #fff;
        border-color: var(--accent-orange);
        background: rgba(207, 92, 54, 0.12);
    }
}

/* --- 14.6 CONTATTO DIRETTO (porta al form) --- */
.direct-contact {
    position: relative;
    z-index: 10;
    max-width: 860px;
    margin: 0 auto;
    padding: 40px 5% 20px;
    text-align: center;
}

.direct-contact-label {
    display: block;
    font-family: var(--font-text);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-orange);
    margin-bottom: 18px;
}

.direct-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 40px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    font-family: var(--font-text);
    font-size: 0.82rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.4s var(--ease-cinematic);
    -webkit-tap-highlight-color: transparent;
}

.direct-contact-btn svg {
    flex-shrink: 0;
    stroke: var(--accent-orange);
    transition: transform 0.4s ease, stroke 0.4s ease;
}

.direct-contact-btn:active {
    border-color: var(--accent-orange);
    background: rgba(207, 92, 54, 0.18);
}

@media (hover: hover) and (pointer: fine) {
    .direct-contact-btn:hover {
        border-color: var(--accent-orange);
        background: rgba(207, 92, 54, 0.15);
        transform: translateY(-3px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 30px rgba(207, 92, 54, 0.2);
    }
    .direct-contact-btn:hover svg {
        transform: scale(1.1);
        stroke: #fff;
    }
}

.direct-contact-alt,
.form-mail {
    margin-top: 18px;
    font-size: 0.88rem;
    color: #7a6d64;
    font-weight: 300;
}

.form-mail {
    margin-top: 14px;
}

.direct-contact-alt a,
.form-mail a {
    color: var(--text-muted);
    text-decoration: underline;
    text-underline-offset: 3px;
    word-break: break-word;
    transition: color 0.3s ease;
}

.direct-contact-alt a:hover,
.form-mail a:hover {
    color: var(--accent-orange);
}

/* l'ancora dal pulsante non deve finire sotto il logo */
#contact-form-section {
    scroll-margin-top: 110px;
}

/* --- 14.7 TEAM (CONTATTI) --- */
.team-section {
    position: relative;
    z-index: 10;
    max-width: 940px;
    margin: 0 auto;
    padding: 0 5% 40px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.team-member {
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-member.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.team-photo-box {
    position: relative;
    display: block;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    width: 100%;
    aspect-ratio: 4 / 5;
    /* le due foto devono stare intere nel primo schermo, insieme a nome,
       titolo, ruolo, pulsante bio e social */
    max-height: min(36vh, 420px);
    overflow: hidden;
    border-radius: 16px;
    background: #111;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
}

.team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 22%;
    display: block;
    transition: transform 0.8s var(--ease-cinematic), filter 0.6s ease;
}

@media (hover: hover) and (pointer: fine) {
    .team-member:hover .team-photo {
        transform: scale(1.04);
    }
}

.team-info {
    padding-top: 20px;
}

.team-info h2 {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.team-title {
    font-family: var(--font-title);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.team-role {
    font-family: var(--font-text);
    font-size: 0.8rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.5;
    color: var(--accent-orange);
    /* riserva due righe: cosi' i ruoli piu' lunghi non disallineano le icone */
    min-height: 3em;
}

.team-info .bio-socials {
    margin-top: 20px !important;
}

/* --- 14.8 MOBILE --- */
@media (max-width: 900px) {
    .services-hub {
        grid-template-columns: 1fr;
        gap: 22px;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: clamp(90px, 12vh, 130px) 22px 26px;
    }

    .page-header .page-intro {
        font-size: 0.95rem;
    }

    .hero-content h1 {
        font-size: 1.95rem;
    }

    .hero-services {
        gap: 10px;
        margin-top: 26px;
        padding: 0 16px;
    }

    .hero-services a {
        padding: 11px 20px;
        font-size: 0.7rem;
        letter-spacing: 1.5px;
    }

    .story-block.full-width .content-box {
        width: 100%;
        margin-top: 0;
    }

    .service-card {
        padding: 34px 24px 30px;
        border-radius: 18px;
    }

    .service-icon {
        width: 46px;
        height: 46px;
    }

    .landing-body {
        padding: 10px 22px 30px;
    }

    .landing-claim {
        font-size: 1.1rem;
        padding-left: 18px;
        margin-bottom: 32px;
    }

    .landing-section {
        margin-bottom: 48px;
    }

    .landing-section p,
    .landing-list li {
        font-size: 1rem;
    }

    .landing-outro {
        font-size: 1.2rem;
        padding: 34px 0 0;
    }

    .direct-contact {
        padding: 30px 22px 10px;
    }

    .direct-contact-btn {
        font-size: 0.75rem;
        padding: 14px 30px;
    }

    .direct-contact-alt,
    .form-mail {
        font-size: 0.82rem;
    }

    .team-section {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        padding: 0 20px 30px;
    }

    .team-photo-box {
        border-radius: 12px;
        max-height: none;
    }

    .team-info {
        padding-top: 16px;
    }

    .team-info h2 {
        font-size: 1rem;
        line-height: 1.2;
        /* i nomi lunghi vanno su due righe: riservo lo spazio a entrambi,
           altrimenti tutto cio' che segue slitta e le due colonne si sfalsano */
        min-height: 2.4em;
    }

    .team-role {
        font-size: 0.68rem;
        letter-spacing: 1.2px;
    }

    .bio-socials {
        gap: 10px !important;
        margin-top: 14px !important;
    }

    .bio-socials .social-btn.mini-btn {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
    }
}

/* ========================================================
   15. LETTORE SPOTIFY E CONSENSO (portfolio)
   ======================================================== */

.mp-spotify-wrap,
.mp-consent-box {
    width: 100%;
    max-width: 500px;
    margin: 22px auto 0;
    padding: 0 20px;
}

/* L'iframe ufficiale resta visibile e integro: non va coperto ne' ritagliato. */
.mp-spotify-wrap iframe {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 12px;
}

/* [hidden] deve vincere sul display esplicito qui sotto, altrimenti
   il riquadro resta visibile anche dopo il consenso. */
.mp-consent-box[hidden],
.mp-spotify-wrap[hidden] {
    display: none !important;
}

.mp-consent-box {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.mp-consent-cover {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 8px;
    opacity: 0.85;
}

.mp-consent-text {
    flex-grow: 1;
    min-width: 0;
}

.mp-consent-text p {
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.mp-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mp-consent-btn {
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-text);
    font-size: 0.68rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.mp-consent-btn.primary {
    border-color: var(--accent-orange);
    color: var(--text-primary);
    background: rgba(207, 92, 54, 0.16);
}

.mp-consent-btn:hover {
    color: #fff;
    border-color: var(--accent-orange);
    background: rgba(207, 92, 54, 0.22);
}

/* il riquadro ora contiene l'informativa: serve piu' respiro e un link vero */
.mp-consent-box {
    align-items: flex-start;
}

.mp-consent-text p strong {
    color: var(--text-primary);
    font-weight: 500;
}

.mp-consent-note {
    margin-top: 10px;
    font-size: 0.72rem !important;
    color: #6f635b !important;
}

a.mp-consent-btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

@media (max-width: 768px) {
    .mp-spotify-wrap,
    .mp-consent-box {
        margin-top: 18px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .mp-consent-box {
        gap: 12px;
        padding: 12px;
    }

    .mp-consent-cover {
        width: 44px;
        height: 44px;
    }

    .mp-consent-text p {
        font-size: 0.75rem;
    }

    .mp-consent-btn {
        font-size: 0.63rem;
        padding: 7px 13px;
    }
}

/* ========================================================
   16. FEEDBACK AL TOCCO
   Su mobile non c'e' hover: la classe .is-pressed (main.js) da' lo stesso
   riscontro visivo del passaggio del mouse, con una compressione leggera.
   ======================================================== */

.is-pressed {
    /* il riscontro deve essere immediato; il ritorno resta morbido */
    transition-duration: 0.09s !important;
}

/* Home: i tre servizi nella hero */
.hero-services a.is-pressed {
    color: var(--accent-orange);
    border-color: var(--accent-orange);
    background: rgba(207, 92, 54, 0.2);
    transform: scale(0.97);
}

.hero-services a.is-pressed::after {
    opacity: 1;
    transform: translateX(2px);
}

/* Servizi: le tre card */
.service-card.is-pressed {
    border-color: rgba(207, 92, 54, 0.55);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.7), 0 0 32px rgba(207, 92, 54, 0.14);
    transform: scale(0.985);
}

.service-card.is-pressed .service-icon {
    opacity: 1;
    filter: drop-shadow(0 0 12px rgba(207, 92, 54, 0.5));
}

.service-card.is-pressed .service-cta {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    color: #fff;
}

.service-card.is-pressed .service-cta span {
    transform: translateX(3px);
}

/* Contatto diretto e navigazione fra le landing */
.direct-contact-btn.is-pressed,
.landing-nav a.is-pressed,
.mp-consent-btn.is-pressed {
    color: #fff;
    border-color: var(--accent-orange);
    background: rgba(207, 92, 54, 0.22);
    transform: scale(0.97);
}

.direct-contact-btn.is-pressed svg {
    stroke: #fff;
    transform: scale(1.08);
}

/* Link testuali */
.footer-links a.is-pressed,
.direct-contact-alt a.is-pressed,
.form-privacy a.is-pressed,
.landing-section a.is-pressed {
    color: var(--accent-orange);
}

/* Griglia social e mini-icone dei profili */
.spatial-btn.is-pressed {
    transform: translateY(-3px) scale(0.96);
}

.spatial-btn.is-pressed .btn-glow {
    opacity: 0.5;
}

.spatial-btn.is-pressed .btn-glass {
    border-color: rgba(255, 255, 255, 0.4);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.18) 0%, rgba(20, 20, 20, 0.4) 100%);
}

.bio-socials .social-btn.is-pressed {
    background: var(--accent-orange) !important;
    border-color: var(--accent-orange) !important;
    transform: scale(0.95) !important;
}

/* Menu a tutto schermo */
.menu-link.is-pressed {
    color: var(--accent-orange);
    transform: scale(0.97);
    text-shadow: 0 0 20px rgba(207, 92, 54, 0.45);
}

/* Portfolio: controlli del player, copertine, tracklist */
.mp-btn.is-pressed {
    color: var(--accent-orange);
    transform: scale(0.92);
}

.mp-play-btn.is-pressed {
    background: var(--accent-orange);
    color: #fff;
}

.list-play-btn.is-pressed {
    color: #fff;
    transform: scale(0.9);
}

.spotify-btn.is-pressed {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    color: #fff;
    transform: scale(0.97);
}

.spatial-submit-btn.is-pressed {
    transform: scale(0.99);
}

.spatial-submit-btn.is-pressed .btn-lens {
    background: linear-gradient(135deg, rgba(207, 92, 54, 0.62) 0%, rgba(148, 93, 56, 0.72) 100%);
    border-color: rgba(255, 255, 255, 0.5);
}

/* ========================================================
   17. BIO: pulsante nei contatti e pagine dedicate
   ======================================================== */

.team-bio-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 9px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-family: var(--font-text);
    font-size: 0.68rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.4s var(--ease-cinematic);
    -webkit-tap-highlight-color: transparent;
}

.team-bio-btn span:last-child {
    transition: transform 0.4s var(--ease-cinematic);
}

.team-bio-btn.is-pressed {
    border-color: var(--accent-orange);
    color: #fff;
    background: rgba(207, 92, 54, 0.18);
    transform: scale(0.97);
}

.team-photo-box.is-pressed {
    transform: scale(0.985);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.85), 0 0 30px rgba(207, 92, 54, 0.18);
}

@media (hover: hover) and (pointer: fine) {
    .team-bio-btn:hover {
        color: #fff;
        border-color: var(--accent-orange);
        background: rgba(207, 92, 54, 0.14);
    }
    .team-bio-btn:hover span:last-child {
        transform: translateX(3px);
    }
    .team-photo-box:hover {
        box-shadow: 0 30px 70px rgba(0, 0, 0, 0.85), 0 0 34px rgba(207, 92, 54, 0.14);
    }
}

/* Ritratto in cima alla pagina bio */
.bio-portrait {
    position: relative;
    z-index: 10;
    max-width: 400px;
    margin: 0 auto;
    padding: 0 20px 34px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.bio-portrait.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.bio-portrait img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 22%;
    display: block;
    border-radius: 16px;
    background: #111;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
}

.bio-sep {
    color: var(--accent-orange);
    margin: 0 4px;
}

.bio-socials-wrap {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    padding: 0 5% 10px;
}

.bio-socials-wrap .bio-socials {
    margin-top: 0 !important;
    justify-content: center;
}

@media (max-width: 768px) {
    .team-title {
        font-size: 0.82rem;
        line-height: 1.35;
        /* riserva due righe: i titoli piu' lunghi non disallineano le icone */
        min-height: 2.7em;
    }

    .team-bio-btn {
        margin-top: 12px;
        padding: 8px 15px;
        font-size: 0.62rem;
        letter-spacing: 1.4px;
    }

    .bio-portrait {
        max-width: 100%;
        padding: 0 22px 26px;
    }

    .bio-portrait img {
        max-height: 42vh;
        border-radius: 12px;
    }
}


/* ========================================================
   18. ACCESSIBILITA' - FOCUS DA TASTIERA E TESTO PER SCREEN READER
   ======================================================== */

/* Anello di focus visibile solo per chi naviga da tastiera.
   Il mouse/tap non lo attiva (:focus-visible), quindi l'estetica resta invariata. */
:focus-visible {
    outline: 2px solid var(--accent-orange) !important;
    outline-offset: 3px !important;
}

/* Titoli letti dagli screen reader ma non visibili a schermo. */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}


/* ========================================================
   19. MOVIMENTO RIDOTTO (prefers-reduced-motion)
   Chi ha attivato la riduzione del movimento nel sistema operativo
   vede lo stesso sito, ma senza animazioni: le transizioni arrivano
   subito allo stato finale, quindi nulla resta nascosto.
   ======================================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto !important;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-delay: 0ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0ms !important;
    }

    /* Lo zoom continuo della hero viene spento del tutto:
       lasciarlo saltare al fotogramma finale la mostrerebbe ingrandita. */
    #hero-image-container {
        animation: none !important;
        transform: none !important;
    }
}


/* ========================================================
   20. LINK DI REVOCA DEL CONSENSO + AREE DI TOCCO
   ======================================================== */

/* Il link compare solo quando c'e' un consenso da revocare (lo decide consent.js). */
.footer-links a[hidden],
.consent-revoke-link[hidden] {
    display: none !important;
}

/* Conferma che prende il posto del link dopo la revoca. */
.consent-revoked-msg {
    color: var(--text-muted);
    font-size: 0.78rem;
    padding: 5px 2px;
}

/* Link dentro ai paragrafi: il padding allarga solo il bersaglio del dito,
   il testo attorno non si sposta. */
.direct-contact-alt a,
.form-mail a,
.form-privacy a,
.footer-legal-note a {
    padding: 4px 0;
}


/* ========================================================
   21. MURO DEI NOMI (pagina bio: artisti con cui ha collaborato)
   ======================================================== */

.landing-section p.name-wall {
    font-size: 0.92rem;
    line-height: 2.2;
    letter-spacing: 0.3px;
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 0;
    /* i nomi vanno a capo come un flusso di testo, non come elenco */
    text-align: left;
}

/* un nome non si spezza mai su due righe */
.name-wall .name {
    white-space: nowrap;
}

.landing-section p.name-wall.featured {
    color: var(--text-primary);
    font-weight: 400;
    margin-bottom: 0;
}

.name-wall .name-sep {
    color: var(--accent-orange);
    opacity: 0.65;
    margin: 0 9px;
    font-weight: 400;
}

.name-wall-label {
    font-family: var(--font-title);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2.6px;
    color: var(--accent-orange);
    margin-top: 38px;
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .landing-section p.name-wall {
        font-size: 0.86rem;
        line-height: 2.1;
    }

    .name-wall .name-sep {
        margin: 0 7px;
    }
}
