/*
Theme Name: Sampa
Theme URI: https://example.com
Author: Mattia
Author URI: https://example.com
Description: Tema WordPress vuoto per sviluppo personalizzato
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sampa
*/

/* ==========================================================================
   1. VARIABILI E BASE SETUP
   ========================================================================== */
   @font-face {
  font-family: 'Jost';
  src: url('/wp-content/themes/sampa/assets/fonts/Jost-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'Jost';
  src: url('/wp-content/themes/sampa/assets/fonts/Jost-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}


:root {
    --bg-dark: #020307;
    --bg-light: #f2eae4;
    --text-light: #fff;
    --text-dark: #a1a1a;
    --accent-blue: #00577a;
    --highlight-blue:#38b8be;
    --font-main: "Jost", sans-serif;
    --transition-smooth: 0.45s cubic-bezier(.4, 0, .2, 1);
    --container:1400px;
    --thumb-width: 120px;
    --vh: 1vh;
  }
  
  body {
    margin: 0;
    color: var(--text-dark);
    font-family: var(--font-main);
    font-weight: 400;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    background: #fff;
    font-feature-settings: "ss01" 1 !important;
  }
  
  html, body {
  overscroll-behavior: none;
}
  
 
.small-spacing {
            padding:5em 40px;
        }
        
        @media screen and (max-width:991px) {
            
               .small-spacing{
            padding:40px 20px !important;
       }
            
            
        }
            
        

  .container {
    max-width: var(--container);
    margin: auto;
  }

  section{
    padding:10rem 40px;
  }
  

  .zoom-wrapper{
    background-color: rgba(85,85,85,.1);
  }

  .fadein {
    opacity: 0;
    transform: translateY(30px);
  }

  /*Responsive*/

  @media screen and (max-width:991px){
  section {
    padding:60px 20px !important;
    text-align:left !important;
  }
}
  
  /* ==========================================================================
     2. GERARCHIA TESTI RESPONSIVE (Fluid Typography)
     ========================================================================== */

h1, .hero-title {
  font-size: clamp(2.325rem, 7.44vw, 4.65rem);
  line-height: 1.023;
  font-weight: 400;
  margin-bottom: 1.395rem;
}

h2 {
  font-size: clamp(1.674rem, 4.65vw, 2.79rem);
  line-height: 1.116;
  font-weight: 400;
  color: var(--accent-blue);
}

h3 {
  font-size: clamp(1.302rem, 2.79vw, 1.86rem);
  line-height: 1.209;
  font-weight: 400;
  color: var(--accent-blue);
}

p, li {
  font-size: clamp(0.988rem, 1.2555vw, 1.1625rem);
  line-height: 1.488;
  font-weight: 350;
}

p {
  margin-top: 0;
}

small {
  font-size: 0.81375rem;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
}
  
.hero-subtitle{
    color:white;
    font-weight:400;
    font-size: clamp(1.202rem, 2.69vw, 1.76rem);
}

  /* ==========================================================================
     3. NAVIGATION & MENU
     ========================================================================== */
  #navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: transform var(--transition-smooth), 
                opacity 0.3s ease, 
                background-color 0.35s ease !important;
                color:#fff;
  }
  
  #navigation a {
  position: relative;
  text-decoration: none;
  color: inherit;
}

#navigation a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;            /* distanza dal testo */
  width: 100%;
  height: 2px;             /* spessore linea */
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

#navigation a:hover::after {
  transform: scaleX(1);
}

  
  #navigation.nav-hidden {
    transform: translateY(-100%);
    opacity: 0;
  }
  
  #navigation.solid {
    background: #fff;
    border-bottom: 1px solid #ddd;
  }
  
    #navigation.solid a {
  color: var(--accent-blue);
  text-decoration: none;
}
  
  #navigation.solid, 
  #navigation.solid ul, 
  #navigation.solid .st0 {

    color: var(--accent-blue);
    fill: var(--accent-blue);
  }
  
  #navigation.solid #logo {
    border-color: var(--accent-blue) !important;
  }
  



  #nav-left, #nav-right, #nav-center {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  #menu {
    display: flex;
    flex-direction: row;
    padding: 10px 20px;
  }
  
  #menu a {
  color: #fff;
  text-decoration: none;
}

  
  #menu ul {
    list-style: none;
    display: flex;
    flex-direction: row;
    gap: 15px;
    text-transform: capitalize;
    padding-left: 0;
    opacity: 0; 
    transition: color 0.1s ease;
  }
  
  
  
  /* Admin bar presente */
body.admin-bar #navigation,
body.admin-bar #mobile-nav {
  top: 32px;
}

/* Admin bar su mobile */
@media (max-width: 782px) {
  body.admin-bar #navigation,
  body.admin-bar #mobile-nav {
    top: 46px;
  }
}


  

  #logo {
    height: 33px;
    width: 33px;
    overflow: visible;
    border: 1px solid transparent;
    opacity: 0;
    margin: 0 20px;
    transition: opacity 0.1s ease, border-color 0.1s ease;
  }
  
  #Livello_1 {
    width: 130px;
    overflow: visible;
    transform: translateX(-48px);
  }
  




  @media (min-width: 992px) {
    .mobile-only { display: none !important; }
  }

  
  @media (max-width: 991px) {

    #navigation {
        display:none;
    }


    #mobile-nav {
      position: fixed;
      transition: transform 0.4s ease, background-color 0.3s ease;
      top: 0;
      left: 0;
      width: 100%;
      z-index: 9999;
    }

    
  
    .mobile-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 5px 20px;
      position: relative;
      z-index: 100;
    }
  
    .mobile-logo svg {
      height: 38px;
      padding-top:10px;
      width: auto;
      transform: scale(0.8);
    transform-origin: left;
    }
    

    #mobile-nav.solid .st2{
fill: var(--accent-blue);
    }

    #mobile-nav.open .st2{
        fill: #fff;
            }

            #mobile-nav.open .hamburger-inner,  #mobile-nav.open .hamburger-inner::before
            {
                background: #fff !important;
            }

    #mobile-nav.solid .hamburger-inner, #mobile-nav.solid .hamburger-inner::before{
        background: var(--accent-blue);
    }
    
  
    #mobile-nav.solid {
        background:#fff;
        border-bottom: 1px solid #ddd;
    }

    #mobile-nav.nav-hidden {
        transform: translateY(-100%);
        opacity: 0;
      }





    /* --- Hamburger Button --- */
    .menu-button {
      background: none;
      border: none;
      cursor: pointer;
      padding: 10px;
    }
  
    .hamburger-box {
      width: 24px;
      height: 14px;
      position: relative;
    }
  
    .hamburger-inner, .hamburger-inner::before {
      content: '';
      width: 24px;
      height: 2px;
      background: #fff;
      position: absolute;
      right: 0;
      transition: transform 0.3s ease;
    }
  
    .hamburger-inner { top: 0; }
    .hamburger-inner::before { top: 8px; width: 16px; } /* Linea sotto più corta */
  
    /* Animazione Hamburger */
    .menu-button.active .hamburger-inner {
      transform: translateY(4px) rotate(45deg);
      width: 24px;
    }
    .menu-button.active .hamburger-inner::before {
      transform: translateY(-8px) rotate(-90deg);
      width: 24px;
    }
  
    /* --- Menu Overlay --- */
    .menu-overlay {
      position: fixed;
      inset: 0;
      background: var(--accent-blue);
      display: flex;
      flex-direction: column;
      padding: 120px 40px 40px;
      transform: translateX(100%);
      transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
      color:#fff;
    }
  
    .menu-overlay.open {
      transform: translateX(0);
    }
  
    .main-links {
      list-style: none;
      padding: 0;
      margin: 0;
    }
  
    .main-links li {
      margin-bottom: 20px;
      overflow: hidden;
    }
  
    .main-links a {
      font-size: 32px;
      font-weight: 300;
      text-decoration: none;
      color: #fff;
      display: block;
      transform: translateY(100%);
      transition: transform 0.5s ease;
    }
  
    .menu-overlay.open .main-links a {
      transform: translateY(0);
    }
  
    /* Ritardo a cascata per i link */
    .main-links li:nth-child(1) a { transition-delay: 0.1s; }
    .main-links li:nth-child(2) a { transition-delay: 0.2s; }
    .main-links li:nth-child(3) a { transition-delay: 0.3s; }
    .main-links li:nth-child(4) a { transition-delay: 0.4s; }
    .main-links li:nth-child(5) a { transition-delay: 0.5s; }
    .main-links li:nth-child(6) a { transition-delay: 0.6s; }
    .main-links li:nth-child(7) a { transition-delay: 0.7s; }
  
    .menu-footer {
      margin-top: auto;
      color: #fff !important;
      font-size: 16px;
      opacity: 1;
      text-transform: uppercase;
      letter-spacing: 2px;
      border-top:1px solid rgba(255,255,255,0.5);
      padding-top:15px;
    }




  }

  /* =========================================================
   Layout Grid
========================================================= */

.grid-2,
.grid-3,
.grid-4 {
    display: grid;
    gap: clamp(2.5rem, 5vw, 5rem);
    width: 100%;
}

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

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

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



.col-1 {
    grid-column: span 1;
}

.col-2 {
    grid-column: span 2;
}

.col-3 {
    grid-column: span 3;
}

.col-4 {
    grid-column: span 4;
}


/*Responsive*/

@media (max-width: 991px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 20px;
        margin:0 !important;
    }

    .col-1,
    .col-2,
    .col-3,
    .col-4 {
        grid-column: span 1;
    }
}


  /* ==========================================================================
     5. COMPONENTI (Bottoni, Preloader, ecc)
     ========================================================================== */
  a.btn-primary {
    display: inline-block;
    margin-top:20px;
    padding: 10px 22px;
    font-size: 16px;
    letter-spacing: 3px;
    font-weight: 300;
    text-transform: uppercase;
    text-decoration: none;
    color: white;
    border: 1px solid white;
    background: linear-gradient(90deg, white 0%, white 100%) no-repeat;
    background-size: 0% 100%;
    background-position: left center;
    cursor: pointer;
    transition: background-size var(--transition-smooth), 
                color 0.35s ease, 
                transform 0.35s ease;
  }
  
  a.btn-primary:hover {
    background-size: 100% 100%;
    color: #111;
    transform: translateY(-1px);
  }
  
  #preloader {
    width: 100vw;
    height: calc(var(--vh) * 100);
    background: var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    position: fixed;
    top: 0;
    left: 0;
    clip-path: inset(0% 0% 0% 0%); /* Parte tutto visibile */
  }

@media screen and (max-width:991px){
      #preloader {
          display:none;
    }
}
  
  a.btn-secondary, #wpforms-submit-677 {
    display: inline-block;
    margin-top:20px;
    padding: 10px 22px;
    font-size: 16px;
    letter-spacing: 3px;
    font-weight: 300;
    text-transform: uppercase;
    text-decoration: none;

    color: #020307;
    border: 1px solid rgba(2, 3, 7, 0.4);
    background:
        linear-gradient(90deg, #020307 0%, #020307 100%) no-repeat;
    background-size: 0% 100%;
    background-position: left center;

    cursor: pointer;

    transition:
        background-size var(--transition-smooth),
        color 0.35s ease,
        border-color 0.35s ease,
        transform 0.35s ease;
}

a.btn-secondary:hover, #wpforms-submit-677:hover {
    background-size: 100% 100%;
    color: #ffffff;
    border-color: #020307;
    transform: translateY(-1px);
}




  /* ==========================================================================
     4. SEZIONE HERO (Finestra)
     ========================================================================== */
     
     
     #hero {
        padding:0;
     }
     
     .section-hero {
        position: relative;
        height: calc(var(--vh) * 100);
        overflow: hidden;
      }
      
      .hero-content {
        position: absolute;
        inset: 0;
        height: calc(var(--vh) * 100);
        display: flex;
        align-items: center;
        justify-content: center;
        will-change: transform;
        color:#fff;
        overflow:hidden;
      }
      
      .hero-bg {
        position: absolute;
        top: -15%;
        left: -15%;
        width: 130%;
        height: 130%;
        z-index: 0;
      }
      
      .overlay {
        height: 200%;
        width: 100vw;
        background: rgba(0, 0, 0, 0.5);
        position: absolute;
        top: 0;
        left: 0;
        z-index: 1;
      }
      
      #hero .container {
        position: relative;
        z-index: 2;
        padding: 20px;
        text-align: center;
      }
  
      



/* =========================================================
   Parallasse Scroll
========================================================= */

.zoom-wrapper {
    position: relative;
    inset: 0;
    overflow: hidden;
}

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

    transform: scale(1.15);
    will-change: transform;
    transform-origin: center;
}


@media screen and (max-width:991px){
    .zoom-wrapper{

    }
}

/* =========================================================
   Sezioni
========================================================= */

/*IMG-full*/
#img-full {
    position: relative;
    padding:0rem 20px;
    height:700px;
    overflow:hidden;
}



#design {
    text-align:center;
    padding:6rem 20px;
}

#design img{
    width:100%;
}

#design-storia {
    text-align:left;
}

#design-storia img{
    width:100%;
}


/*Responsive*/

@media screen and (max-width:991px){
    #img-full {
        height:auto !important;
        padding:0 20px !important;
    }

    #design-storia{
        text-align:center;
    }
    
    #products .container{
        text-align:left !important;
    }
}


/* =========================================================
   Slider Verticale
========================================================= */


#slider {
    position: relative;
    height: calc(var(--vh) * 100);
    overflow: hidden;
    z-index:999;
    padding:0 !important;
    min-height:1000px;
  }

  .slide {
    position: absolute;
    inset: 0;
    display: flex;
  }


  .left {
    width: 50%;
  }

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

  .right {
    width: calc(50% - 160px);
    padding: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  

.slide:nth-child(odd) .right {
  background: var(--bg-light) !important;
}

.slide:nth-child(even) .right {
  background: white !important;
}


  .number {
color:var(--highlight-blue);
font-weight:500;
margin:0;
}


/*Responsive*/

@media screen and (max-width:991px){
    .slide{
        position:relative;
        flex-direction: column;
    }

    #slider{
        height:auto !important;
    }
    
    .right {
        width: calc(100% - 40px) !important;
        padding:40px 20px !important;
    }

    .left {
        width:100% !important;
    }


  }

@media screen and (max-height:650px){

        #slider{
            height:auto !important;
        }
        .slide{
        position:relative;
    }
}


/* =========================================================
   Slider Orizzontale
========================================================= */


  .slide-hor h3{
    color:white;
    margin:0;
  }


  .slider-horizontal .slider-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
    margin-right: calc((var(--container) - 100vw) / 2);
  
    scrollbar-width: none;
  }

  .slider-horizontal .slider-track > .slide-hor:last-child {
  margin-right: calc((100vw - var(--container)) / 2);
}


  .slider-horizontal .slider-track::-webkit-scrollbar {
    display: none;
  }
  
  .slider-horizontal .slider-track > .slide-hor {
    flex: 0 0 500px;
    height: 400px;
    position: relative;
    overflow: hidden;
  }
  
  .slide-hor img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position:relative;
    z-index:0;
  }

  .slide-hor::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;

  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.5) 30%,
    rgba(0, 0, 0, 0.2) 55%,
    rgba(0, 0, 0, 0) 75%
  );
}

  
  .slide-hor .content {
    position: absolute;
    bottom: 0;
    padding: 30px;
    color: #fff;
    z-index:2;
  }
  

  .slider-bar {
    position: relative;
    height: 5px;
    background: rgb(243, 245, 250);
    margin-top: 12px;
    overflow: hidden;
  }
  

  .slider-thumb {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: var(--thumb-width);
    background: var(--accent-blue);
    cursor: grab;
  }
  .slider-thumb:active {
    cursor: grabbing;
  }


  .slide-hor .content {
    transform: translateY(80px);
    transition: transform 0.3s ease;
  }
  
  .slide-hor .btn-primary {
    margin-top: 40px;
  }
  

  .slide-hor:hover .content,
  .slide-hor:focus .content,
  .slide-hor.is-active .content {
    transform: translateY(0);
  }
  

/*Responsive*/

@media screen and (max-width:991px){

    .slider-horizontal .slider-track > .slide-hor {
        flex: 0 0 400px;
        height: 300px;
    }
    
    .slider-horizontal {
        margin-top:30px !important;
    }

    .slider-horizontal .slider-track .content{
        text-align:left !important;
    }

    .slide-hor .content {
        transform:translateY(0);
    }

    .slide-hor .content .btn-primary{
        transform:scale(0.7);
        transform-origin:top left;
        margin-top:15px;;
        text-align:left;
    }

}

@media screen and (max-width:1399px) {
    .slider-horizontal .slider-track{
        margin:0 !important;
        margin-right: -20px !important;
    }
}

  /* =========================================================
   Footer
========================================================= */



 .creative-footer {
  padding: 40px 20px;
  color: #111;
  border-top: 1px solid #eee;
}

/* GRID PRINCIPALE */


/* SINISTRA */
.footer-logo {
  max-width: 160px;
}


.footer-iso {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer-iso img {
  height: 42px;
  opacity: 0.85;
}

.footer-policy {
  font-size: 0.8rem;
  color: #666;
}

.footer-policy a {
  color: inherit;
  text-decoration: none;
}

.footer-policy span {
  margin: 0 0.4rem;
}


/* FORM */
.newsletter-form {
  display: flex;
  align-items: center;
  background: #f3f5fa;
  border-radius: 999px;
  padding: 0.6rem 1rem;
  max-width: 600px;
}

.newsletter-form input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 1rem;
  padding: 0.6rem;
  outline: none;
}

.newsletter-form button {
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.newsletter-form button:hover {
  transform: translateX(4px);
}

/* BOTTOM */
.footer-bottom {
  margin-top: 5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
  font-size: 0.75rem;
  color: #666;
}

/* RESPONSIVE */
@media (max-width: 991px) {
  footer .grid-4 {
    gap:30px;
  }
  
  .footer-bottom {
  margin-top: 30px;}
  
  
}





/* Stile per la transizione fluida */
.barba-container {
    opacity: 1;
    will-change: opacity, transform;
}

.curtain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(var(--vh) * 100);
    background-color: var(--bg-light);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    /* Maschera iniziale: un rettangolo piatto in basso (altezza 0%) */
    clip-path: inset(100% 0% 0% 0%); 
    pointer-events: none;
}


.serpentina {
position: absolute;
height: calc(var(--vh) * 100);
opacity: 0.3;
z-index:9;
}

.curtain h4{
    font-weight:300;
    color:var(--accent-blue) !important;
    font-size:2rem;
    text-transform:uppercase;
    letter-spacing: 2px;
    /* Assicurati che la tenda sia flex per tenere il testo al centro */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
z-index:99;
width: 100%;
text-align: center;
padding: 60px;
}


    
 
  .dark, .dark p, .dark ul, .dark li{
    color:#fff;
  }

  .dark h1, .dark h2, .dark h3, .dark h4, .dark h5, .dark h6{
    color: var(--bg-light);
  }

  .dark .btn-primary,   .dark .btn-secondary{
    color:#fff;
    border-color:#fff;
  }

  .dark {
    background:black;
  }

  .dark .solid {

    color:white !important;
  }





  .dark nav {
    border:none !important;
  }


  body,
p,
ul,
li,
h1, h2, h3, h4, h5, h6,
.btn-primary,
.btn-secondary,
nav,
.solid,
#navigation,
#logo {
  transition: 
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    fill 0.3s ease;
}



/* Assicurati che il contenitore padre non tagli l'overflow se non voluto,
   ma per full-width solitamente vogliamo evitare scroll orizzontali */
   body {
    overflow-x: hidden;
}

.img-tofull {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 0; /* Un po' di spazio sopra e sotto */
}

.fill-wrapper {
    /* STATO INIZIALE: Non full width */
    width: 80%; 
    height: 700px; /* O l'altezza che preferisci */ /* Arrotondato all'inizio */
    overflow: hidden;
    position: relative;
}


@media screen and (max-width:991px){
    
.fill-wrapper {
 width:100% !important;   
 height:400px !important;
}

.img-tofull {
    padding: 0 !important; 
    margin: 20px !important;
    height:auto !important;
}

#sampa-oggi .container{
    text-align:left !important;
}

}






/* OVERLAY */
#overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease;
  z-index: 99998;
}

#overlay.active {
  opacity: 1;
  visibility: visible;
}

/* DRAWER */
#drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 720px;
  max-width: 60vw;
  height: calc(var(--vh) * 100);
  padding: 40px;
  background: #fff;
  box-shadow: -4px 0 30px rgba(0,0,0,0.2);
  transform: translateX(100%);
  transition: transform .35s ease;
  z-index: 99999;

  display: flex;
  flex-direction: column;
  overflow: hidden; 
}


body.admin-bar #drawer {
    top:32px;
    height: calc(100vh - 32px);
}

.drawer-close {
background: transparent;
font-size: 16px;
border: 1px solid #ddd;
padding:10px;
transition: 0.2s background color border;
}

.drawer-close:hover {
    background: var(--bg-dark);
    color:#fff;
    border:1px solid var(--bg-dark);
}

#drawer-content {
  flex: 1;            /* ← prende lo spazio rimanente */
  overflow-y: auto;   /* ← SCROLL QUI */
  min-height: 0;      /* ← FONDAMENTALE */
  overscroll-behavior: contain; /* ← CHIAVE ASSOLUTA */
  max-height: calc(100vh - 40px);
}


/* APERTO */
#drawer.active {
  transform: translateX(0);
}

.drawer-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .drawer-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}


.drawer-gallery-item {
height: 260px;
overflow: hidden;
width: 100%;
margin: 0;
background: #f0f0f0;
}

.drawer-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}




/* LAPTOP */
@media (max-width: 1280px) {
  #drawer {
    width: 65vw;
    max-width: 65vw;
  }
}

/* TABLET */
@media (max-width: 1024px) {
  #drawer {
    width: 80vw;
    max-width: 80vw;
  }
}

/* MOBILE */
@media (max-width: 768px) {
  #drawer {
    width: calc(100vw - 80px);
    max-width: calc(100vw - 80px);
  }
}







.section-title {
  font-size: 4rem;
  margin-bottom: 80px;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 80px 60px;
}

.case-card {
  position: relative;
  height: 420px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}

.case-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1);
  transition: transform 0.6s ease;
}

.case-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.5) 30%,
    rgba(0, 0, 0, 0.2) 55%,
    rgba(0, 0, 0, 0) 75%
  );
  opacity: 0.8;
}

.case-content {
  position: absolute;
  bottom: 32px;
  left: 32px;
  z-index: 2;
}

.case-tag {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  opacity: 0.7;
  margin-bottom: 8px;
  color:white;
}

.case-title {
  font-size: 2rem;
  margin: 0;
  color:white;
}

/* Hover */
.case-card:hover .case-media {
  transform: scale(1.1);
}

.cases-column {
  display: flex;
  flex-direction: column;
  gap: 120px;
}

/* offset visivo iniziale */
.column-right {
  margin-top: 160px;
}


  /* =========================================================
   SINGLE POST
========================================================= */

.post-hero {
  position: relative;
  width: calc(100% - 40px);
  min-height: 30vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  color: #fff;
text-align:center !important;
overflow:hidden;
}

.post-hero .overlay {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

.posthero-content {
  position: relative;
  z-index: 2;
color:white !important;
}

.post-title {
    color:white !important;
}

.post-meta {
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  opacity: 0.9;
  border-top: 1px solid rgba(255,255,255,0.5);
  padding-top: 0.8rem;
    color:white !important;
}

.post-meta .sep {
  margin: 0 6px;
  opacity: 0.6;
    color:white !important;
}




/* RESPONSIVE */
@media (max-width: 768px) {
  .post-title {
    font-size: 1.8rem;
  }
    
    .post-hero {
        min-height:50vh;
    }
    
    
  .hero-content {
    padding: 3rem 1rem 2rem;
  }
}



  /* =========================================================
   BLOG ARCHIVE
========================================================= */


.archive-header {
  margin: 0 auto 3rem;
}

.archive-title {
  margin-bottom: 1rem;
}

.archive-intro {
  color: #555;
  font-size: 1rem;
  line-height: 1.6;
  margin-top: 1rem;
}

/* GRID */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2.5rem;
}

.archive-item {
  text-align: left;
}

.archive-thumb {
  display: block;
  aspect-ratio: 4/3;
  background: #f0f0f0;
  overflow: hidden;
}

.archive-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.archive-thumb:hover img {
  transform: scale(1.05);
}

.thumb-placeholder {
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    45deg,
    #ddd,
    #ddd 10px,
    #ccc 10px,
    #ccc 20px
  );
}

/* META */
.archive-meta {
  color: #999;
  font-size: 0.85rem;
  text-transform: uppercase;
  margin: 0.8rem 0;
}

.cat-name {
  color: #666;
  font-weight: 500;
}

.sep {
  color: #ccc;
  margin: 0 4px;
}

/* TITOLI ED ESTRATTI */
.archive-item-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.archive-item-title a {
  text-decoration: none;
  color: #111;
}

.archive-item-title a:hover {
  color: #0073aa;
}

.archive-excerpt {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* PAGINAZIONE */
.pagination {
  text-align: center;
  margin-top: 3rem;
}

.pagination a,
.pagination span {
  display: inline-block;
  margin: 0 4px;
  padding: 6px 12px;
  border: 1px solid #ddd;
  text-decoration: none;
  color: #0073aa;
  border-radius: 4px;
}

.pagination a:hover,
.pagination .current {
  background: #0073aa;
  color: #fff;
  border-color: #0073aa;
}



.card-content {
position: absolute;
bottom: 0;
padding: 40px;
width: 70%;
z-index:9;
}

.card-prodotto {
overflow: hidden;
position: relative;
}


  .card-prodotto::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;

  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.5) 30%,
    rgba(0, 0, 0, 0.2) 55%,
    rgba(0, 0, 0, 0) 75%
  );
}


