/* ==========================================================================
   INDICE DEL FOGLIO DI STILE
   Nota: le sezioni sono mantenute nell’ordine originale per preservare la cascade.

   01. Variabili globali e reset
   02. Header e navigazione
   03. Hero principale: sfondo, overlay e contenuti
   04. Hero: CTA, highlights, indicatori e animazioni
   05. Hero: adattamenti responsive
   06. Titoli delle sezioni
   07. Sezione “Chi sono”
   08. Sezione Servizi e relative card
   09. Sezione Metodo
   10. Contatti e footer
   11. Animazioni allo scroll e responsive generale
   12. Sezioni premium aggiuntive (About, Servizi, Metodo, Contatti)
   13. Card attestati e qualifiche
   14. Accessibilità e movimento ridotto

   Le media query locali restano vicino alle regole a cui si riferiscono.
========================================================================== */

/* =========================================
   1. VARIABILI E RESET
========================================= */

:root {
    --bg: #0a0a0a;
    --bg-secondary: #111111;
    --card: #151515;
    --lime: #c6ff00;
    --white: #f5f5f5;
    --muted: #999999;
    --border: rgba(255, 255, 255, 0.12);

    --font-heading: "Barlow Condensed", sans-serif;
    --font-body: "Inter", sans-serif;

    --container: 1200px;
    --header-height: 82px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    background: var(--bg);
    color: var(--white);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
}

body,
button,
input,
select,
textarea {
    font-family: var(--font-body);
}

body::selection {
    background: var(--lime);
    color: var(--bg);
}

img {
    display: block;
    width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
select {
    cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--lime);
    outline-offset: 4px;
}

.container {
    width: min(var(--container), calc(100% - 64px));
    margin-inline: auto;
}

.section {
    padding: 120px 0;
}

.accent {
    color: var(--lime);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* =========================================
   2. HEADER E NAVBAR
========================================= */

.header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;

    height: var(--header-height);

    background: rgba(10, 10, 10, 0.88);
    border-bottom: 1px solid transparent;

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    transition:
        background 0.3s ease,
        border-color 0.3s ease;
}

.header.scrolled {
    background: rgba(10, 10, 10, 0.97);
    border-color: var(--border);
}

.navbar {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-mark {
    display: grid;
    place-items: center;

    width: 42px;
    height: 42px;

    background: var(--lime);
    color: var(--bg);

    font-family: var(--font-heading);
    font-size: 23px;
    font-weight: 800;
}

.logo-name {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.logo-name span {
    color: var(--lime);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 27px;
}

.nav-menu > a:not(.nav-cta) {
    color: #c8c8c8;
    font-size: 12px;
    font-weight: 500;

    transition: color 0.25s ease;
}

.nav-menu > a:not(.nav-cta):hover {
    color: var(--lime);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 11px 15px;

    background: var(--lime);
    color: var(--bg);

    font-size: 12px;
    font-weight: 700;

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.nav-cta:hover {
    background: #ddff76;
    transform: translateY(-2px);
}

.nav-cta span {
    font-size: 16px;
}

.language-picker select {
    appearance: none;

    min-width: 49px;
    padding: 9px 22px 9px 10px;

    background-color: var(--card);
    color: var(--white);

    border: 1px solid var(--border);
    border-radius: 0;

    font-size: 12px;
    font-weight: 700;

    background-image:
        linear-gradient(45deg, transparent 50%, var(--lime) 50%),
        linear-gradient(135deg, var(--lime) 50%, transparent 50%);

    background-position:
        calc(100% - 10px) 12px,
        calc(100% - 6px) 12px;

    background-size: 4px 4px;
    background-repeat: no-repeat;
}

.language-picker option {
    background: var(--bg);
    color: var(--white);
}

.menu-toggle {
    display: none;
}



/* =========================================
    HERO
========================================= */

.hero-premium {
    --hero-lime: var(--lime, #c6ff00);
    --hero-white: #ffffff;

    position: relative;
    isolation: isolate;

    display: flex;
    align-items: center;

    min-height: 780px;
    min-height: max(780px, 100svh);

    padding: 140px 7% 150px;

    overflow: hidden;

    background: #050505;
    color: var(--hero-white);
}


/* =========================================
   BACKGROUND IMAGE
========================================= */

.hero-background {
    position: absolute;
    inset: 0;

    z-index: -3;
    overflow: hidden;
}

.hero-background-image {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center center;

    transform: scale(1.04);

    animation: hero-image-reveal 1.6s ease-out both;
}


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

.hero-overlay {
    position: absolute;
    inset: 0;

    z-index: -2;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.93) 0%,
            rgba(0, 0, 0, 0.78) 30%,
            rgba(0, 0, 0, 0.35) 58%,
            rgba(0, 0, 0, 0.08) 100%
        ),
        linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.88) 0%,
            transparent 35%,
            rgba(0, 0, 0, 0.12) 100%
        );
}


/* =========================================
   SUBTLE TEXTURE
========================================= */

.hero-grain {
    position: absolute;
    inset: 0;

    z-index: -1;

    pointer-events: none;

    opacity: 0.12;

    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.025) 3px
        );
}


/* =========================================
   CONTENT LAYOUT
========================================= */

.hero-inner {
    position: relative;

    width: 100%;
    max-width: 1400px;

    margin: 0 auto;
}

.hero-content {
    width: min(100%, 680px);
}


/* =========================================
   EYEBROW
========================================= */

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 30px;

    color: rgba(255, 255, 255, 0.78);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 3px;
    line-height: 1.7;

    animation: hero-content-reveal 0.8s 0.1s both;
}

.hero-status-dot {
    flex: 0 0 auto;

    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: var(--hero-lime);

    box-shadow:
        0 0 12px rgba(198, 255, 0, 0.5);
}


/* =========================================
   MAIN TITLE
========================================= */

.hero-premium .hero-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    margin: 0;

    font-family: var(--font-heading, sans-serif);
    font-size: clamp(76px, 10vw, 142px);

    font-weight: 900;

    line-height: 0.82;
    letter-spacing: -0.065em;

    text-transform: uppercase;
}

.hero-title-line {
    display: block;

    animation: hero-content-reveal 0.9s 0.2s both;
}

.hero-title-name {
    color: var(--hero-lime);

    animation-delay: 0.32s;

    text-shadow:
        0 0 40px rgba(198, 255, 0, 0.06);
}

.hero-title-role {
    display: block;

    margin-top: 24px;

    color: var(--hero-white);

    font-family: var(--font-body, sans-serif);

    font-size: clamp(13px, 1.4vw, 18px);

    font-weight: 800;

    letter-spacing: 0.32em;
    line-height: 1.5;

    animation: hero-content-reveal 0.9s 0.44s both;
}


/* =========================================
   LIME DIVIDER
========================================= */

.hero-divider {
    display: flex;
    align-items: center;

    width: 100%;
    max-width: 380px;

    height: 2px;

    margin: 30px 0 24px;

    background: rgba(255, 255, 255, 0.15);

    overflow: hidden;

    animation: hero-content-reveal 0.9s 0.5s both;
}

.hero-divider span {
    display: block;

    width: 100px;
    height: 100%;

    background: var(--hero-lime);
}


/* =========================================
   DESCRIPTION
========================================= */

.hero-description {
    max-width: 470px;

    margin: 0;

    color: rgba(255, 255, 255, 0.76);

    font-family: var(--font-body, sans-serif);

    font-size: 15px;
    line-height: 1.9;

    animation: hero-content-reveal 0.9s 0.56s both;
}


/* =========================================
   CTA BUTTONS (Spaziatura aumentata per staccarli dal titolo)
========================================= */

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 14px;

    /* Aumentato da 32px a 46px per dare più respiro ed evitare che siano troppo vicini */
    margin-top: 46px;

    animation: hero-content-reveal 0.9s 0.68s both;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 24px;

    min-height: 54px;

    padding: 0 23px;

    border: 1px solid transparent;

    font-family: var(--font-body, sans-serif);

    font-size: 10px;
    font-weight: 900;

    letter-spacing: 1.2px;

    text-decoration: none;

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

.hero-button-primary {
    background: var(--hero-lime);
    color: #090909;
}

.hero-button-primary:hover {
    background: #ffffff;

    transform: translateY(-3px);
}

.hero-button-secondary {
    border-color: rgba(255, 255, 255, 0.4);

    background: rgba(0, 0, 0, 0.15);

    color: #ffffff;
}

.hero-button-secondary:hover {
    border-color: var(--hero-lime);

    color: var(--hero-lime);

    transform: translateY(-3px);
}

.hero-button-arrow {
    font-size: 19px;
    line-height: 1;

    transition: transform 0.3s ease;
}

.hero-button-primary:hover .hero-button-arrow {
    transform: translate(3px, -3px);
}


/* =========================================
   HIGHLIGHTS
========================================= */

.hero-highlights {
    display: flex;
    flex-wrap: wrap;

    gap: 28px;

    margin-top: 55px;
    padding-top: 24px;

    border-top: 1px solid rgba(255, 255, 255, 0.18);

    animation: hero-content-reveal 0.9s 0.8s both;
}

.hero-highlight {
    display: flex;
    flex-direction: column;

    gap: 8px;
}

.hero-highlight-number {
    color: var(--hero-lime);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 2px;
}

.hero-highlight-label {
    color: rgba(255, 255, 255, 0.8);

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 1.4px;
}


/* =========================================
   SCROLL INDICATOR
========================================= */

.hero-scroll {
    position: absolute;

    left: 7%;
    bottom: 32px;

    display: flex;
    align-items: center;

    gap: 13px;

    color: rgba(255, 255, 255, 0.65);

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 2px;

    text-decoration: none;

    animation: hero-content-reveal 1s 1s both;
}

.hero-scroll-line {
    position: relative;

    display: block;

    width: 42px;
    height: 1px;

    overflow: hidden;

    background: rgba(255, 255, 255, 0.35);
}

.hero-scroll-line::after {
    content: "";

    position: absolute;
    inset: 0;

    background: var(--hero-lime);

    transform: translateX(-100%);

    animation: hero-scroll-line 2s ease-in-out infinite;
}


/* =========================================
   DECORATIVE INDEX
========================================= */

.hero-index {
    position: absolute;

    right: 7%;
    bottom: 32px;

    color: rgba(255, 255, 255, 0.4);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 3px;
}


/* =========================================
   ANIMATIONS
========================================= */

@keyframes hero-content-reveal {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hero-image-reveal {
    from {
        opacity: 0;
        transform: scale(1.09);
    }

    to {
        opacity: 1;
        transform: scale(1.04);
    }
}

@keyframes hero-scroll-line {
    0% {
        transform: translateX(-100%);
    }

    50%,
    100% {
        transform: translateX(100%);
    }
}


/* =========================================
   RESPONSIVE TABLET
========================================= */

@media (max-width: 900px) {

    .hero-premium {
        padding-right: 5%;
        padding-left: 5%;
    }

    .hero-premium .hero-title {
        font-size: clamp(72px, 12vw, 110px);
    }

    .hero-overlay {
        background:
            linear-gradient(
                90deg,
                rgba(0, 0, 0, 0.9) 0%,
                rgba(0, 0, 0, 0.68) 55%,
                rgba(0, 0, 0, 0.2) 100%
            ),
            linear-gradient(
                0deg,
                rgba(0, 0, 0, 0.85) 0%,
                transparent 60%
            );
    }

    .hero-scroll {
        left: 5%;
    }

    .hero-index {
        right: 5%;
    }
}
@media (max-width: 900px) {

    /* Overlay alleggerito e centrato anche su tablet */
    .hero-overlay {
        background:
            linear-gradient(
                90deg,
                rgba(0, 0, 0, 0.75) 0%,
                rgba(0, 0, 0, 0.45) 50%,
                rgba(0, 0, 0, 0.75) 100%
            ),
            linear-gradient(
                0deg,
                rgba(0, 0, 0, 0.85) 0%,
                transparent 60%
            );
    }

}

/* =========================================
   RESPONSIVE SMARTPHONE
========================================= */
@media (max-width: 600px) {

    .hero-premium {
        align-items: center;

        min-height: 760px;
        min-height: max(760px, 100svh);

        padding: 125px 6% 115px;
    }

    /* Modificato da 65% a center per centrare l'immagine normalmente */
    .hero-background-image {
        object-position: center center;
    }

    /* Overlay uniforme e centrale (meno graduato ai lati) */
    .hero-overlay {
        background:
            linear-gradient(
                90deg,
                rgba(0, 0, 0, 0.65) 0%,
                rgba(0, 0, 0, 0.35) 50%,
                rgba(0, 0, 0, 0.65) 100%
            ),
            linear-gradient(
                0deg,
                rgba(0, 0, 0, 0.85) 0%,
                transparent 75%
            );
    }

    .hero-eyebrow {
        max-width: 300px;

        margin-bottom: 25px;

        font-size: 9px;
        letter-spacing: 2px;
    }

    .hero-premium .hero-title {
        font-size: clamp(65px, 15vw, 92px);

        line-height: 0.9;
        letter-spacing: -0.055em;
    }

    .hero-title-role {
        max-width: 100%;

        margin-top: 20px;

        font-size: 11px;

        letter-spacing: 0.2em;
    }

    .hero-divider {
        margin: 25px 0 20px;
    }

    .hero-description {
        max-width: 390px;

        font-size: 13px;
        line-height: 1.8;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;

        max-width: 340px;

        margin-top: 36px;
    }

    .hero-button {
        width: 100%;
        min-height: 52px;
    }

    .hero-highlights {
        gap: 18px;

        justify-content: space-between;

        margin-top: 38px;
        padding-top: 20px;
    }

    .hero-highlight-label {
        font-size: 8px;
        letter-spacing: 0.8px;
    }

    .hero-scroll {
        bottom: 25px;

        font-size: 8px;
        letter-spacing: 1.5px;
    }

    .hero-index {
        right: 6%;
        bottom: 25px;

        font-size: 8px;
    }
}


/* =========================================
   4. TITOLI DELLE SEZIONI
========================================= */

.section-heading {
    margin-bottom: 55px;
}

.section-tag {
    display: block;
    margin-bottom: 18px;

    color: var(--lime);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.section-heading h2,
.certification-content h2,
.contact-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(45px, 6vw, 76px);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.5px;
}

.section-heading > p {
    max-width: 500px;
    margin-top: 20px;

    color: var(--muted);
    font-size: 14px;
}


/* =========================================
   5. CHI SONO
========================================= */

.about-section {
    background: var(--bg-secondary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    align-items: center;
    gap: 90px;
}

.about-image {
    position: relative;
    height: 480px;
    overflow: hidden;
    background: var(--card);
}

.about-image img {
    height: 100%;
    object-fit: cover;
    filter: grayscale(35%);
}

.about-image-caption {
    position: absolute;
    bottom: 20px;
    left: 20px;

    color: white;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.about-number {
    color: var(--lime);
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
}

.about-content h3 {
    margin: 18px 0;

    font-family: var(--font-heading);
    font-size: 30px;
    line-height: 1.1;
}

.about-content p {
    margin-top: 16px;
    color: var(--muted);
    font-size: 14px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 18px;

    margin-top: 30px;
    padding-bottom: 8px;

    border-bottom: 1px solid var(--lime);

    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
}

.text-link span:last-child {
    color: var(--lime);
}


/* =========================================
   6. SERVIZI
========================================= */



:root {
    --service-bg: #10110f;
    --service-card-bg: #181a16;
    --service-panel-bg: #1e211b;
    --service-lime: #738c18;
    --service-text: #f4f5f0;
    --service-muted: #a1a59a;
    --service-border: rgba(40, 49, 7, 0.67);
    --service-radius: 20px;
    --service-transition: 0.35s ease;
}

/* CONTENITORE DELLE CARD */

.services-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(24px, 3vw, 40px);

    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: clamp(16px, 4vw, 40px);
}

/* CARD PRINCIPALE */

.service-card {
    position: relative;
    display: grid;

    /* Immagine a sinistra, contenuto a destra */
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);

    gap: 12px;
    align-items: stretch;

    min-width: 0;
    padding: 10px;

    background: var(--service-card-bg);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--service-radius);

    overflow: hidden;

    transition:
        border-color var(--service-transition),
        transform var(--service-transition),
        box-shadow var(--service-transition);
}

/* ALTERNANZA VISIVA DELLE CARD
   La seconda card inverte la disposizione su desktop. */

.service-card:nth-child(even) {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}

.service-card:nth-child(even) .service-image {
    order: 2;
}

.service-card:nth-child(even) .service-content {
    order: 1;
}

/* HOVER CARD */

@media (hover: hover) and (pointer: fine) {
    .service-card:hover {
        transform: translateY(-4px);
        border-color: var(--service-border);

        box-shadow:
            0 16px 40px rgba(0, 0, 0, 0.22),
            0 0 25px rgba(198, 255, 0, 0.035);
    }
}

/* =========================================
   IMMAGINE
   ========================================= */

.service-image {
    position: relative;
    min-width: 0;
    min-height: 310px;

    overflow: hidden;
    border-radius: 14px;

    background: #252820;
    isolation: isolate;
}

.service-image::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;

    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.05) 35%,
        rgba(0, 0, 0, 0.42) 100%
    );

    pointer-events: none;
}

.service-image img {
    display: block;

    width: 100%;
    height: 100%;
    min-height: inherit;

    object-fit: cover;
    object-position: center;

    transition:
        transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1),
        filter 0.4s ease;

    filter: saturate(0.82);
}

@media (hover: hover) and (pointer: fine) {
    .service-card:hover .service-image img {
        transform: scale(1.045);
        filter: saturate(1);
    }
}

/* NUMERO SERVIZIO */

.service-number {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 2;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 46px;
    height: 46px;
    padding: 0 12px;

    color: #10110f;
    background: var(--service-lime);

    border-radius: 12px;

    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: 0.04em;

    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.2);
}

/* =========================================
   CONTENUTO
   ========================================= */

.service-content {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;

    min-width: 0;
    padding: clamp(24px, 3vw, 42px);

    background: var(--service-panel-bg);
    border: 1px solid rgba(255, 255, 255, 0.045);
    border-radius: 14px;

    overflow-wrap: break-word;
}

/* PICCOLO INDICATORE LIME */

.service-category {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 20px;

    color: var(--service-lime);

    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    line-height: 1.5;
    text-transform: uppercase;
}

.service-category::before {
    content: "";
    display: block;

    width: 20px;
    height: 2px;

    flex: 0 0 auto;

    background: var(--service-lime);
}

/* TITOLO */

.service-content h3 {
    margin: 0 0 18px;

    color: var(--service-text);

    font-size: clamp(1.7rem, 2.5vw, 2.6rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.045em;

    text-wrap: balance;
}

/* DESCRIZIONE */

.service-content p {
    max-width: 390px;
    margin: 0 0 30px;

    color: var(--service-muted);

    font-size: clamp(0.92rem, 1.1vw, 1rem);
    font-weight: 400;
    line-height: 1.85;
}

/* =========================================
   LINK / CTA
   ========================================= */

.service-link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;

    min-height: 48px;
    margin-top: auto;
    padding: 12px 17px;

    color: var(--service-lime);
    background: rgba(198, 255, 0, 0.055);

    border: 1px solid var(--service-border);
    border-radius: 9px;

    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-decoration: none;

    transition:
        color var(--service-transition),
        background var(--service-transition),
        border-color var(--service-transition),
        transform var(--service-transition);
}

.service-link span:last-child {
    display: inline-block;
    font-size: 1.15rem;

    transition: transform var(--service-transition);
}

@media (hover: hover) and (pointer: fine) {
    .service-link:hover {
        color: #10110f;
        background: var(--service-lime);
        border-color: var(--service-lime);
    }

    .service-link:hover span:last-child {
        transform: translate(3px, -3px);
    }
}

.service-link:focus-visible {
    outline: 2px solid var(--service-lime);
    outline-offset: 4px;
}

/* =========================================
   TABLET — FINO A 900px
   ========================================= */

@media (max-width: 900px) {
    .services-grid {
        gap: 24px;
        padding-inline: 24px;
    }

    .service-card,
    .service-card:nth-child(even) {
        grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
        gap: 10px;
        padding: 8px;
    }

    .service-image {
        min-height: 290px;
    }

    .service-content {
        padding: clamp(20px, 3vw, 30px);
    }

    .service-category {
        margin-bottom: 16px;
        font-size: 0.65rem;
        letter-spacing: 0.11em;
    }

    .service-content h3 {
        font-size: clamp(1.55rem, 3vw, 2rem);
        margin-bottom: 14px;
    }

    .service-content p {
        margin-bottom: 22px;
        line-height: 1.7;
    }
}

/* =========================================
   MOBILE — FINO A 600px
   ========================================= */

@media (max-width: 600px) {
    .services-grid {
        gap: 22px;
        padding-inline: 16px;
    }

    .service-card,
    .service-card:nth-child(even) {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        padding: 8px;

        border-radius: 16px;
    }

    /* Su mobile immagine sempre sopra */
    .service-card .service-image,
    .service-card:nth-child(even) .service-image {
        order: 0;

        min-height: 0;
        height: clamp(210px, 60vw, 310px);

        border-radius: 11px;
    }

    .service-image img {
        min-height: 0;
    }

    .service-number {
        top: 13px;
        left: 13px;

        min-width: 40px;
        height: 40px;

        font-size: 0.85rem;
        border-radius: 10px;
    }

    .service-card .service-content,
    .service-card:nth-child(even) .service-content {
        order: 0;

        padding: 25px 19px 20px;
        margin-top: 8px;

        border-radius: 11px;
    }

    .service-category {
        margin-bottom: 15px;
        font-size: 0.68rem;
    }

    .service-content h3 {
        font-size: clamp(1.75rem, 7vw, 2.25rem);
        margin-bottom: 14px;
    }

    .service-content p {
        max-width: none;
        margin-bottom: 24px;

        font-size: 0.93rem;
        line-height: 1.75;
    }

    .service-link {
        width: 100%;
        min-height: 48px;
        padding-inline: 15px;
    }
}

/* =========================================
   MOBILE COMPATTO — FINO A 380px
   ========================================= */

@media (max-width: 380px) {
    .services-grid {
        padding-inline: 12px;
    }

    .service-card {
        padding: 6px;
    }

    .service-card .service-content,
    .service-card:nth-child(even) .service-content {
        padding: 22px 15px 17px;
    }

    .service-card .service-image,
    .service-card:nth-child(even) .service-image {
        height: 205px;
    }

    .service-content h3 {
        font-size: 1.65rem;
    }
}

/* =========================================
   ACCESSIBILITÀ — MOVIMENTO RIDOTTO
   ========================================= */

@media (prefers-reduced-motion: reduce) {
    .service-card,
    .service-image img,
    .service-link,
    .service-link span:last-child {
        transition: none !important;
    }

    .service-card:hover {
        transform: none;
    }

    .service-card:hover .service-image img {
        transform: none;
    }
}


/* =========================================
   7. METODO
========================================= */

.method-section {
    background: var(--bg-secondary);
}

.method-list {
    border-top: 1px solid var(--border);
}

.method-item {
    display: grid;
    grid-template-columns: 90px 1fr 30px;
    align-items: center;
    gap: 30px;

    padding: 32px 10px;

    border-bottom: 1px solid var(--border);

    transition: padding 0.3s ease;
}

.method-item:hover {
    padding-left: 20px;
    padding-right: 0;
}

.method-number {
    color: var(--lime);

    font-family: var(--font-heading);
    font-size: 35px;
    font-weight: 700;
}

.method-item h3 {
    font-family: var(--font-heading);
    font-size: 28px;
}

.method-item p {
    margin-top: 5px;
    color: var(--muted);
    font-size: 13px;
}

.method-arrow {
    color: var(--lime);
    font-size: 22px;
}



/* =========================================
   10. CONTATTI
========================================= */

.contact-section {
    background: var(--bg-secondary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    gap: 100px;
}

.contact-content > p {
    max-width: 450px;
    margin-top: 25px;

    color: var(--muted);
    font-size: 14px;
}

.instagram-link {
    display: flex;
    align-items: center;
    gap: 16px;

    max-width: 340px;
    margin-top: 40px;
    padding: 18px;

    border: 1px solid var(--border);

    transition: border-color 0.25s ease;
}

.instagram-link:hover {
    border-color: var(--lime);
}

.instagram-icon {
    color: var(--lime);
    font-size: 30px;
}

.instagram-link small,
.instagram-link strong {
    display: block;
}

.instagram-link small {
    color: var(--muted);
    font-size: 9px;
    letter-spacing: 1px;
}

.instagram-link strong {
    margin-top: 3px;
    font-size: 13px;
}

.instagram-arrow {
    margin-left: auto;
    color: var(--lime);
    font-size: 20px;
}

.contact-form {
    padding: 30px;
    background: var(--card);
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 9px;

    font-size: 11px;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px;

    background: #0c0c0c;
    color: var(--white);

    border: 1px solid #333333;
    border-radius: 0;

    font-size: 12px;

    transition: border-color 0.25s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--lime);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #777777;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select option {
    background: var(--bg);
    color: var(--white);
}

.form-button {
    width: 100%;
    border-radius: 0;
}

.form-feedback {
    margin-top: 15px;
    font-size: 12px;
    color: var(--lime);
}


/* =========================================
   11. FOOTER
========================================= */

.footer {
    padding: 35px 0 20px;
    background: var(--bg);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;

    padding-bottom: 30px;
    border-bottom: 1px solid var(--border);
}

.footer-top > p {
    color: var(--muted);
    font-size: 9px;
    letter-spacing: 1.5px;
}

.footer-instagram {
    color: var(--lime);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;

    padding-top: 20px;

    color: var(--muted);
    font-size: 10px;
}

.footer-bottom a {
    color: var(--white);
}


/* =========================================
   12. ANIMAZIONI ALLO SCROLL
========================================= */

.reveal {
    opacity: 0;
    transform: translateY(25px);

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

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


/* =========================================
   13. RESPONSIVE DESIGN
========================================= */

@media (max-width: 1050px) {

    .nav-menu {
        gap: 16px;
    }

    .nav-menu > a:not(.nav-cta) {
        font-size: 11px;
    }

    .hero-grid {
        gap: 35px;
    }

    .hero-title {
        font-size: clamp(68px, 8vw, 100px);
    }

    .about-grid {
        gap: 50px;
    }

    .contact-grid {
        gap: 50px;
    }

    .certification-box {
        gap: 35px;
        padding: 35px;
    }
}


@media (max-width: 800px) {

    :root {
        --header-height: 72px;
    }

    .container {
        width: calc(100% - 40px);
    }

    .section {
        padding: 85px 0;
    }

    /* Menu mobile */

    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 7px;

        width: 44px;
        height: 44px;
        padding: 10px;

        background: transparent;
        border: 1px solid var(--border);
    }

    .menu-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background: var(--lime);

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

    .menu-toggle[aria-expanded="true"] span:first-child {
        transform: translateY(4.5px) rotate(45deg);
    }

    .menu-toggle[aria-expanded="true"] span:last-child {
        transform: translateY(-4.5px) rotate(-45deg);
    }

    .nav-menu {
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;

        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;

        padding: 15px 20px 25px;

        background: rgba(10, 10, 10, 0.98);
        border-bottom: 1px solid var(--border);

        visibility: hidden;
        opacity: 0;
        transform: translateY(-8px);

        transition:
            opacity 0.25s ease,
            transform 0.25s ease,
            visibility 0.25s ease;
    }

    .nav-menu.open {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }

    .nav-menu > a:not(.nav-cta) {
        padding: 14px 0;
        border-bottom: 1px solid var(--border);
        font-size: 13px;
    }

    .nav-cta {
        justify-content: space-between;
        margin-top: 15px;
    }

    .language-picker {
        margin-top: 15px;
    }

    /* Hero */

    .hero {
        padding-top: calc(var(--header-height) + 55px);
        padding-bottom: 100px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .hero-title {
        font-size: clamp(72px, 13vw, 105px);
    }

    .hero-description {
        max-width: 520px;
    }

    .hero-bottom {
        margin-top: 40px;
    }

    .hero-visual {
        width: min(100%, 540px);
        margin: 0 auto;
        padding-right: 15px;
    }

    .hero-image-wrap {
        height: min(125vw, 600px);
    }

    .hero-badge {
        left: -10px;
        bottom: 50px;
    }

    .scroll-indicator {
        bottom: 22px;
        width: max-content;
    }

    /* Sezioni */

    .about-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .about-image {
        height: min(90vw, 480px);
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: 320px;
    }

    .certification-box {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 28px;
    }

    .certificate-placeholder {
        max-width: 480px;
        width: 100%;
        margin: 0 auto;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}


/* =========================================
   SEZIONE ABOUT — DANILO / VERSIONE CINEMATOGRAFICA
========================================= */

.about-cinematic {
    position: relative;
    overflow: hidden;
    background: #0a0a0a;
}

.cinematic-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 55px;
}

.cinematic-kicker {
    max-width: 360px;
    font-family: var(--font-heading);
    font-size: clamp(22px, 3vw, 36px);
    font-weight: 800;
    line-height: 1.05;
}

.cinematic-kicker span {
    display: block;
    color: var(--lime);
}

.cinematic-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: clamp(40px, 7vw, 100px);
}

.cinematic-visual {
    position: relative;
    height: clamp(480px, 60vw, 720px);
    overflow: hidden;
    background: #151515;
}

.cinematic-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    filter: grayscale(100%);
    transition:
        transform 1s cubic-bezier(.2,.7,.2,1),
        filter .8s ease;
}

.cinematic-visual:hover img {
    transform: scale(1.035);
    filter: grayscale(35%);
}

.cinematic-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,.05) 35%,
        rgba(0,0,0,.8) 100%
    );
    pointer-events: none;
}

.cinematic-index {
    position: absolute;
    top: 24px;
    left: 24px;
    color: var(--lime);
    font-size: 11px;
    letter-spacing: 2px;
}

.cinematic-image-caption {
    position: absolute;
    bottom: 28px;
    left: 25px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: 1px;
}

.cinematic-content {
    padding: 30px 0;
}

.cinematic-overline {
    display: block;
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
}

.cinematic-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(70px, 9vw, 125px);
    font-weight: 800;
    line-height: .8;
    letter-spacing: -2px;
}

.cinematic-divider {
    width: 65px;
    height: 3px;
    margin: 38px 0;
    background: var(--lime);
}

.cinematic-lead {
    max-width: 480px;
    color: var(--white);
    font-size: clamp(17px, 2vw, 22px);
    font-weight: 500;
    line-height: 1.55;
}

.cinematic-description {
    max-width: 470px;
    margin-top: 20px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.9;
}

.cinematic-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    max-width: 310px;
    margin-top: 35px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(198,255,0,.5);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    transition: color .3s ease;
}

.cinematic-link:hover {
    color: var(--lime);
}

.cinematic-link-arrow {
    color: var(--lime);
    font-size: 22px;
    transition: transform .3s ease;
}

.cinematic-link:hover .cinematic-link-arrow {
    transform: translate(4px, -4px);
}

.cinematic-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 55px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1.5px;
}

@media (max-width: 800px) {
    .cinematic-heading {
        flex-direction: column;
        gap: 22px;
    }

    .cinematic-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .cinematic-visual {
        height: min(120vw, 650px);
    }

    .cinematic-content h2 {
        font-size: clamp(75px, 15vw, 110px);
    }

    .cinematic-footer {
        flex-direction: column;
        gap: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cinematic-visual img,
    .cinematic-link,
    .cinematic-link-arrow {
        transition: none;
    }
}

@media (max-width: 480px) {

    .container {
        width: calc(100% - 32px);
    }

    .section {
        padding: 70px 0;
    }

    .logo-name {
        font-size: 12px;
    }

    .logo-mark {
        width: 38px;
        height: 38px;
    }

    .hero-title {
        font-size: clamp(62px, 14vw, 80px);
        letter-spacing: -1px;
    }

    .eyebrow {
        font-size: 9px;
        letter-spacing: 1.2px;
    }

    .hero-description {
        font-size: 13px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .hero-bottom {
        font-size: 8px;
        letter-spacing: 1px;
    }

    .hero-badge {
        padding: 13px;
        font-size: 9px;
    }

    .badge-symbol {
        font-size: 28px;
    }

    .section-heading h2,
    .certification-content h2,
    .contact-content h2 {
        font-size: 47px;
    }

    .about-content h3 {
        font-size: 27px;
    }

    .method-item {
        grid-template-columns: 45px 1fr 20px;
        gap: 12px;
        padding: 25px 0;
    }

    .method-number {
        font-size: 27px;
    }

    .method-item h3 {
        font-size: 23px;
    }

    .method-item p {
        font-size: 12px;
    }

    .certification-box {
        padding: 20px;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 270px 170px;
        gap: 10px;
    }

    .gallery-large {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .gallery-item figcaption {
        left: 12px;
        bottom: 12px;
        font-size: 9px;
    }

    .contact-form {
        padding: 20px;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
    }

}


/* =========================================
   14. ACCESSIBILITÀ E MOVIMENTO RIDOTTO
========================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

}

/* Sezione Prima del chi sono */


/* =========================================
   SEZIONE SERVIZI — STILE DARK PREMIUM
========================================= */

.services-premium {
    position: relative;
    overflow: hidden;
    padding-top: clamp(80px, 10vw, 140px);
    padding-bottom: clamp(80px, 10vw, 140px);
    background: #090909;
}

.services-premium .container {
    width: min(100% - 48px, 1400px);
    margin-inline: auto;
}

.services-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 40px;
    margin-bottom: 55px;
}

.services-eyebrow {
    display: block;
    margin-bottom: 25px;
    color: var(--lime, #c6ff00);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 3px;
}

.services-title {
    margin: 0;
    font-size: clamp(54px, 8vw, 100px);
    font-weight: 900;
    line-height: .88;
    letter-spacing: -.06em;
}

.services-title .accent {
    color: var(--lime, #c6ff00);
}

.services-intro {
    max-width: 370px;
    margin: 0 0 5px;
    color: #a7a7a7;
    font-size: 14px;
    line-height: 1.9;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.service-card {
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, .09);
    background: #101010;
    transition:
        border-color .35s ease,
        transform .35s ease,
        background-color .35s ease;
}

.service-card:hover {
    transform: translateY(-7px);
    border-color: rgba(198, 255, 0, .5);
    background: #141414;
}

.service-image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #1a1a1a;
}

.service-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, .18),
        transparent 40%,
        rgba(0, 0, 0, .35)
    );
    pointer-events: none;
}

.service-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(.8);
    transition:
        transform .7s cubic-bezier(.2, .7, .2, 1),
        filter .5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.06);
    filter: grayscale(35%) brightness(.95);
}

.service-number {
    position: absolute;
    z-index: 1;
    top: 18px;
    left: 18px;
    color: var(--lime, #c6ff00);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.service-content {
    padding: 27px 25px 25px;
}

.service-category {
    color: #858585;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 2px;
}

.service-content h3 {
    margin: 14px 0 15px;
    color: #fff;
    font-size: clamp(22px, 2.2vw, 29px);
    font-weight: 900;
    letter-spacing: -.5px;
}

.service-content p {
    min-height: 90px;
    margin: 0;
    color: #a5a5a5;
    font-size: 13px;
    line-height: 1.85;
}

.service-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 24px;
    padding-top: 17px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-decoration: none;
    transition: color .25s ease;
}

.service-link span:last-child {
    color: var(--lime, #c6ff00);
    font-size: 20px;
    transition: transform .25s ease;
}

.service-link:hover {
    color: var(--lime, #c6ff00);
}

.service-link:hover span:last-child {
    transform: translate(3px, -3px);
}

.services-bottom {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 42px;
}

.services-bottom-line {
    width: 42px;
    height: 2px;
    flex: 0 0 auto;
    background: var(--lime, #c6ff00);
}

.services-bottom p {
    margin: 0;
    color: #888;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 2px;
}

@media (max-width: 950px) {
    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-content p {
        min-height: auto;
    }
}

@media (max-width: 620px) {
    .services-premium .container {
        width: min(100% - 32px, 1400px);
    }

    .services-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 22px;
        margin-bottom: 35px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-image {
        aspect-ratio: 5 / 3;
    }

    .service-content {
        padding: 24px 20px;
    }

    .service-content h3 {
        font-size: 27px;
    }

    .services-bottom {
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .service-card,
    .service-image img,
    .service-link,
    .service-link span:last-child {
        transition: none;
    }
}


/* =========================================
   SEZIONE METODO — DANILO
========================================= */

.method-premium {
    padding: clamp(80px, 10vw, 140px) 0;
    background: #050505;
}

.method-premium .container {
    width: min(100% - 48px, 1400px);
    margin-inline: auto;
}

.method-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 40px;
    margin: 30px 0 55px;
}

.method-heading p {
    max-width: 370px;
    color: #a5a5a5;
    font-size: 14px;
    line-height: 1.9;
}

.method-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid #292929;
    border-bottom: 1px solid #292929;
}

.method-card {
    padding: 35px 28px 40px;
    border-right: 1px solid #292929;
    transition: background-color .3s ease;
}

.method-card:first-child {
    border-left: 1px solid #292929;
}

.method-card:hover {
    background: #101010;
}

.method-number {
    display: inline-block;
    margin-bottom: 38px;
    color: var(--lime, #c6ff00);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.method-card h3 {
    margin: 0 0 15px;
    color: #fff;
    font-size: clamp(18px, 2vw, 25px);
    font-weight: 900;
}

.method-card p {
    margin: 0;
    color: #999;
    font-size: 13px;
    line-height: 1.9;
}

@media (max-width: 700px) {
    .method-premium .container {
        width: min(100% - 32px, 1400px);
    }

    .method-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .method-grid {
        grid-template-columns: 1fr;
    }

    .method-card,
    .method-card:first-child {
        padding: 28px 20px;
        border-right: 1px solid #292929;
        border-bottom: 1px solid #292929;
        border-left: 1px solid #292929;
    }

    .method-number {
        margin-bottom: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .method-card {
        transition: none;
    }
}



/* =========================================
   SEZIONE ABOUT — DANILO PREMIUM
========================================= */

.about-premium {
    padding: clamp(80px, 10vw, 145px) 0;
    overflow: hidden;
    background: #0b0b0b;
}

.about-premium .container {
    width: min(100% - 48px, 1300px);
    margin-inline: auto;
}

.about-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: clamp(40px, 8vw, 110px);
}

.about-photo {
    position: relative;
    min-width: 0;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #171717;
}

.about-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    filter: grayscale(100%) brightness(.88);
    transition: transform .8s ease, filter .5s ease;
}

.about-photo:hover img {
    transform: scale(1.035);
    filter: grayscale(45%) brightness(.98);
}

.about-photo-label {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,.9));
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.about-photo-label span:first-child {
    color: var(--lime, #c6ff00);
}

.about-title {
    margin: 25px 0;
    color: #fff;
    font-size: clamp(43px, 5.5vw, 76px);
    font-weight: 900;
    line-height: .98;
    letter-spacing: -.055em;
}

.about-title .accent {
    color: var(--lime, #c6ff00);
}

.about-subtitle {
    margin: 35px 0 18px;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.about-copy > p {
    max-width: 530px;
    margin: 0 0 17px;
    color: #aaa;
    font-size: 13px;
    line-height: 1.95;
}

.about-cta {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-top: 20px;
    padding: 16px 0;
    border-bottom: 1px solid var(--lime, #c6ff00);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-decoration: none;
    transition: color .3s ease;
}

.about-cta span:last-child {
    color: var(--lime, #c6ff00);
    font-size: 20px;
    transition: transform .3s ease;
}

.about-cta:hover {
    color: var(--lime, #c6ff00);
}

.about-cta:hover span:last-child {
    transform: translate(3px, -3px);
}

@media (max-width: 760px) {
    .about-premium .container {
        width: min(100% - 32px, 1300px);
    }

    .about-layout {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .about-photo {
        width: 100%;
        max-height: 650px;
        aspect-ratio: 4 / 4.5;
    }

    .about-title {
        font-size: clamp(43px, 10vw, 68px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .about-photo img,
    .about-cta,
    .about-cta span:last-child {
        transition: none;
    }
}



/* =========================================
   SEZIONI CONTATTI E FOOTER — STILE DARK PREMIUM
========================================= */

.contact-premium,
.footer-premium {
    background: #080808;
    color: #f5f5f5;
}

.contact-premium {
    padding: clamp(4rem, 9vw, 8rem) 6%;
}

.contact-container {
    width: min(1100px, 100%);
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 6vw, 6rem);
    align-items: start;
}

.contact-intro h2 {
    max-width: 650px;
    font-size: clamp(2rem, 5vw, 4.5rem);
    line-height: 1.05;
    margin: 1rem 0;
}

.contact-intro > p:not(.section-tag) {
    color: #b8b8b8;
    line-height: 1.8;
}

.contact-instagram,
.footer-instagram {
    display: inline-block;
    color: #c6ff00;
    text-decoration: none;
    font-weight: 700;
    margin-top: 1.5rem;
}

.contact-instagram[hidden],
.footer-instagram[hidden] {
    display: none;
}

.contact-form {
    display: grid;
    gap: 1.25rem;
}

.form-group {
    display: grid;
    gap: 0.55rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.95rem 1rem;
    border: 1px solid #333;
    border-radius: 4px;
    background: #111;
    color: #f5f5f5;
    font: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: 2px solid #c6ff00;
    outline-offset: 2px;
    border-color: #c6ff00;
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
}

.contact-submit {
    padding: 1rem 1.25rem;
    border: 1px solid #c6ff00;
    background: #c6ff00;
    color: #080808;
    font-weight: 800;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.contact-submit:hover {
    background: transparent;
    color: #c6ff00;
}

.contact-form-status {
    min-height: 1.5em;
    color: #c6ff00;
    line-height: 1.6;
    font-size: 0.9rem;
}

.footer-premium {
    border-top: 1px solid #252525;
    padding: 2.5rem 6%;
}

.footer-inner {
    width: min(1200px, 100%);
    margin-inline: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.footer-brand {
    color: #f5f5f5;
    font-size: 1.5rem;
    font-weight: 900;
    text-decoration: none;
}

.footer-brand span {
    color: #c6ff00;
}

.footer-phrase,
.footer-copyright {
    color: #aaa;
    font-size: 0.8rem;
    line-height: 1.7;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-nav a,
.footer-back {
    color: #f5f5f5;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-nav a:hover,
.footer-back:hover {
    color: #c6ff00;
}

.footer-copyright {
    width: 100%;
    margin: 0;
}

@media (max-width: 760px) {
    .contact-container {
        grid-template-columns: 1fr;
    }

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

    .footer-copyright {
        order: 5;
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact-submit,
    .footer-nav a,
    .footer-back {
        transition: none;
    }
}

/* Non nascondere link social */


[hidden] {
  display: none !important;
}

#contact-form-status {
  margin-top: 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

#contact-form-status:empty {
  display: none;
}

/* =====================================================
   FORMAZIONE — QUALIFICA PROFESSIONALE
   Testo a sinistra · Attestato a destra
   ===================================================== */

/* Contenitore principale */
.credential-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) minmax(260px, 0.85fr) 32px;
    align-items: center;
    gap: clamp(18px, 3vw, 36px);

    position: relative;
    overflow: hidden;

    padding: clamp(24px, 4vw, 44px);

    border: 1px solid rgba(198, 255, 0, 0.18);
    border-radius: 20px;

    background:
        radial-gradient(
            circle at 0% 0%,
            rgba(198, 255, 0, 0.07),
            transparent 42%
        ),
        var(--credential-panel);

    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

/* Evidenziazione al passaggio del mouse */
.credential-card:hover {
    border-color: rgba(198, 255, 0, 0.4);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}


/* =====================================================
   ICONA DECORATIVA
   ===================================================== */

.credential-icon {
    align-self: start;
    padding-top: 4px;
}

.credential-icon span {
    display: grid;
    place-items: center;

    width: 42px;
    height: 42px;

    border: 1px solid rgba(198, 255, 0, 0.35);
    border-radius: 12px;

    color: var(--credential-accent, #c6ff00);
    font-size: 24px;
}


/* =====================================================
   TESTI — COLONNA SINISTRA
   ===================================================== */

.credential-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    min-width: 0;
    gap: 16px;

    padding: 0;
    background: none;
}

.credential-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    line-height: 1.5;
}

.credential-label::before {
    content: "";

    width: 22px;
    height: 2px;

    flex-shrink: 0;

    background: var(--credential-accent, #c6ff00);
}

.credential-info h3 {
    max-width: 18ch;
    margin: 0;

    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    line-height: 1.15;
    letter-spacing: -0.035em;

    text-wrap: balance;
}

.credential-info p {
    max-width: 48ch;
    margin: 0;

    font-size: 0.96rem;
    line-height: 1.8;

    opacity: 0.82;
}


/* =====================================================
   STATO DELLA QUALIFICA
   ===================================================== */

.credential-status {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    margin-top: 4px;
    padding: 9px 12px;

    border: 1px solid rgba(198, 255, 0, 0.2);
    border-radius: 6px;

    background: rgba(198, 255, 0, 0.055);

    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.5;
}

.credential-status::before {
    content: "";

    width: 7px;
    height: 7px;

    flex-shrink: 0;
    border-radius: 50%;

    background: var(--credential-accent, #c6ff00);
    box-shadow: 0 0 10px rgba(198, 255, 0, 0.35);
}


/* =====================================================
   ATTESTATO — COLONNA DESTRA
   ===================================================== */

.credential-certificate {
    min-width: 0;
    width: 100%;

    align-self: center;

    position: relative;
    overflow: hidden;

    padding: 10px;

    border: 1px solid rgba(198, 255, 0, 0.2);
    border-radius: 12px;

    background: rgba(255, 255, 255, 0.035);

    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.2);

    transition:
        transform 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

.credential-certificate a {
    display: block;
    line-height: 0;

    border-radius: 6px;
    overflow: hidden;
}

.credential-certificate img {
    display: block;

    width: 100%;
    height: auto;
    max-height: 340px;

    object-fit: contain;
    object-position: center;

    border-radius: 6px;

    transition: transform 0.4s ease;
}

.credential-card:hover .credential-certificate {
    transform: translateY(-3px);

    border-color: rgba(198, 255, 0, 0.45);

    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.25);
}

.credential-certificate a:hover img {
    transform: scale(1.025);
}


/* =====================================================
   NUMERO DECORATIVO
   ===================================================== */

.credential-number {
    align-self: start;
    justify-self: end;

    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;

    opacity: 0.45;
}


/* =====================================================
   TABLET
   ===================================================== */

@media (max-width: 1000px) {

    .credential-card {
        grid-template-columns: 40px minmax(0, 1fr) minmax(220px, 0.8fr) 24px;
        gap: 20px;
        padding: 28px;
    }

    .credential-info h3 {
        font-size: clamp(1.4rem, 2.6vw, 1.9rem);
    }

    .credential-certificate {
        padding: 8px;
    }

}


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

@media (max-width: 680px) {

    .credential-card {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 18px 14px;

        padding: 24px 18px;
        border-radius: 16px;
    }

    .credential-icon {
        grid-column: 1;
        grid-row: 1;
    }

    .credential-icon span {
        width: 36px;
        height: 36px;
        font-size: 21px;
    }

    .credential-info {
        grid-column: 2;
        grid-row: 1;
        gap: 14px;
    }

    .credential-info h3 {
        max-width: none;
        font-size: clamp(1.45rem, 6vw, 1.9rem);
    }

    .credential-info p {
        max-width: none;
        font-size: 0.92rem;
        line-height: 1.75;
    }

    .credential-label {
        font-size: 0.65rem;
        letter-spacing: 0.12em;
    }

    .credential-status {
        font-size: 0.62rem;
        letter-spacing: 0.045em;
    }

    .credential-certificate {
        grid-column: 2;
        grid-row: 2;

        width: 100%;
        max-width: 420px;
        justify-self: start;

        margin-top: 4px;
    }

    .credential-certificate img {
        max-height: none;
    }

    .credential-number {
        grid-column: 1;
        grid-row: 2;

        align-self: start;
        justify-self: start;

        font-size: 0.7rem;
    }

}


/* =====================================================
   ACCESSIBILITÀ — RIDUZIONE DEL MOVIMENTO
   ===================================================== */

@media (prefers-reduced-motion: reduce) {

    .credential-card,
    .credential-certificate,
    .credential-certificate img {
        transition: none;
    }

    .credential-card:hover .credential-certificate {
        transform: none;
    }

    .credential-certificate a:hover img {
        transform: none;
    }

}


/* =========================================
   GALLERIA DEVELOPEX — MODERN EDITORIAL
========================================= */

.gallery-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(
            ellipse at 90% 15%,
            rgba(198, 255, 0, 0.045),
            transparent 35%
        ),
        var(--bg);
}

/* Intestazione */

.gallery-section .section-heading {
    position: relative;
    margin-bottom: 48px;
}

.gallery-section .section-tag {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gallery-section .section-tag::before {
    content: "";
    width: 28px;
    height: 2px;
    background: var(--lime);
}

.gallery-section .section-heading h2 {
    max-width: 850px;
    font-size: clamp(48px, 7vw, 88px);
    line-height: 0.94;
    letter-spacing: -0.045em;
}

.gallery-section .section-heading h2 .accent {
    color: var(--lime);
}

/* Griglia asimmetrica */

.gallery-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
    grid-template-rows: repeat(2, minmax(240px, 1fr));
    gap: 18px;
    align-items: stretch;
}

/* Singola fotografia */

.gallery-item {
    position: relative;
    isolation: isolate;
    min-width: 0;
    min-height: 0;
    margin: 0;
    overflow: hidden;
    background: #151515;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Fotografia principale */

.gallery-item.gallery-large {
    grid-column: 1;
    grid-row: 1 / 3;
    min-height: 560px;
}

/* Immagini secondarie */

.gallery-item:not(.gallery-large) {
    min-height: 270px;
}

/* Immagini */

.gallery-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: saturate(0.78) brightness(0.82);
    transform: scale(1.001);
    transition:
        transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
        filter 0.5s ease;
}

/* Contrasto per le didascalie */

.gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.08) 0%,
            transparent 38%,
            rgba(0, 0, 0, 0.78) 100%
        );
    transition: opacity 0.4s ease;
}

/* Didascalie */

.gallery-item figcaption {
    position: absolute;
    z-index: 2;
    left: 24px;
    right: 24px;
    bottom: 22px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-family: var(--font-heading);
    font-size: clamp(17px, 2vw, 25px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.gallery-item figcaption::before {
    content: "";
    flex: 0 0 22px;
    width: 22px;
    height: 2px;
    background: var(--lime);
    transition: width 0.35s ease, flex-basis 0.35s ease;
}

/* Dettaglio grafico */

.gallery-item.gallery-large::before {
    content: "01";
    position: absolute;
    top: 22px;
    left: 24px;
    z-index: 2;
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.15em;
}

/* Hover desktop */

@media (hover: hover) and (pointer: fine) {
    .gallery-item:hover img {
        transform: scale(1.055);
        filter: saturate(1) brightness(0.95);
    }

    .gallery-item:hover figcaption::before {
        flex-basis: 38px;
        width: 38px;
    }

    
}

/* Tablet */

@media (max-width: 800px) {
    .gallery-section .section-heading {
        margin-bottom: 32px;
    }

    .gallery-grid {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
        grid-template-rows: repeat(2, minmax(200px, 1fr));
        gap: 12px;
    }

    .gallery-item.gallery-large {
        min-height: 430px;
    }

    .gallery-item:not(.gallery-large) {
        min-height: 200px;
    }

    .gallery-item figcaption {
        left: 16px;
        right: 12px;
        bottom: 16px;
        gap: 8px;
        font-size: 17px;
        letter-spacing: 0.08em;
    }

    .gallery-item figcaption::before {
        flex-basis: 16px;
        width: 16px;
    }

    .gallery-item.gallery-large::before {
        top: 16px;
        left: 16px;
    }
}

/* Smartphone */

@media (max-width: 480px) {
    .gallery-section .section-heading h2 {
        font-size: clamp(43px, 12vw, 60px);
        line-height: 0.98;
    }

    .gallery-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-rows: 300px 185px;
        gap: 10px;
    }

    .gallery-item.gallery-large {
        grid-column: 1 / -1;
        grid-row: 1;
        min-height: 0;
    }

    .gallery-item:not(.gallery-large) {
        grid-column: auto;
        grid-row: 2;
        min-height: 0;
    }

    .gallery-item img {
        object-position: center;
    }

    .gallery-item figcaption {
        left: 12px;
        right: 8px;
        bottom: 12px;
        gap: 7px;
        font-size: 13px;
        letter-spacing: 0.04em;
    }

    .gallery-item figcaption::before {
        flex-basis: 12px;
        width: 12px;
    }

    .gallery-item.gallery-large::before {
        top: 12px;
        left: 12px;
    }
}

/* Smartphone molto piccoli */

@media (max-width: 360px) {
    .gallery-grid {
        grid-template-rows: 260px 165px;
        gap: 8px;
    }

    .gallery-item figcaption {
        font-size: 11px;
        letter-spacing: 0.02em;
    }
}

/* Accessibilità: rispetta la preferenza di movimento ridotto */

@media (prefers-reduced-motion: reduce) {
    .gallery-item img,
    .gallery-item,
    .gallery-item figcaption::before {
        transition: none;
    }

    .gallery-item:hover img {
        transform: none;
    }
}


/* Link Instagram */
.instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.25s ease, transform 0.25s ease;
}

.instagram-icon {
  width: 23px;
  height: 23px;
  flex-shrink: 0;
  color: var(--lime);
  transition: transform 0.25s ease;
}

.instagram-link:hover {
  color: var(--lime);
}

.instagram-link:hover .instagram-icon {
  transform: scale(1.12);
}

/* Variante compatta per il footer */
.instagram-link-footer {
  font-size: 14px;
  gap: 8px;
}

.instagram-link-footer .instagram-icon {
  width: 19px;
  height: 19px;
}

/* HEADER */
.navbar {
    display: flex;
    align-items: center;
}

/* SELETTORE LINGUA */
.language-picker {
    display: flex;
    align-items: center;
    margin-left: auto;
    margin-right: 15px;
    position: relative;
    z-index: 1001;
}

.language-picker select {
    appearance: none;
    -webkit-appearance: none;

    background: #111;
    color: #fff;

    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;

    padding: 9px 28px 9px 10px;

    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;

    cursor: pointer;
    outline: none;

    /* Freccia del selettore */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");

    background-repeat: no-repeat;
    background-position: right 8px center;
}

.language-picker select:hover,
.language-picker select:focus-visible {
    border-color: #c5f82a;
}

.language-picker select option {
    background: #111;
    color: #fff;
}

/* PULSANTE HAMBURGER */
.menu-toggle {
    flex-shrink: 0;
}

/* MOBILE */
@media (max-width: 768px) {

    .language-picker {
        margin-left: auto;
        margin-right: 12px;
    }

    .language-picker select {
        padding: 8px 25px 8px 9px;
        font-size: 12px;
    }

}
