/* RESET E FONT */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --dark-bg: #1a1a1a;
    --text-color: #ffffff;
    --accent-color: gold; /* Per il Dragone e dettagli */
    --link-color: #f0f0f0;
    --cta-highlight: #e7c300; /* Giallo per CTA evidenziata */
    --max-content-width: 1400px;
}

#top{
    position: relative;
    display: block;
    top: 0;
    height: 100vh;
}
html {
    scroll-behavior: smooth;
}
p {
    font-weight: 300;
}
strong{
    font-weight: 800;
}
body {
    background-color: var(--dark-bg);
    color: var(--text-color);
    font-family: 'Be Vietnam Pro', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizelegibility;
}

h1, h2, h3{
    font-family: 'Sofia Sans Extra Condensed', sans-serif;
    text-transform: uppercase;
    font-weight: 700;
}

h1 { font-size: 2.5rem; }
h2 { 
    font-size: clamp(1rem, 14vw, 13rem);
    text-shadow: 1px 1px 1px #000;
    background: -webkit-linear-gradient( -90deg,    #f7f6b6 5%,    #b47f31 53%,    #f4dc7e 91%  );
    -webkit-background-clip: text;
    -webkit-text-stroke: 4px transparent;
    color: transparent;
}
h3 { 
    
    font-size: clamp(4vw, 8vw, 5rem);
    font-weight: 300;
        line-height: 1;
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s;
}

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

/* STRUTTURA GENERALE E FLEXBOX */
.container {
    max-width: var(--max-content-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.content-section {
    padding: 4rem 1rem;
    background-color: rgba(0,0,0,0.65);
    backdrop-filter: blur(10px);
}

.content-section#combattimenti{
    margin-top: 100vh;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #b480313f;
    display: inline-block;
    width: 100%;
}

.content-row {
    display: flex;
    flex-direction: column; /* Mobile First: Colonne */
    gap: 2rem;
    max-width: var(--max-content-width);
    margin: 0 auto;
    margin-bottom: 4rem;
    align-items: center;
}

.row-image-container {
    width: 100%;
   /* background: linear-gradient(
    to right,
    #ffae00,#fdcf58
    ); */
    border-radius: 1rem;
    overflow: hidden;
}
.row-image-container h3{
    /* font-size: 2.5rem; */
    margin: 1rem 0;
    text-align: center;
}
/* .row-image-container .logo-asi{
    vertical-align: bottom;
    width: 38px;
    height: 38px;
} */
.row-image-container .cta-btn{
    margin: auto;
}

.row-image {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    display: block;
    position: relative;
    transition: all .5s ease-in-out;
    mix-blend-mode: normal;
    filter: brightness(100%);
    object-fit: contain;
    overflow: hidden;
    
}

.row-image:hover{
    opacity: .5;
    transition: all .5s ease-in-out;
    
    background: linear-gradient(
    to right,
    #ffae00,#fdcf58
    );
}





.row-text {
    width: 100%;
}

.row-text h3 {
    margin-bottom: 0.8rem;
    color: var(--accent-color);
}

.fight-light .row-image-container { /* Inverti ordine Mobile */
    order: -1; 
}

/* HEADER/NAV MOBILE FIRST */
header {
    position: fixed;
    top: 1rem;
    z-index: 1000;
    padding: 0.5rem 0;
    width: 100%;
}
header .home-icon{
    color: #ffc411;
    text-align: center;
    font-size: 2rem;
    position: relative;
    line-height: 1;
    z-index: 1;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px; /* Logo altezza in mobile */
    display: block;
    position: relative;
    z-index: 1;
}

.nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(26, 26, 26, 0.80);
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    display: none; /* Nascosto in mobile */
    list-style: none;
}

.nav-menu li {
    margin: 0.5rem 0;
}


.nav-menu a {
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    display: block;
    text-align: center;
}

/*text effect*/
.nav-menu a {
    color: #fff;
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 12px 40px;
    cursor: pointer;
    text-align: center;
    background-color: rgba(10, 10, 10, 0.6);
    border: 2px solid rgba(255, 183, 0, 0.2);
    border-radius: 1rem;
    box-shadow: 0 0 10px rgba(255, 179, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    max-width: 90%;
    margin: auto;
            
}

.nav-menu a:hover {
    background-color: rgba(20, 20, 20, 0.8);
    border-color: rgba(255, 183, 0, 0.417);
    box-shadow: 0 0 20px rgba(255, 179, 0, 0.448);
    transform: scale(1.05);
}

.nav-menu a.active {
    background-color: rgba(30, 30, 30, 0.9);
    border-color: rgba(255, 174, 0, 0.8);
    box-shadow: 0 0 30px rgba(255, 174, 0, 0.8);
}

.nav-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 70, 0, 0.2), transparent);
    transition: 0.5s;
}

.nav-menu a:hover::before {
    left: 100%;
}



/* Hamburger Menu */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
    font-size: 1.9rem;
    color: #ffc411;
}
.hamburger small, .home-icon small{
    font-size: .8rem;
    color: white;
    letter-spacing: .1rem;
    display: none;
    margin-top: 5px;
}

.hamburger .bar {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--text-color);
    border-radius: 1px;
    transition: all 0.3s ease-in-out;
}

.nav-menu.active {
    /* display: flex; */
    display: block;
    height: 100vh;
    backdrop-filter: blur(6px);
    top: -1rem;
    padding-top: 8rem;
}

/* CTA evidenziata nella Nav */
.cta-nav a {
    /* background-color: var(--cta-highlight); */
    color: var(--dark-bg) !important;
    font-weight: 900;
    /*  */
    border: 2px solid #f4dc7e;
   
    background: -webkit-linear-gradient( -45deg,    #f7f6b6 5%,    #b47f31 53%,    #f4dc7e 91%  );
    color: #000 !important;
    font-weight: 900 !important;
}
.cta-nav a:hover {
    background: rgba(0,0,0,0.5);
    color: white !important;
}

/* HERO SECTION */
.hero-section {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;

}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.video-background video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    filter: brightness(0.6); /* Scurisce il video */
}

#desktop-video { display: none; } /* Mobile First: Nascondi video desktop */
#mobile-video { display: block; } /* Mostra video mobile */

.hero-content {
    position: relative;
    z-index: 2;
    padding: 1rem;
}

.hero-content h1 {
    font-size: 3rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
    line-height: .8;
}
.hero-content h1 .subtitle{
    font-family: 'Be Vietnam Pro', sans-serif;
    color: white;
    text-transform: none;
    font-size: 1.6rem;
}
/* Dragone Image Animation */
.dragone-img {
    
    max-height: 200px;
    margin-bottom: 2rem;
    transform: scale(1.1);
    transition: all 5s ease-in-out;
    animation: fadeIn 3s ease-in-out;
}



@keyframes growAndFade {
    0% {
        height: 0px;
        opacity: 0;
        filter: blur(5px);
        
    }
    1% { /* Per farla partire subito con le transizioni */
        height: 200px;
        opacity: 0;
        filter: blur(5px);
    }
    100% {
        height: 200px; /* Altezza finale in mobile */
        opacity: 1;
        filter: blur(0);
    }
}


@keyframes fadeIn {
    0% {
        opacity: 0;
        -webkit-filter: blur(1.5rem);
        filter: blur(1.5rem);
        transform: scale(1);
    }

    100% {
        opacity: 1;
        -webkit-filter: blur(0);
        filter: blur(0);
        transform: scale(1.1);
    }
}

 .form-armata .row-image{
    order: 1;
 }
 .form-armata .row-text{
    order: 2;
 }

/* Ingrandimento per Desktop (gestito in media query) */
@media (min-width: 768px) {
    
 .form-armata .row-image{
    order: 2;
 }
 .form-armata .row-text{
    order: 1;
 }
   
    .hamburger small, .home-icon small{
        display: block;
    }
    .dragone-img {
    
        max-height: 35vh;
    }
    @keyframes growAndFade {
        0% {
            height: 0px;
            opacity: 0;
            filter: blur(5px);
        }
        1% {
            height: 250px;
            opacity: 0;
            filter: blur(5px);
        }
        100% {
            height: 300px; /* Altezza massima in desktop */
            opacity: 1;
            filter: blur(0);
        }
    }
}


/* Fade In On Load (per H1 e CTA) */
.fade-in-on-load {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInMove 1s ease-out 4s forwards; /* Inizia dopo l'immagine */
}

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


/* CTA Buttons */
.cta-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.cta-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 18px;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 1.1rem;
}

.cta-outline {
    border: 2px solid var(--text-color);
    background-color: transparent;
    color: var(--text-color);
}

.cta-outline:hover {
    background-color: var(--text-color);
    color: var(--dark-bg);
}

.cta-filled {
    border: 2px solid var(--text-color);
    background-color: var(--text-color);
    color: var(--dark-bg);
}

.cta-filled:hover {
    background-color: transparent;
    color: var(--text-color);
    border-color: var(--text-color);
}

/* Sezione CTA "Iscriviti" */
.cta-section {
    text-align: center;
    background: -webkit-linear-gradient(-45deg, #f7f6b63b 5%, #b47f3126 53%, #f4dc7e2b 91%);
    padding: 6rem 1rem;
    border-radius: 1rem;
    
}
.in-the-block{
    width: 100%;
    display: block;
    margin-top: 1rem;
    background: -webkit-linear-gradient( -45deg,    #f7f6b6 5%,    #b47f31 53%,    #f4dc7e 91%  );
    font-weight: bolder;
    border-color: transparent;
}
.cta-section h2 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.cta-filled-large {
    background-color: var(--cta-highlight);
    color: var(--dark-bg);
    padding: 1rem 2rem;
    font-size: 1.5rem;
    display: inline-block;
    border: none;
    margin-top: 2rem;
}

.cta-filled-large:hover {
    background-color: var(--accent-color);
    color: var(--dark-bg);
}

/* ANIMAZIONE SCROLL (fade in appena visibile) */
.scroll-fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile: Aggiungi delay per gli elementi con data-delay */
.scroll-fade-in[data-delay="0.2"].is-visible {
    transition-delay: 0.2s;
}

.scroll-fade-in[data-delay="0.4"].is-visible {
    transition-delay: 0.4s;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 1.5rem 1rem;
    border-top: 1px solid #333;
    font-size: 0.85rem;
}
.logo-asi{
    width: 40px;
    height: 40px;
    margin-right: 10px;
}
.footer{
    margin-top: 4rem;
    text-align: center;
}
/* MEDIA QUERY (Mobile First: min-width) */
/* Tablet e Desktop (es. min-width: 768px) */
@media (min-width: 768px) {
    .logo-asi{
        width: 50px;
        height: 50px;
    }

    .nav-menu a {
        max-width: 20rem;
        margin: 1rem auto;
    }
    .logo img {
        height: 50px; /* Logo altezza in mobile */
        display: block;
    }
    /* HEADER/NAV */
    .hamburger {
        /* display: none; Nascondi Hamburger in desktop */
    }

    header .container {
        justify-content: space-between;
        padding: 0 2rem;
    }

    .logo {
        position: absolute; /* Centra il logo */
        left: 50%;
        transform: translateX(-50%);
        z-index: 1001;
    }
    .logo img {
        height: 60px; /* Logo più grande in desktop */
    }

    .nav-menu {
        /* position: static;
        width: auto;
        flex-direction: row; */
        /* display: flex !important; Mostra sempre il menu in desktop */
        /* background-color: transparent;
        padding: 0;
        justify-content: space-between;
        width: 100%;
        max-width: var(--max-content-width); */
    }
    .nav-menu a{
        font-size: .8rem;
        text-transform: uppercase;
        letter-spacing: 2px;
        font-weight: bold;
    }
    
    .nav-menu li {
        margin: 0;
        padding: 0 1rem;
    }

    /* Distribuzione link: Home/Combattimenti a sinistra, Forme/Iscriviti a destra */
    .nav-menu > :nth-child(2) { /* Link Combattimenti */
        margin-right: auto; /* Spinge a destra i successivi */
    }

    .nav-menu > :nth-child(3) { /* Link Forme */
        margin-left: auto; /* Allinea a destra con Iscriviti */
    }

    /* HERO */
    #desktop-video { display: block; }
    #mobile-video { display: none; }

    .hero-content h1 {
        font-size: 5rem;
    }

    .cta-group {
        flex-direction: row;
        gap: 2rem;
        justify-content: center;
    }

    /* CONTENT SECTIONS */
    .content-section {
        padding: 6rem 2rem;
    }

    .content-row {
        flex-direction: row; /* Desktop: Riga (Flex) */
        gap: 4rem;
        text-align: left;
    }

    .row-image-container {
        width: 50%;
    }

    .row-text {
        width: 50%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .fight-combat .row-image-container { /* Point Combat: Img a sinistra */
        order: -1;
    }

    .fight-light .row-image-container { /* Free Light Combat: Img a destra */
        order: 1; 
    }

    .form-nuda .row-image-container { /* Forme Nude: Img a sinistra */
        order: -1;
    }

    .form-armata .row-image-container { /* Forme Armate: Img a destra */
        order: 1;
    }
    .in-the-block{
        max-width: 12rem;
    }
}

/* MEDIA QUERY per schermi molto grandi (es. min-width: 1200px) */
@media (min-width: 1200px) {
    .hero-content h1 {
        font-size: 6rem;
    }
}

.cta-select {
    padding: 14px 28px;
    border-radius: 30px;
    font-size: 1rem;
    background: #d4af37;
    color: #000;
    font-weight: 600;
    border: none;
    cursor: pointer;
    min-width: 220px;
    text-align: center;
}

.cta-select:focus {
    outline: none;
}

.logomono{
    margin: auto;
}