/* -------------------------------------------------------------------------------- */
/* ! Impoostazioni base */
/* -------------------------------------------------------------------------------- */

:root {
    /* Colori */
    --color-primary: #000;
    --color-secondary: #e82d2d;
    --color-accent: #d6ec6b;
    --color-light: #f5f5f5;
    --color-dark: #333;
    --color-gray: #ccc;
    --color-gray-light: #ddd;
    --color-white: #fff;
    --color-black: #000;
    /* Tipografia */
    --font-primary: 'Lexend', sans-serif;
    --font-display: 'Poppins', sans-serif;
    /* Dimensioni */
    --space-xs: 0.5rem;
    --space-s: 1rem;
    --space-m: 2rem;
    --space-l: 3rem;
    --space-xl: 4rem;

    /* Proprietà elementi */
    --border-radius: 4px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

    /* Animazioni */
    --animazione-micro-s: 0.7s cubic-bezier(.32, .92, .66, .2);
    --animazione-micro-l: 0.9s cubic-bezier(.32, .92, .65, .39);
}

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

a {
    color: var(--color-light);
    font-size: 15px;
    padding: 20px;
}

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

li {
    list-style-type: none;
}

li:hover {
    color: var(--color-secondary);
}

main {
    width: 100%;
  }
  

/* Utility */

html {
    scroll-behavior: smooth;
    width: 100%;
    overflow-x: hidden;
}

.res {
    width: auto;
    max-height: 100px;
    grid-column: 2 / 4;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    justify-items: center;
}

body {
    font-family: var(--font-primary);
    width: 100%;
}

h1,
h2,
h3,
h5,
h6 {
    font-family: var(--font-display);
}

p {
    font-size: 1.3em;
    line-height: 1.3em;
    text-align:start;
}


h1 {
    font-size: 3.5em;
    line-height: 1em;
    color: var(--color-secondary);
}

h2 {
    font-size: 2.7em;
    line-height: 1.2em;
}

h3 {
    font-size: 1.5em;
    line-height: 1.2em;
    font-style: italic;
    text-align:start;
}

h4 {
    font-size: 1.5em;
    line-height: 1.2em;
}

/* Header container */
.fixed {
    position: fixed;
    width: 100%;
    z-index: 2;
    box-shadow: var(--box-shadow);
    display: grid;
    grid-template-columns: repeat(12, 1fr);
  }
  
  
  header.header {
    background: var(--color-primary);
    grid-column: 1 / 13;
  }
  

  .container.header__grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    align-items: center;
    width: 100%;
  }
  
  .header__logo {
    grid-column: 2 / 4;
  }
  
  .header__logo img {
    filter: invert(1);
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    margin-top: 20px;
  }
  
  .header__menu {
    grid-column: 4 / 10;
  }
  
  .site-nav {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 0;
    margin: 0;
  }
  
  .site-nav > li {
    display: inline-block;
  }
  
  .site-nav > li a {
    color: var(--color-white);
    padding: 10px;
    transition: color 0.3s ease;
    text-decoration: none;
  }
  
  .site-nav > li a:hover {
    color: var(--color-secondary);
  }
  

  .tasto__home {
    grid-column: 10 / 12;
    display: flex;
    justify-content: flex-end;
  }
  
  .cta-group-secondary {
    color: var(--color-white);
    border: 1px solid var(--color-white);
    padding: var(--space-s);
    text-align: center;
    text-decoration: none;
  }
  
  /* Hamburger menu: hidden by default */
  .header__icon {
    display: none;
  }

/* Hero */
.hero {
    background: var(--color-dark);
    height: 90%; 
    background-size: cover;
    display: grid;
    grid-template-columns: repeat(12, 1fr); 
    width: 100%;
    position: relative;
}

.hero__content {
    color: var(--color-white);
    text-align: center;
    z-index: 1;
    order: 1;
    grid-column: 2 / 12;
    margin-top: 10rem;
    width: 100%;
    
}

.banner {
    width: 100%;
    margin-bottom: var(--space-xl);
    margin-left: 0;
    margin-right: 0;
    padding-top: 4rem;
}

section {
    width: 100%;
    gap: var(--space-l);
    margin: auto;
}

/* -------------------------------------------- */

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

.testo__video {
    grid-column: 2 / 8;
    margin-top: var(--space-l);
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    outline: 2px solid var(--color-light);
    gap: 20px;
    grid-column: 2 / 8;
}

.video_mostra {
    width: 100%;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    aspect-ratio: 16 / 9; 
}

.content__about {
    text-align: center;

    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin: auto;
}

.video-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--color-secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.video-wrapper:hover::before {
    opacity: 1;
}

.description {
    grid-column: 8 / 12;
    align-self: center;
}


.content__activesx {
    background-color: var(--color-gray);
    padding: var(--space-s);
    display: flex;
    justify-content: start; 
    align-items: start;
    grid-column: 2 / 7;
    flex-direction: column;
    align-self: self-start;
}

.content__activedx {
    background-color: var(--color-gray);
    padding: var(--space-s);
    display: flex;
    justify-content: start; 
    align-items: start;
    grid-column: 7 / 12;
    flex-direction: column;
    align-self: self-start;
    margin-bottom: var(--space-l);
}

/* -------------------------------------------- */

.a__mostre {
    background-color: var(--color-dark);
    display: grid;
    grid-template-columns: repeat(12, 1fr); 
}

.titolo__galleria {
    grid-column: 2 / 12;
    color: var(--color-light);
    margin-top: var(--space-l);
}

.cta-group {
    grid-column: 5 / 9;
    margin-bottom: var(--space-l);
}

/* Botton */
.cta-group-primary {
    background-color: transparent;
    outline: 2px solid var(--color-light);
    display: flex;              
    justify-content: center;   
    align-items: center;       
    color: var(--color-light);
    text-decoration: none;     
    font-weight: bold;     
    cursor: pointer;
}


.cta-group-primary:hover {
    background-color: var(--color-light); 
    color: var(--color-dark);
    display: flex;
    justify-content: center;
    align-items: center;
}

.cta-group-secondary {
    background-color: transparent;
    outline: 2px solid var(--color-light);
    width: auto;
    height: 30px;
    display: flex;              
    justify-content: center;   
    align-items: center;       
    color: var(--color-light);
    text-decoration: none;     
    font-weight: bold;     
    cursor: pointer;  
}

.cta-group-secondary:hover {
    background-color: var(--color-light); 
    color: var(--color-dark);
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    grid-template-rows: repeat(2, auto);  
    gap: 20px; 
    width: 100%;
    align-items: center;
    grid-column: 2 / 12;
}
/* -------------------------------------------- */

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

/* Botton gallery */
.fa-magnifying-glass {
    font-size: 24px;          
    cursor: pointer;    
    transition: color 0.3s ease;
    outline:  2px solid var(--color-light);
    height: 40px;  
    width: 40px;
    font-size: 20px;
    color: var(--color-gray-light);  
    align-items: center;
    margin: auto;
    text-align: center;
    align-content: center;
}

.fa-magnifying-glass:hover {
    color: var(--color-dark);  
    background-color: var(--color-light);  
    height: 50px;  
    width: 50px;
    font-size: 40px;
    align-items: center;
    margin: auto;
    text-align: center;
}

/* news letter */
.newsletter {
    background-color: var(--color-secondary);
    text-align: center;
    grid-column: 2 / 12;
    padding: var(--space-s);
    margin-top: var(--space-l);
    margin-bottom: var(--space-l);
  }
  
  .newsletter h2 {
    font-size: 2em;
    margin-bottom: 10px;
    color: var(--color-light);
  }
  
  .newsletter p {
    font-size: 1.1em;
    color: var(--color-light);
    margin-bottom: 20px;
  }
  
  .newsletter-form {
    display: flex;
    justify-content: center;
    gap: 10px;
  }
  
  .newsletter-form input {
    padding: 12px 20px;
    font-size: 1em;
    width: 250px;
  }
  
  .newsletter-form button {
    padding: 12px 20px;
    font-size: 1em;
    background-color: var(--color-light);
    cursor: pointer;
  }
  
  .newsletter-form button:hover {
    background-color: var(--color-secondary);
  }

/* -------------------------------------------- */

.info__box {
    padding: 20px;
    margin: auto;
    max-width: 800px;
    text-align: center;
    color: var(--color-dark);
    font-family: var(--font-primary);
    display: flex;
    flex-direction: column; 
    gap: 20px; 
    align-items: center; 
    justify-content: center; 
    height: auto; /
}


hr.divider {
    width: 80%;  
    border: 0;   
    border-top: 2px solid var(--color-dark); 
    margin: 20px 0;
}

.content {
    max-width: 100%; /* Per evitare che i contenuti escano dai limiti del contenitore */
    text-align: center;
}

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

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

.item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--color-secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.item:hover::before {
    opacity: 1;
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 20px;
    text-align: center;
    height: 60px;
    justify-items: center;
    text-align: center;
    white-space: normal;
    overflow-wrap: break-word;
    padding: 5px;
    color: white;

}

.footer {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    place-items: center;
    grid-gap: 40px;
    padding: var(--space-l);
    background-color: #000;
  }
  
  .footer__logo  {
    grid-column: 2 / 4;
    position: relative;
    z-index: 10;
    filter: invert(100%);
    width: 100%;
  }
    
  .footer__menu ul {
    display: flex;
    gap: 15px;
    list-style: none;
  }
    
  .footer__menu ul li {
    margin-bottom: 8px;
  }
    
  .footer__social {
    display: flex;
    justify-content: center;
    gap: 15px;
    grid-column: 10 / 13;
  }
    
  .link__footer {
    text-align: center;
    gap: 20px;
    grid-column: 4 / 10;
  }
    
  .footer__social a {
    color: white;
    font-size: 20px;
    text-decoration: none;
    grid-column: 8 / 13;
  }
    
  .footer__social a:hover {
    color: var(--color-secondary);
    grid-column: 8 / 13;
  }
  



/* MEDIA QUERIES */

@media (max-width: 1384px) {
    
 
    
    header .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px; 
        padding: var(--space-s);
        text-align: center;
        position: relative;
        width: 100%;
        margin: 0 auto;
        
    }

    .container {
        width: 100%;
        margin: 0 auto;
        padding: 0 var(--space-s);
        justify-content: space-between;
    }
    
    .container.header__grid {
        margin: 0;
        width: 100%;
      }

    .header__logo img {
        width: 120px;
        height: auto;
        justify-content: center;
    }

    .header__cta {
        width: 130px;
    }

    .header__cta a {
        width: 100%;
        padding: var(--space-s);
    }

    /* Mostra sempre l'icona hamburger */
    .header__icon {
        position: relative; /* da 'static' a 'relative' */
        display: flex;
         align-items: center;
        justify-content: center;
        z-index: 1001;
        grid-column: 6 / 10;
        margin: auto;
    }

    /* Menu mobile */
    .header__menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--primary);
        transform: translateY(-150%);
        transition: transform 0.3s ease-in-out;
        z-index: 1000;
        overflow-x: hidden;
        grid-column: 11 / 12;
        padding: 0;
    }

    .open .header__menu {
        transform: translateY(0%);
    }

    .site-nav {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 25rem;
        padding: 40px;
        gap: 20px;
        width: 100%;
        background-color: var(--color-primary);
        transition: color 0.3s;
    }

    .site-nav:hover {
        color: var(--color-secondary);
    }

    .site-nav > li,
    .nav__item {
        display: block;
        margin: 10px 0;
        padding: 0px;
    }
     /* Hamburger styles */
     .icon-hamburger {
        display: block;
        font-size: 24px;
        cursor: pointer;
        position: relative;
        width: 40px;
        height: 20px;
        transition: 0.3s ease-in-out;
        gap: 50px;
    }

    .icon-hamburger span {
        background: var(--color-white);
        height: 2px;
        width: 100%;
        position: absolute;
        left: 0;
        border-radius: var(--border-radius);
    }

    .icon-hamburger span:nth-child(1) {
        top: 0;
    }

    .icon-hamburger span:nth-child(2),
    .icon-hamburger span:nth-child(3) {
        top: 10px;
        width: 70%;
        left: 50%;
        transform: translateX(-50%);
    }

    .icon-hamburger span:nth-child(4) {
        top: 20px;
    }

    /* Stato open */
    .open .icon-hamburger {
        transform: rotate(180deg);
    }

    .open .icon-hamburger span:nth-child(1),
    .open .icon-hamburger span:nth-child(4) {
        opacity: 0;
        width: 0;
    }

    .open .icon-hamburger span:nth-child(2) {
        left: 0;
        transform: rotate(45deg);
        width: 100%;
    }

    .open .icon-hamburger span:nth-child(3) {
        left: 0;
        transform: rotate(-45deg);
        width: 100%;
    }

  
    .header__logo,
    .cta-group,
    .header__icon {
        display: flex;
        align-items: center;
    }

    .header__top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        gap: 15px; 
        display: flex;

        justify-items: center;
    }

    .cta-group-secondary {
        font-size: 14px;
        padding: 8px 12px;
        background-color: var(--color-primary);
        color: var(--color-white);
        white-space: nowrap;
        color: var(--color-light);
    }

 
    .cta-group {
       margin: auto;
       justify-content: center;
    }

    .header__icon {
        margin-left: auto; 
    }

/* ---------------------------------------- */

    .video-wrapper {
        position: relative;
        width: 100%;
        aspect-ratio: 16 / 9;
        outline: 2px solid var(--color-light);
        gap: 20px;
        grid-column: 2 / 12;
    }

    .description {
        grid-column: 2 / 12;
    }



    /* Gallery */
    .gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, auto);
        margin: auto;
    }

    .gallery-item {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        background-color: #000; /* o trasparente su immagine */
        color: #fff;
        padding: 10px;
        width: 100%;
        box-sizing: border-box;
        max-width: 100%;
        text-align: center;
    }

    .cta-group {
        grid-column: 5 / 9;
        margin-bottom: var(--space-l);
    }
    
    /* Botton */
    .cta-group-primary {
        background-color: transparent;
        outline: 2px solid var(--color-light);
        display: flex;              
        justify-content: center;   
        align-items: center;       
        color: var(--color-light);
        text-decoration: none;     
        font-weight: bold;     
        cursor: pointer;
    }



}

@media (max-width: 600px) {@media (max-width: 600px) {
  /* Header */
  header .container,
  .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: var(--space-s);
    text-align: center;
    position: relative;
    width: 100%;

    margin: 0 auto;
    box-sizing: border-box;
  }

   h1 {
    text-align: center;
  }

  h3 {
    text-align: center;
  }

  .header__logo img {
    width: 100%; 
    height: auto;
  }

  .header__cta {
    width: 110px; 
  }

  .header__cta a {
    width: 100%;
    padding: var(--space-xs);
    font-size: 14px;
  }

  .header__icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    margin-left: auto;
  }

  .header__menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-primary);
    transform: translateY(-150%);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    overflow-x: hidden;
  }

  .open .header__menu {
    transform: translateY(0%);
  }

  .site-nav {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 25rem;
    padding: 40px;
    gap: 20px;
    background-color: var(--color-primary);
    transition: color 0.3s;
    text-align: center;
  }

  .site-nav:hover {
    color: var(--color-secondary);
  }

  .site-nav > li,
  .nav__item {
    margin: 10px 0;
  }

  
  h1 {
    font-size: 2.5em; 
  }
  
  h2 {
    font-size: 2em;
  }
  
  h3 {
    font-size: 1.3em; 
    text-align: center;
  }
  
  p {
    font-size: 1.1em;
    text-align: center;
  }

  /* Hero section */
  .hero__content {
    margin-top: 6rem; /
  }

  .video-wrapper,
  .description,
  .content__activesx,
  .content__activedx,
  .testo__video,
  .newsletter {
    grid-column: 2 / 12;
    justify-items: center;
    text-align: center;
    align-items: center;
  }

  .video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    outline: 2px solid var(--color-light);
  }

  /* Gallery */
  .gallery {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, auto); 
    gap: 15px; 
    margin: auto;
    grid-column: 2 / 12;
  }

  .gallery-item {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-color: #000;
    color: #fff;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }

  /* CTA Groups */
  .cta-group {
    justify-content: center;
    margin: auto;
    grid-column: 3 / 11; 
    margin-bottom: var(--space-l);
    text-align: center;
  }

  .cta-group-primary {
    background-color: transparent;
    outline: 2px solid var(--color-light);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-light);
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    padding: 12px 20px; 
  }
  
  .cta-group-secondary {
    font-size: 13px;
    padding: 6px 10px; 
  }


  .newsletter-form {
    display: flex;
    flex-direction: column; 
    align-items: center;
    gap: 15px;
  }
  
  .newsletter-form input {
    width: 100%;
    max-width: 280px; 
    min-width: 200px;
    padding: 12px 15px;
  }
  
  .newsletter-form button {
    width: 100%;
    max-width: 280px;
    padding: 12px 15px;
  }

  
  .icon-hamburger {
    display: block;
    font-size: 24px;
    cursor: pointer;
    position: relative;
    width: 35px; 
    height: 18px;
  }

  .icon-hamburger span {
    background: var(--color-white);
    height: 2px;
    width: 100%;
    position: absolute;
    left: 0;
    border-radius: var(--border-radius);
  }

  .icon-hamburger span:nth-child(1) {
    top: 0;
  }

  .icon-hamburger span:nth-child(2),
  .icon-hamburger span:nth-child(3) {
    top: 8px; 
    width: 70%;
    left: 50%;
    transform: translateX(-50%);
  }

  .icon-hamburger span:nth-child(4) {
    top: 16px; 
  }

  .open .icon-hamburger {
    transform: rotate(180deg);
  }

  .open .icon-hamburger span:nth-child(1),
  .open .icon-hamburger span:nth-child(4) {
    opacity: 0;
    width: 0;
  }

  .open .icon-hamburger span:nth-child(2) {
    left: 0;
    transform: rotate(45deg);
    width: 100%;
  }

  .open .icon-hamburger span:nth-child(3) {
    left: 0;
    transform: rotate(-45deg);
    width: 100%;
  }

  .header__logo,
  .cta-group,
  .header__icon,
  .header__top {
    display: flex;
    align-items: center;
  }

  .header__top {
    justify-content: space-between;
    width: 100%;
    gap: 10px; 
  }

  /* Footer */
  .footer__logo {
    grid-column: 4 / 10; 
    margin-bottom: 20px;
    margin-top: var(--space-l);
    width: 100%;
    max-width: 150px; 
  }
  
  .footer {
    grid-gap: 15px;
    padding: var(--space-s) 0;
    margin-top: var(--space-l);
  }
  
  .footer__menu ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px; 
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .footer__menu ul li {
    margin-bottom: 8px;
  }
  
  .footer__social {
    display: flex;
    justify-content: center;
    gap: 12px;
    grid-column: 1 / -1;
    flex-direction: row;
  }
  
  .link__footer {
    text-align: center;
    gap: 15px; 
    grid-column: 3 / 11; 
  }
  
  .footer__social a {
    color: white;
    font-size: 18px; 
    text-decoration: none;
    margin-bottom: var(--space-s); 
  }
  
  .footer__social a:hover {
    color: var(--color-secondary); 
  }

  .fa-magnifying-glass {
    font-size: 18px; 
    height: 35px; 
    width: 35px; 
  }
  
  .fa-magnifying-glass:hover {
    height: 40px; 
    width: 40px; 
    font-size: 24px; 
  }


  section {
    gap: var(--space-s);
  }
}
  }
  
    