:root {
    --color1: #C21D1E;  
    --color2: #FFCC00;   
    --color3: #636466 ;   
    --color4: #1F1F1F ;   
    --color5: #FFFFFF;   
    --color6: #F5F5F5;   
    --border-soft: #EDEDED;
}
/* ==========================================
   DESIGN SYSTEM EFFECT: FIGMA IMAGE STYLE
   ========================================== */
:root {
  --figma-radius: 24px;
  --figma-shadow-base: 0 16px 36px rgba(0, 0, 0, 0.06);
  --figma-shadow-hover: 0 30px 60px rgba(0, 0, 0, 0.12);
  --figma-border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Applica questa classe al widget Immagine di Elementor */
.figma-effect {
  position: relative;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

/* Target dell'elemento contenitore dell'immagine */
.figma-effect .elementor-image, 
.figma-effect img {
  border-radius: var(--figma-radius) !important;
  box-shadow: var(--figma-shadow-base) !important;
  border: var(--figma-border) !important;
  transition: transform 0.5s ease, box-shadow 0.4s ease !important;
  overflow: hidden;
}

/* Comportamento al passaggio del mouse (Hover) */
.figma-effect:hover {
  transform: translateY(-6px) !important;
}

.figma-effect:hover .elementor-image,
.figma-effect:hover img {
  box-shadow: var(--figma-shadow-hover) !important;
  transform: scale(1.02) !important;
}

html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;

  }
  html,
body {
  background-color: #F5F5F5;
  margin: 0;
  animation: pageFade 0.4s ease;
  font-family: "Montserrat", sans-serif;
  font-style: normal;
  line-height: 1.5;
  overflow-x: hidden;
  max-width: 100%;
}


@keyframes pageFade {
  from { opacity: 0 }
  to { opacity: 1 }
}
/* Gerarchia Titoli Nardin Costruzioni */

h1 {
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 24px;
}

h2 {
    line-height: 1.25;
    font-weight: 700;
    margin-bottom: 20px;
}

h3 {
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 16px;
}

h4 {
    line-height: 1.35;
    font-weight: 600;
    margin-bottom: 12px;
}

h5 {
    line-height: 1.4;
    font-weight: 600;
    margin-bottom: 10px;
}

h6 {
    line-height: 1.4;
    font-weight: 600;
    text-transform: uppercase; /* Spesso usato per i micro-titoli */
    letter-spacing: 1px;
    margin-bottom: 8px;
}

/* Colore e Font unificato per tutti i titoli */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif; /* O il font che preferisci */
    color: #1F1F1F;
    margin-top: 0;
}

/* Headings */
h1 { font-size: 2.5rem; line-height: 1.2; }  /* 40px */
h2 { font-size: 2rem; line-height: 1.3; }    /* 32px */
h3 { font-size: 1.75rem; line-height: 1.3; } /* 28px */
h4 { font-size: 1.5rem; line-height: 1.4; }  /* 24px */
h5 { font-size: 1.25rem; line-height: 1.4; } /* 20px */
h6 { font-size: 1rem; line-height: 1.5; }    /* 16px */

/* Paragraphs */
p {
  font-size: 1rem; 
  line-height: 1.5; 
  margin-bottom: 1em;
}

/* Buttons and small text */
button, .btn {
  font-size: 1rem; 
}
small {
  font-size: 0.875rem; /* 14px */
}

/* Responsive scaling */
@media (max-width: 1024px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
  h3 { font-size: 1.6rem; }
  h4 { font-size: 1.4rem; }
}

@media (max-width: 768px) {
  html { font-size: 15px; } /* Slightly smaller base font for mobile */
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.4rem; }
  .navbar-brand img,
.custom-logo {
    max-height: none;
    width: 250px;
}
}
h1,h2,h3,h4,h5,h6{
   font-family: "Montserrat", sans-serif;
  font-style: normal;
}

  .zarosis-card {
    background-color:var(--color5);
     border: 1px solid var(--border-soft);
    border-radius: 20px !important;
    margin: 5px;
   padding: 35px;
    box-shadow: 0 4px 12px #d8d6d614;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
  }
  
  .zarosis-card:hover {
    box-shadow: 0 8px 20px #0000001F;
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(0,0,0,0.06);
        border-color:var(--color1);
    }
  
  

.bg-color1{
    background-color: var(--color1);
}
.bg-color2{
    background-color: var(--color2);
}
.bg-color3{
    background-color: var(--color3);
}
.bg-color4{
    background-color: var(--color4);
}
.bg-color5, .footer-bg{
    background-color: var(--color5);
}

/* FIX: la .row Bootstrap dentro il footer (che ha p-0) porta i margini
   negativi di default e sporge di ~11px oltre il bordo su schermi stretti */
.footer-bg .row {
    margin-left: 0;
    margin-right: 0;
}



.color1{
    color: var(--color1);
}
.color2{
    color: var(--color2);
}
.color3{
    color: var(--color3);
}
.color4{
    color: var(--color4);
}
.color5{
    color: var(--color5);
}

/* =========================
   NAVBAR
========================= */
.custom-navbar {
    background-color: var(--color5);
    position: sticky !important;
    top: 0;
    z-index: 999;
    height:120px;
    margin-bottom: 1px !important;
    letter-spacing: 1px;
    cursor: pointer;
}

.normal-link,
.normal-link:active,
.normal-link:focus,
.normal-link:hover{
    text-decoration: none;

}
.footer-normal-link,
.footer-normal-link:active,
.footer-normal-link:focus,
.footer-normal-link:hover{
    color:var(--color5);
    text-decoration: none;
    
}


/* =========================
   LOGO
========================= */
.navbar-brand img,
.custom-logo {
    max-height: none;
    width: 250px;
}
/* =========================
   MENU LINKS (STATO BASE)
========================= */
.navbar-nav .nav-link {
    position: relative;
    color: var(--color1);
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    padding: 12px 18px;
    transition: color 0.3s ease;
    font-size: 18px;
}


.navbar-nav .nav-link:hover {
    color: var(--color4);
}

/* =========================
   STATO ATTIVO (SOLO COLORE, NO LINEA)
========================= */
/* Se vuoi che la pagina corrente resti colorata ma senza linea */
.navbar-nav .nav-link.active,
.navbar-nav .nav-link.js-active {
    color: var(--color4) !important;
}

/* Rimuoviamo esplicitamente la linea dagli stati active se presente */
.navbar-nav .nav-link.active::after,
.navbar-nav .nav-link.js-active::after {
    display: none; 
}

/* =========================
   DROPDOWN
========================= */
.dropdown-menu {
  background-color: var(--color5) !important; 
  padding: 0px 20px;
  border: none;
}



/* HOVER STATE */
.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
    color: #ffffff;
    background-color: var(--color4); /* optional highlight */
}

/* Remove Bootstrap's default right-side caret */
.navbar-nav .dropdown-toggle::after {
    display: none;
}

/* ADD custom arrow BEFORE text (all devices) */
.navbar-nav .dropdown-toggle::before {
    content: "▾";
    font-size: 18px;
    margin-right: 8px;
    display: inline-block;
    transition: transform 0.3s ease;
}


.justify-my-text{
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}
/* Desktop hover dropdown */
@media (min-width: 992px) {
    .dropdown:hover > .dropdown-menu {
      background-color: var(--color1);
        display: block;
    }
}

/* =========================
   MOBILE STYLES
========================= */
@media (max-width: 991px) {

    /* Logo smaller */
    .navbar-brand img,
    .custom-logo {
        max-height: 60px;
        margin: 10px 0;
    }

    /* Logo left */
    .navbar-brand {
        margin-left: 0;
        margin-right: auto;
        text-align: left;
    }

    /* Hamburger right */
    .navbar-toggler {
        margin-left: auto;
        border: none;
        background: transparent;
        padding: 4px 6px;
        cursor: pointer;
  }

  .hamburger .bar {
      display: block;
      width: 30px;
      height: 3px;
      background-color: var(--color1);
      margin: 6px 0;
      border-radius: 2px;
      transition: background-color 0.3s ease;
  }

    /* Menu text left */
    .navbar-collapse {
        text-align: left;
    }
    .navbar-nav .nav-link::after {
        display: none !important;
    }
    .custom-navbar {
        height:auto;
    }
   
}
a:hover{
    color:var(--color2);
}

.footer-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* align items to start vertically */
  align-items: flex-start;     /* align items to start horizontally (left) */
  padding-left: 0;             /* remove default padding */
  text-align: left;            /* ensure text is left-aligned */
}

/* Heading before the menu */
.footer-menu::before {
  content: "Link Importanti";
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 20px;
  color: var(--color4);
  text-align: left;  /* force heading left */
}

/* List items */
.footer-menu li {
  list-style: none;   /* remove bullets */
  margin: 10px 0;
  padding-left: 0;    /* remove any padding from theme */
}

/* Links */
.footer-menu a {
  text-decoration: none; /* remove underline */
  color: var(--color4);
  display: block;        /* ensures it takes full width */
  font-size: 15px;
  margin-left: 0;        /* remove any indent */
  transition: color 0.3s ease;
  text-align: left;      /* force link text left */
}

.footer-menu a:hover {
  color: var(--color1);
}

  .a-btn-link-contact-details{
    font-family: "Montserrat", sans-serif;
    font-size:1.2rem;
    text-decoration: none;
    padding: 10px;
    color: var(--color5);
    background-color: var(--color2);
    border-radius: 10px;
    transition: 0.3s ease;
    }
.a-btn-link-contact-details:hover{
    color: var(--color1);
    background-color: var(--color5);
    border-radius: 10px;
  
    }
    .footer-website-design,
    .footer-website-design:active,
    .footer-website-design:focus
    {
        color:var(--color4);
transition: 1s ease;
text-decoration: none;
font-weight: 600;
    }
    .footer-website-design:hover{
        transition: 0.3s ease;
        text-decoration: none;
        font-weight: 600;
        color:var(--color1);
            }

            .material-icons {
              font-size: 20px;  /* change size */
              vertical-align: middle;
              color: var(--color4);
          }
          
/* Cookie Banner Styling */
.cookie-banner {
    position: fixed;
    bottom: -200px; /* Hidden below the viewport initially */
    left: 50%;
    transform: translateX(-50%); /* Center the banner */
    width: 80%; /* Adjust the width as needed */
    max-width: 400px; /* Maximum width for larger screens */
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 15px;
    border-radius: 10px; /* Rounded corners for the square window */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Shadow effect */
    transition: bottom 0.5s ease; /* Smooth transition for sliding */
    display: none; /* Initially hide the banner */
    z-index: 9999;
  }
  /* Button Styles */
  .cookie-banner button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 15px;
    margin-left: 10px;
    cursor: pointer;
    border-radius: 3px;
  }
  /* Styling for the Reject button */
  .cookie-banner button:last-of-type {
    background-color: #f44336; /* Red color for Reject */
  }
  .cookies-learn-more{
    color:whitesmoke;
    text-decoration: none;
  }
  .cookies-learn-more:hover{
    color:whitesmoke;
    text-decoration:underline;
  }
 
  /* socail media icons*/
.fa {
    padding: 10px;
    font-size: 30px;
    width: 70px;
    text-align: center;
    text-decoration: none;
    margin: 5px 2px;
    opacity: 1;
    color: var(--color4);
    transition: 0.5s ease-in-out;
   }
  .fa:active, .fa:focus, .fa:visited{
    color: var(--color2);
  }
  
   /* Add a hover effect if you want */
   .fa:hover{
    opacity: 1;
    color: var(--color5);
    background-color: var(--color1);
  }
  .whatsapp-button {
    position: fixed;
    bottom: 10px;
    left: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--color1);
    color: var(--color5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
  }
  

  #goTopBtn {
    position: fixed;
    bottom: 80px;
    right: 20px; /* LEFT SIDE */
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background-color: var(--color1);
    color: var(--color5);
    font-size: 20px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 0.3s ease, transform 0.3s ease;
    
  }
  
  #goTopBtn:hover {
    transform: scale(1.1);
  }


.container-page-not-found{
  display: grid;
  width: 100%;
  grid-template-columns: 1fr;
  gap: 50px;
  margin-top: 40px;
  padding:20px 0;
  background-color: var(--color5);
  border-radius:10px;transform: translateY(12px);
  animation: productFadeUp 1.45s ease forwards;
  transition: transform 0.3s ease, box-shadow 0.3s ease;

}
/*contact form */
input.wpcf7-submit {
  background-color: var(--color1);
  color: var(--color5);
  border: 1px solid var(--color1);
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* hover */
.wpcf7-submit:hover {
  background-color: transparent;
  color: var(--color1);
  border-color: var(--color1);
  transform: translateY(-1px);
}

/* active (click) */
.wpcf7-submit:active {
  transform: translateY(1px);
  background-color: var(--color1);
  color: var(--color5);
}

/* focus (accessibilità tastiera) */
.wpcf7-submit:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.15);
}

/* disabled (invio in corso) */
.wpcf7-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* =========================================================
   FIX: sezione Elementor vuota in home (elementor-element-1b441ed)
   Container con min-height:50vh senza alcun contenuto reale:
   creava un vuoto grigio di ~metà schermo tra "Processo di lavoro"
   e "Perché scegliere Nardin Costruzioni".
========================================================= */
.elementor-element-1b441ed {
    display: none !important;
}

/* =========================================================
   FIX: overflow orizzontale della hero su mobile
   La riga testo+immagine (elementor-element-53f0b6c) non aveva
   una direzione "column" per il breakpoint mobile: su schermi
   stretti il testo veniva tagliato a destra invece di andare a capo.
========================================================= */
@media (max-width: 767px) {
    .elementor-element-53f0b6c {
        --flex-direction: column !important;
    }
}

/* =========================================================
   DESIGN POLISH — Immagini di contenuto
   Applica il linguaggio visivo "figma-effect" già definito
   (angoli morbidi, ombra soffusa, lieve sollevamento al hover)
   a tutte le foto reali del sito, per una resa più premium.
========================================================= */
.elementor-widget-image img,
.entry-content .wp-block-image img {
    border-radius: var(--figma-radius);
    box-shadow: var(--figma-shadow-base);
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}

.elementor-widget-image:hover img,
.entry-content .wp-block-image:hover img {
    transform: translateY(-4px);
    box-shadow: var(--figma-shadow-hover);
}

/* =========================================================
   DESIGN POLISH — Bottoni Elementor
   Coerenza con l'hover-lift già usato su .wpcf7-submit:
   angoli più morbidi, ombra leggera, sollevamento al passaggio
   del mouse su tutte le call-to-action del sito.
========================================================= */
/* NB: niente text-transform/letter-spacing qui. Sul sito i bottoni Elementor
   condividono tutti le stesse classi sia per le call-to-action brevi
   ("Scopri di più") sia per i link che mostrano per esteso un numero di
   telefono o un indirizzo email (es. "Emanuele Nardin +39 339 143 5958") —
   non c'è un selettore CSS sicuro per trattarli in modo diverso, quindi
   si resta su un trattamento neutro che funziona bene in entrambi i casi. */
.elementor-button {
    border-radius: 8px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.elementor-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}

/* =========================================================
   DESIGN SYSTEM — "Precisione Architettonica"
   Direzione estetica: linguaggio da disegno tecnico/rilievo di
   cantiere (griglia blueprint, mirini d'angolo, etichette in
   monospace) sovrapposto all'identità cromatica del brand
   (rosso / giallo / antracite) già in uso nel sito.
========================================================= */
:root {
    --tech-font: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
    --grid-line: rgba(255, 255, 255, 0.09);
}

/* Griglia tecnica + grana sottile, iniettata una sola volta come layer
   fisso a livello di pagina (vedi header.php). Il blend "overlay" la
   rende pressoché invisibile sui fondi chiari e la fa emergere appena
   su quelli scuri: nessun targeting per-sezione necessario, funziona
   automaticamente su tutte le pagine del sito. */
.site-texture-grid-old {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    mix-blend-mode: overlay;
    opacity: 0.6;
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    background-size: 46px 46px, 46px 46px, 160px 160px;
}

/* Numeri delle statistiche e fasi del "Processo di lavoro": trattamento
   monospace maiuscolo, come un'annotazione su un disegno tecnico. */
.elementor-icon-box-title {
    letter-spacing: 0.02em;
}

.elementor-icon-box-title::first-line {
    font-family: var(--tech-font);
    letter-spacing: 0.05em;
}

/* Le icone "a vista" (statistiche, fasi di lavoro) diventano piccoli
   strumenti da cantiere: un anello sottile che si accende al passaggio
   del mouse sull'intera card dell'icona. */
.elementor-view-default .elementor-icon-box-icon .elementor-icon {
    border: 1.5px solid rgba(255, 255, 255, 0.32);
    border-radius: 50%;
    padding: 12px;
    box-sizing: content-box;
    transition: border-color 0.35s ease, transform 0.35s ease;
}

.elementor-icon-box-wrapper:hover .elementor-icon-box-icon .elementor-icon {
    border-color: var(--color2);
    transform: translateY(-3px);
}

/* Mirini d'angolo — motivo firma ispirato ai rilievi di cantiere: compaiono
   in overlay sulle card di servizio al passaggio del mouse, a incorniciare
   il contenuto come un elemento "selezionato" su una tavola tecnica. */
.zarosis-card {
    position: relative;
}

.zarosis-card::after {
    content: "";
    position: absolute;
    inset: 10px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s ease, inset 0.35s ease;
    background-repeat: no-repeat;
    background-image:
        linear-gradient(to right, var(--color1) 2px, transparent 2px),
        linear-gradient(to bottom, var(--color1) 2px, transparent 2px),
        linear-gradient(to left, var(--color1) 2px, transparent 2px),
        linear-gradient(to bottom, var(--color1) 2px, transparent 2px),
        linear-gradient(to right, var(--color1) 2px, transparent 2px),
        linear-gradient(to top, var(--color1) 2px, transparent 2px),
        linear-gradient(to left, var(--color1) 2px, transparent 2px),
        linear-gradient(to top, var(--color1) 2px, transparent 2px);
    background-size:
        16px 2px, 2px 16px, 16px 2px, 2px 16px,
        16px 2px, 2px 16px, 16px 2px, 2px 16px;
    background-position:
        top left, top left, top right, top right,
        bottom right, bottom right, bottom left, bottom left;
}

.zarosis-card:hover::after {
    opacity: 1;
    inset: 14px;
}

/* Marcatore a rombo prima dei titoli di sezione: piccolo richiamo
   ricorrente al linguaggio delle quote/rilievi di cantiere. */
h2::before {
    content: "";
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: 12px;
    margin-bottom: 2px;
    background: var(--color1);
    transform: rotate(45deg);
    vertical-align: middle;
}