/* -------------------------------------------------------------------------------- */
/* ! Impostazioni di base per tutto il brodotto  */
/* -------------------------------------------------------------------------------- */
/* Variabili personali*/

:root {
    /* Colors */
    --color-primary: #0D0D0D;
    --color-accent: #c41f6a;
    --color-light: #F2F2F2;
    --color-dark: #262626;
    --color-gray: #595959;
    --color-gray-light: #BFBFBF;

    /* Typography */
    --font-sans: "Raleway", sans-serif;
    --font-serif: "Bodoni Moda", serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;

    /* Other UI Properties */
    --border-radius: 4px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* -------------------------------------------------------------------------------- */
/* ! RESET */
/* -------------------------------------------------------------------------------- */
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}

li {
    list-style: none;
}

/* Utility */
.res {
    width: 100%;
    max-width: 400px;
}

/* back to top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    width: 40px;
    height: 40px;
    background: rgba(89, 89, 89, 0.5);
    border-radius: 32px;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.back-to-top:hover {
    background-color: var(--color-accent);
    color: var(--color-light);
}

.back-to-top img {
    width: 20px;
}

/* -------------------------------------------------------------------------------- */
/* ! Base e Tipografia */
/* -------------------------------------------------------------------------------- */
body {
    font-family: var(--font-sans);
    /* Blocca lo scroll inizialmente */
}

body.stop {
    overflow: hidden;
}

body.splash-hidden {
    overflow: auto;
    /* Riabilita lo scroll dopo la transizione */
}

h2,
h3,
h5,
h6 {
    font-family: var(--font-serif);
    color: var(--color-primary);
}

h1 {
    font-family: var(--font-serif);
    color: var(--color-accent);
    font-size: 2em;
    margin-bottom: 30px;
}

.welcome_h2 h2 {
    font-size: 2em;
    margin-bottom: -15px;
}


p,
ul {
    font-size: 1.2em;
    line-height: 1.2em;
    margin-bottom: var(--spacing-sm);
    font-weight: 200;
}

.leading {
    font-size: 1.5em;
    line-height: 1.2em;
    margin-bottom: var(--spacing-sm);
    font-weight: 200;
}

/* -------------------------------------------------------------------------------- */
/* ! SPLASH PAGE - STILE .EFFEPI */
/* -------------------------------------------------------------------------------- */
.ingresso_page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    /* PERSONALIZZA SFONDO: sostituisci con la tua immagine */
    background: url(../img/splash/splash_main.jpg) no-repeat center 35%;
    background-size: cover;
    /* Per usare un'immagine: background: url('path/to/your/image.jpg') center/cover; */
    z-index: 1000000000000000;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    padding: 4rem 2rem;
}

.ingresso_page.hidden {
    transform: translateX(-100%);
}

/* PERSONALIZZA LOGO: sostituisci con la tua immagine */
.splash-logo-container {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards;
    position: relative;
    z-index: 10000000;
}

.splash-logo-placeholder {
    width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    /* SOSTITUISCI CON: */
    /* background: url('path/to/your/logo.png') center/contain no-repeat; */
    /* rimuovi il testo e il border quando aggiungi l'immagine */
}

.splash-logo-sub {
    font-family: var(--font-sans);
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: 300;
    letter-spacing: 0.3em;
    color: white;
    margin-top: 0.5rem;
}

/* BOX CENTRALE QUADRATO CON BLEND MODE MULTIPLY */
.splash-main-box {
    width: min(65vw, 1200px);
    height: min(30vw, 1200px);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 0;
    animation: fadeInScale 1s ease 0.8s forwards;
    isolation: isolate;
}


.splash-main-box .background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: -1;
    opacity: 0.8;
}

/* PULSANTE IN ALTO A SINISTRA DEL BOX */
.splash-button {
    background: var(--color-gray-light);
    color: white;
    padding: 0;
    font-size: 3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-sans);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    border: none;
    position: relative;
    z-index: 1;
    isolation: isolate;
}

.splash-button:hover {
    background: var(--color-accent);
}

/* TESTO DI BENVENUTO IN BASSO A SINISTRA DEL BOX */
.splash-welcome-container {
    align-self: flex-start;
    position: relative;
    z-index: 1;
    margin-left: 5%;
    isolation: isolate;
}

.splash-welcome {
    font-family: var(--font-sans);
    font-size: clamp(1.5rem, 4vw, 4rem);
    font-weight: 500;
    text-transform: uppercase;
    color: var(--color-accent);
}

.splash-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 3.5rem);
    font-weight: 200;
    color: var(--color-light);
    line-height: 1;
}

/* SPAZIO VUOTO PER BILANCIARE IL LAYOUT */
.splash-spacer {
    flex: 1;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

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

/* RESPONSIVE */
@media (max-width: 768px) {
    .splash-main-box {
        width: 70vw;
        height: 70vw;
    }
}


/* -------------------------------------------------------------------------------- */
/* ! Gestione Griglia mobile-first */
/* -------------------------------------------------------------------------------- */
.header {
    position: relative;
    top: 0;
    display: flex;
    justify-content: center;
}

.grid-default {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 8px;
}

.site-nav {
    position: fixed;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
    width: 90%;
    height: 65px;
    background: rgba(89, 89, 89, 0.5);
    border-radius: 32px;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    margin-top: 50px;
    z-index: 999;
}

.site-nav__menu {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-md);
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    visibility: hidden;
    opacity: 0;
    transform: scale(0.5);
    transform-origin: right top;
    transition: 0.4s cubic-bezier(.17, .67, .83, .67);
}

.site-nav__menu--open {
    background-color: var(--color-gray-light);
    max-height: 90vh;
    visibility: visible;
    opacity: 1;
    transform: scale(1);
    border-radius: 30px;
}

.site-nav__menu li a {
    color: var(--color-light);
    font-size: 1.5em;
    transition: 0.2s linear;
}

.site-nav__menu li a:hover {
    color: var(--color-accent);
    border-bottom: 2px solid var(--color-accent);
}

.site-nav__hamburger {
    grid-column: 7/13;
    justify-self: end;
    z-index: 1;
}

.site-nav__hamburger img {
    width: 35px;
    cursor: pointer;
}

.site-nav__cta {
    grid-column: 7/13;
    justify-self: end;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: var(--color-light);
    border-radius: 32px;
    width: 100px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.site-nav__cta a {
    display: flex;
    align-items: center;
    color: var(--color-primary);
}

.site-nav__cta a img {
    margin-left: 5px;
}

.site-nav__cta:hover {
    background-color: var(--color-accent);
    color: var(--color-light);
}


/* Benvenuto */
.welcome {
    margin-top: 100px;
    margin-bottom: 50px;
}

.grid-12 {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 8px;
}

.welcome_h2 {
    grid-column: span 10 / span 10;
    grid-column-start: 2;
}

.welcome_h1 {
    grid-column: span 10 / span 10;
    grid-column-start: 2;
    grid-row-start: 2;
}

.welcome-text {
    grid-column: span 10 / span 10;
    grid-column-start: 2;
    grid-row-start: 3;
}

.welcome_cta {
    grid-column: span 5 / span 5;
    grid-column-start: 7;
    grid-row-start: 4;
}

h2.statement {
    color: white;
    position: absolute;
    z-index: 3;
    text-align: center;
    text-transform: uppercase;
    font-weight: 600;
    font-size: clamp(16px, 8vh, 350px);
    line-height: 1;
    margin-bottom: 2%;
}

.welcome__img {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: url(../img/ritratto_federico.jpg) no-repeat center top;
    background-size: cover;
    height: 100vh;
}

.welcome__img::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(13, 13, 13, 0.2);
    z-index: 2;
}

.welcome__img img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    object-position: center;
}

.welcome_cta {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--color-primary);
    border-radius: 32px;
    width: 150px;
    height: 35px;
}

.welcome_cta a {
    display: flex;
    align-items: center;
    color: var(--color-light);
}

.welcome_cta:hover {
    background-color: var(--color-accent);
    color: var(--color-light);
}

.welcome_cta a img {
    margin-left: 7px;
}

/* -------------------------------------------------------------------------------- */
/* ! Immagine federico */
/* -------------------------------------------------------------------------------- */

.immagine_big-center {
    background: url(../img/federico_at_work.webp) no-repeat center center;
    height: 100vh;
    background-size: cover;

}

/* -------------------------------------------------------------------------------- */
/* ! Lavori */
/* -------------------------------------------------------------------------------- */
.lavori {
    margin-left: auto;
    margin-right: auto;
    margin-top: 100px;
}

.lavori_h2 {
    grid-column: span 10 / span 10;
    grid-column-start: 2;
    margin-bottom: -5px;
}

.lavori_h2 h2 {
    color: var(--color-accent);
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 2em;
    text-align: center;
}

.lavori_h3 {
    grid-column: span 10 / span 10;
    grid-column-start: 2;
    grid-row-start: 2;
    margin-bottom: 50px;
}

.lavori_h3 h3 {
    color: var(--color-primary);
    font-family: var(--font-sans);
    font-weight: 200;
    font-size: 1.5em;
    text-align: center;
}

.box_filtri_lavori {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    width: 95%;
    margin-left: auto;
    margin-right: auto;
}


.lavori_cover img {
    width: 100%;
}

.welcome_cta {
    margin-bottom: 15px;
}

.art_direction {
    object-fit: cover;
}

.packaging_design {
    object-fit: cover;
}

.fashion_design {
    object-fit: cover;
}

.graphic_design {
    object-fit: cover;
}

.lavori_cta {
    grid-column: span 6 / span 6;
    grid-column-start: 4;
    grid-row-start: 13;
}

.lavori_cta {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--color-gray-light);
    border-radius: 32px;
    width: 190px;
    height: 40px;

}

.lavori_cta a {
    display: flex;
    align-items: center;
    color: var(--color-primary);
}

.lavori_cta:hover {
    background-color: var(--color-accent);
    color: var(--color-light);
}

.lavori_cta a img {
    margin-left: 15px;
}

.cta_lavori_main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    margin-top: 20px;
}

/* anteprima lavori */
.anteprima__lavori {
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 95%;
    margin-left: auto;
    margin-right: auto;
}



.antemprima__immagine {
    grid-column: span 10 / span 10;
    grid-column-start: 2;
}

.antemprima__immagine img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.antemprima__immagine {
    position: relative;
    overflow: hidden;
}

.overlay__anteprima {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(196, 31, 106, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.antemprima__immagine a {
    color: var(--color-light);
    font-size: 2em;
    text-decoration: none;
    font-weight: 300;
}

.antemprima__immagine:hover .overlay__anteprima {
    opacity: 1;
}


h4 {
    color: var(--color-primary);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.8em;
}

.didascalia {
    color: var(--color-primary);
    font-family: var(--font-sans);
    font-weight: 200;
    font-size: 0.5em;
}

hr {
    margin-top: 15px;
}

.anteprima__titolo {
    margin-top: 10px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    column-gap: 8px;

}

/* -------------------------------------------------------------------------------- */
/* ! software */
/* -------------------------------------------------------------------------------- */

.software {
    margin-left: auto;
    margin-right: auto;
    margin-top: 100px;
}

.software__testo {
    grid-column: span 10 / span 10;
    grid-column-start: 2;
    margin-top: 30px;
}

.software__lavori {
    grid-column: span 10 / span 10;
    grid-column-start: 2;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
}

.software__lavori img {
    width: 50px;
    height: 50px;
}

.software__leading {
    text-align: center;
}

/* -------------------------------------------------------------------------------- */
/* ! Footer */
/* -------------------------------------------------------------------------------- */

#footer {
    margin-top: 100px;
    background-color: var(--color-dark);
    color: var(--color-light);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    flex-direction: column;
    row-gap: 30px;
}

.footer__logo {
    margin-top: 30px;
}

.cta__footer__general {
    display: flex;
    flex-direction: row;
    column-gap: 30px;
}

.cta__footer {
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: var(--color-light);
    border-radius: 32px;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cta__footer a,
.portfolio_cta a {
    display: flex;
    align-items: center;
    color: var(--color-primary);
    font-weight: 300;
    font-size: 0.8em;
    justify-content: space-evenly;
    text-transform: uppercase;
}

.cta__footer a img,
.portfolio_cta a img {
    margin-left: 5px;
}

.cta__footer:hover {
    background-color: var(--color-accent);
    color: var(--color-light);
}

.portfolio_cta {
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: var(--color-light);
    border-radius: 40px;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer__menu {
    text-align: center;
    display: flex;
    flex-direction: row;
    justify-content: center;
    column-gap: 30px;
}

.footer__menu li a {
    color: var(--color-light);
    font-size: 1em;
    transition: 0.2s linear;
}

.footer__menu li a:hover {
    color: var(--color-accent);
    border-bottom: 2px solid var(--color-accent);
}

hr.footer__line {
    width: 90%;
    margin-top: -25px;
    margin-bottom: -10px;
}

.bottom__legal {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.politiche {
    display: flex;
    flex-direction: row;
    column-gap: 30px;
    margin-bottom: 10px;
}

.politiche a {
    font-size: 0.8em;
    color: var(--color-light);
    transition: 0.2s linear;
}

.politiche a:hover {
    color: var(--color-accent);
    border-bottom: 2px solid var(--color-accent);
}

.diritti {
    font-size: 0.7em;
}





/* -------------------------------------------------------------------------------- */
/* ! Portfolio */
/* -------------------------------------------------------------------------------- */
.scrollabile {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.site-nav__scrollabile {
    justify-content: space-between;
    position: absolute;
    width: 100%;
    background-color: transparent;
    height: 70px;
    border-radius: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 0;
    z-index: 1000;
    margin-top: 0;
    border-bottom: 1px solid var(--color-dark);
    margin-top: 15px;
}

nav.site-nav.site-nav__scrollabile.grid-default {
    border: none;
    border-bottom: 1px solid var(--color-dark);
    padding-left: 20px;
    padding-right: 20px;
}

/* hero */
.testi__hero__portfolio {
    z-index: 10;
    text-align: center;
    line-height: 1.2;
}

.titolo_portfolio {
    font-size: clamp(16px, 13vw, 394px);
    color: var(--color-light);
    letter-spacing: 3px;
    text-shadow: var(--color-primary) 2px 2px 6px;
}

.sottotitolo_portfolio {
    font-size: clamp(16px, 5vw, 150px);
    color: var(--color-light);
    letter-spacing: 15px;
    text-shadow: var(--color-primary) 2px 2px 6px;
    font-family: var(--font-sans);
    text-transform: uppercase;
    font-weight: 200;
    margin-top: 75px;
}

.portfolio__img {
    display: flex;
    align-items: center;
    justify-content: center;
    background: url(../img/immagini_cover-portfolio_page/hero_portfolio.jpg) no-repeat center center;
    background-size: cover;
    height: 100vh;
    margin-bottom: 50px;
}

.portfolio__img:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(13, 13, 13, 0.3);
    z-index: 2;
}

/* gestione filtri */
.filtri {
    width: 95%;
    margin-right: auto;
    margin-left: auto;
    margin-top: 100px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-bottom: 50px;
}

#mybtncontainer {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    column-gap: 30px;
    justify-content: center;
    align-items: center;
    row-gap: 5px;
}

.grid-portfolio {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 8px;
    width: 95%;
    margin-left: auto;
    margin-right: auto;
}

.filterDiv {
    width: 100%;
    display: none;
    /* Hidden by default */
}

/* The "show" class is added to the filtered elements */
.show {
    display: block;
}

/* Style the buttons */
.btn {
    border: 1px solid var(--color-gray-light);
    color: var(--color-dark);
    text-align: center;
    outline: none;
    padding: 8px 16px;
    background-color: var(--color-gray-light);
    cursor: pointer;
    border-radius: 32px;
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 0.8em;
}

/* Add a light grey background on mouse-over */
.btn:hover {
    background-color: var(--color-light);
}

/* Add a dark background to the active button */
.btn.active {
    background-color: var(--color-gray);
    color: var(--color-light);
}


/* -------------------------------------------------------------------------------- */
/* ! About page */
/* -------------------------------------------------------------------------------- */
.about__federico {
    background: url(../img/about_page/main_about.jpg) no-repeat center 10%;
    width: 100%;
    height: 100vh;
    background-size: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

.box_about {
    background-color: var(--color-dark);
    width: 95%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 500px;
    padding-bottom: 50px;
}

.profile_pic_about {
    position: relative;
    top: -50px;
    left: var(--spacing-sm);
}

.profile_pic_about img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--color-accent);
    object-position: top;
}

.titolo_about {
    font-size: 2em;
    color: var(--color-light);
    font-family: var(--font-sans);
    font-weight: 300;
    text-align: left;
    margin-left: var(--spacing-sm);
    margin-top: -30px;
}

.testi__main {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-left: var(--spacing-sm);

}

.testi__main__left {
    display: flex;
    flex-direction: column;
    row-gap: 15px;
}

.testi__main__about {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.testi__main__about h2 {
    font-size: 1em;
    color: var(--color-light);
    font-family: var(--font-sans);
    font-weight: 300;
    margin-left: var(--spacing-sm);
}

.cta__about {
    margin-right: var(--spacing-sm);
    margin-bottom: 0;
    border: 1px solid var(--color-gray-light);
    width: 120px;
}

.leading_about {
    color: var(--color-light);
    font-family: var(--font-sans);
    font-weight: 300;
    margin-top: 30px;
    margin-left: var(--spacing-sm);
    margin-right: var(--spacing-sm);
}

.footer__about {
    margin-top: 0px !important;
}

/* -------------------------------------------------------------------------------- */
/* ! Portfolio interno */
/* -------------------------------------------------------------------------------- */
.portfolio_hero {
    object-fit: cover;
}

.portfolio_hero img {
    object-fit: cover;
    object-position: right;
    width: 100%;
    height: 100vh;
}

.portfolio_hero_center img {
    object-fit: cover;
    object-position: center top;
    width: 100%;
    height: 100vh;
}

.portfolio_hero {
    object-fit: cover;
}

.portfolio_hero::before,
.portfolio_hero_center::before {
    content: "";
    background: linear-gradient(rgba(13, 13, 13, 0.8), rgba(13, 13, 13, 0));
    width: 100%;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
}

.clear_border {
    border-bottom: 1px solid var(--color-gray-light) !important;
}

.lavoro_open__h1 {
    font-size: 3em;
}

.testi_lavoro__open {
    width: 95%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 50px;
    margin-top: 50px;
}

/* video prada */
.video-container {
    position: relative;
    width: 95%;
    background: #000;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin-top: 50px;
    margin-left: auto;
    margin-right: auto;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
}

#video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 20px 15px 10px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.video-container:hover .controls,
.controls.visible {
    transform: translateY(0);
}

.progress-container {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    margin-bottom: 10px;
    cursor: pointer;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: var(--color-accent);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s ease;
    position: relative;
}

.progress-handle {
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: #ff0000;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.progress-container:hover .progress-handle {
    opacity: 1;
}

.control-buttons {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.left-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.right-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.video-control-btn {
    background: none !important;
    border: none !important;
    color: white !important;
    font-size: 18px !important;
    cursor: pointer !important;
    padding: 8px !important;
    border-radius: 4px !important;
    transition: background-color 0.3s ease !important;
    outline: none !important;
}

.video-control-btn:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
}

.video-play-btn {
    font-size: 24px !important;
}

.time-display {
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 5px;
}

.volume-slider {
    width: 60px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.volume-bar {
    height: 100%;
    background: white;
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s ease;
}

.video-center-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8) !important;
    border: none !important;
    color: white !important;
    font-size: 48px !important;
    width: 80px !important;
    height: 80px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    opacity: 0;
    outline: none !important;
}

.video-center-play-btn.visible {
    opacity: 1;
}

.video-center-play-btn:hover {
    background: rgba(0, 0, 0, 0.9) !important;
    transform: translate(-50%, -50%) scale(1.1) !important;
}

.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 20px;
}

/* -------------------------------------------------------------------------------- */
/* ! Contact page */
/* -------------------------------------------------------------------------------- */
.contact__main {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.box_black_contact {
    background-color: var(--color-dark);
    width: 100%;
    height: 40vh;
    position: absolute;
    bottom: 0;
    left: 0;
}

.contact__form__main {
    width: 80%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 2;
    background-color: var(--color-light);
    border: 8px solid var(--color-dark);
    border-radius: 15px;
}

.form_inside {
    width: 80%;
}

#contact-form {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.form-group {
    width: 100%;
}

label {
    display: block;
    margin-bottom: 3px;
    font-weight: 500;
    color: var(--color-dark);
    letter-spacing: 1px;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--color-gray-light);
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
    font-size: 0.8em;
    font-family: var(--font-sans);
    font-weight: 200;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

textarea {
    resize: none;
    min-height: 100px;
    font-size: 0.9em;
    font-family: var(--font-sans);
    font-weight: 200;
}

.privacy-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 10px 0;
    padding: 10px;
    background-color: white;
    border-radius: 5px;
    border-left: 4px solid var(--color-accent);
}

.privacy-check input[type="checkbox"] {
    margin-top: 3px;
    transform: scale(1.2);
}

.privacy-check label {
    margin: 0;
    font-weight: normal;
    line-height: 1;
    font-size: 0.7em;
}

.privacy-check a {
    color: var(--color-accent);
    text-decoration: none;
}

.privacy-check a:hover {
    text-decoration: underline;
}

.error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    padding: 8px 12px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    display: none;
}

.error-message.show {
    display: block;
}

.field-error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
}

.invalid {
    border-color: #dc3545 !important;
}

.btn_form {
    background-color: var(--color-gray-light);
    color: white;
    padding: 8px 12px;
    border: none;
    border-radius: 30px;
    font-size: 0.8em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 300 !important;
    font-family: var(--font-sans);
}

button:hover:not(:disabled) {
    background-color: var(--color-accent);
    transform: translateY(-1px);
}

button:disabled {
    background-color: var(--color-gray);
    cursor: not-allowed;
    transform: none;
}

#form-status {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    font-weight: 300;
    font-size: 0.8em;
    margin: auto;
    margin-top: 10px;
    margin-bottom: 20px;
}

.success {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

.social_contatti {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    font-size: 2em;
    margin-bottom: 0;
}

.social_contatti a {
    color: var(--color-primary);
    text-decoration: none;
}

.social_contatti a:hover {
    color: var(--color-accent);
}

.contact_p_small {
    font-size: 1em;
    line-height: 1;
}

.contact_p_big {
    font-weight: 400;
}

.contatti_h2 {
    font-family: var(--font-sans) !important;
    color: var(--color-accent);
    font-weight: 400;
    margin-bottom: 50px;
    text-align: center;
}
.box_img_contatti{
    display: none;
}
.form_left{
    margin-top: 30px;
    margin-bottom: 30px;
}
















/* -------------------------------------------------------------------------------- */
/* ! Media queries */
/* -------------------------------------------------------------------------------- */
/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {

    /* home */
    h2.statement {
        font-size: 50px;
    }

    /* portfolio */


}

/* Small devices (portrait tablets and large phones, 768px and down) */
@media only screen and (max-width: 768px) {

    /* home */
    .welcome__img {
        align-items: center;
    }

    /* portfolio */
    h4 {
        font-size: 1.2em;
    }

    .didascalia {
        font-size: 1em;
    }
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {

    /* home */
    h2.statement {
        font-size: 100px;
    }

    h4 {
        font-size: 1.4em;
    }

    .didascalia {
        font-size: 1em;
    }

    /* portfolio */
    .grid-portfolio {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {

    /* home */
    h2.statement {
        font-size: 120px;
    }

    h4 {
        font-size: 1.7em;
    }

    .didascalia {
        font-size: 1em;
    }

    .box_filtri_lavori {
        grid-template-columns: repeat(4, 1fr);
    }

    .software__lavori img {
        width: 90px;
        height: 90px;
    }

    /* portfolio */
    .btn {
        font-size: 1.2em;
    }

    .grid-portfolio {
        grid-template-columns: repeat(3, 1fr);
    }

    /* contatti */
    .contatti_h2 {
        font-size: 2em;
    }

    .contact_p_small {
        font-size: 1.2em;
    }

    .privacy-check {
        width: 50%;
        margin-right: auto;
    }
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {

    /* home */
    h2.statement {
        font-size: 150px;
    }

    /* portfolio */
    .btn {
        font-size: 1.2em;
    }

    /* contatti */
    .box_img_contatti{
        display: block;
        background:url(../img/fede_contact.jpg) no-repeat center center;
        background-size: cover;
        border-top-right-radius: 7px;
        border-bottom-right-radius: 7px;
    }
    .form_inside {
        width: 100%;
        /* margin-right: auto; */
        /* margin-left: 30px; */
        display: grid;
        grid-template-columns: 2fr 1.3fr;
        gap: 100px;
    }
    .form_left{
        margin-left: 30px;
    }
}