/* Import dei font da Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=League+Spartan:wght@400;700&family=Red+Hat+Display:wght@400;700&display=swap');

:root {
  --font-heading: 'League Spartan', sans-serif;
  --font-body: 'Red Hat Display', sans-serif;

  --primary-color: #14465f;
  --secondary-color: #357a8a;
  --accent-color: #b1005e;
  --cta-color: #faf02d;


}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}
body, p, span, li, a {
  font-family: var(--font-body);
}
 
html {
  scroll-behavior: smooth;
}
button:focus,
button:hover {
    background-color: initial !important;
}

/* Stile contenitore bottone */
.c-btn {
  position: relative;
  display: inline-block;
  cursor: pointer;
  outline: none;
  border: 0;
  vertical-align: middle;
  text-decoration: none;
  background: transparent;
  padding: 0;
  font-size: 1rem; /* Puoi cambiare la grandezza generale qui */ 
  width: 225px;
  font-family: var(--font-body);
  height: auto;
  box-sizing: border-box;
}
.c-btn.big {
  width: 270px !important;
}
.c-btn a {
  color: #000 !important;
}
/* Il cerchio che si espande */
.c-btn__circle {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: relative;
  display: block;
  margin: 0;
  width: 3rem;
  height: 3rem;
  background: #000; /* Colore del cerchio/sfondo hover */
  border-radius: 1.625rem;
}

/* L'icona generica */
.c-btn__icon {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto;
  background: #fff; /* Colore icona iniziale */
}

/* La freccia specifica */
.c-btn__icon--arrow {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  left: 0.625rem;
  width: 1.125rem;
  height: 0.125rem;
  background: none;
}

/* La punta della freccia */
.c-btn__icon--arrow::before {
  position: absolute;
  content: "";
  top: -0.25rem;
  right: 0.0625rem;
  width: 0.625rem;
  height: 0.625rem;
  border-top: 0.125rem solid #fff;
  border-right: 0.125rem solid #fff;
  transform: rotate(45deg);
}

/* Il testo del bottone */
.c-btn__text {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.75rem 0;
  margin: 0 0 0 1.85rem;
  color: #282936; /* Colore testo iniziale */
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
  text-transform: uppercase;
}

/* --- Effetti Hover --- */

/* Espande il cerchio */
.c-btn:hover .c-btn__circle {
  width: 100%;
}

/* Muove la freccia e la colora */
.c-btn:hover .c-btn__icon--arrow {
  background: #fff;
  transform: translate(1rem, 0);
}

/* Cambia colore del testo */
.c-btn:hover .c-btn__text,
.c-btn:hover .c-btn__text a {
  color: #fff !important;
}

.clienti-archive-wrap {
  max-width: 1400px;
  margin: 50px auto;
  background: #f8f8f8;
  border-radius: 24px;
  box-shadow: 0 3px 30px rgba(30,11,30,0.07);
  padding: 38px 5vw;
  min-height: 60vh;
}

.clienti-masonry-grid {
  width: 100%;
  margin: 0 auto;
  column-count: 3;
  column-gap: 5px;
}

@media (max-width: 900px) {
  .clienti-masonry-grid { 
    column-count: 2; 
  }
}

@media (max-width: 600px) {
  .clienti-masonry-grid { 
    column-count: 1; 
  }
}

/* Per evitare gap su titoli */
.clienti-masonry-item { 
  break-inside: avoid; 
  margin-bottom: 5px;
  border-radius: 0 !important;
  overflow: hidden;
  position: relative;
  box-shadow: 0 3px 20px rgba(30,11,30,0.10);
  background: #fff;
}

.clienti-masonry-link {
  position: relative;
  display: block;
  overflow: hidden;
  cursor: pointer;
}

.clienti-masonry-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(.25,.8,.25,1), filter 0.4s cubic-bezier(.25,.8,.25,1);
}

/* Overlay scuro */
.clienti-masonry-link::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 10;
}

.clienti-masonry-link:hover::after,
.clienti-masonry-link:focus::after {
  opacity: 1;
}

.clienti-masonry-title {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: transparent;
  color: #fff;
  opacity: 0;
  transition: opacity 0.4s ease;
  font-size: 16px;
  letter-spacing: 1px;
  font-weight: 300;
  text-transform: uppercase;
  font-family: var(--font-heading);
  text-align: center;
  z-index: 20;
  pointer-events: none;
  width: 90%;
  padding: 0 10px;
}

.clienti-masonry-link:hover .clienti-masonry-title,
.clienti-masonry-link:focus .clienti-masonry-title {
  opacity: 1;
}

.clienti-masonry-link:hover .clienti-masonry-img {
  transform: scale(1.07);
  filter: brightness(0.85);
}


/*Form di contatto*/
.wpcf7 .cf7-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.wpcf7 .cf7-col.cf7-full {
  grid-column: 1 / -1;
}

.wpcf7 input:not([type=checkbox]),
.wpcf7 textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #dedede;
  border-radius: 6px;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.wpcf7-list-item {
  margin: 0 !important;
}
.custom-newsletter-form .wpcf7-list-item-label {
  color: #f5f5f5 !important; 
  font-weight: 300 !important;
}
.custom-newsletter-form .wpcf7-list-item-label * {
  color: #f5f5f5 !important;
  text-decoration: underline;
  font-weight: 300 !important;
}
.wpcf7 input:focus,
.wpcf7 textarea:focus {
  border-color: #000;
  outline: none;
  box-shadow: 0 0 0 2px rgba(0,136,204,0.12);
}

.wpcf7 .wpcf7-submit {
  background: #000;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 12px 26px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.2s, transform 0.1s;
}

.wpcf7 .wpcf7-submit:hover {
  background: #000;
  transform: translateY(-1px);
}

/* Mobile: stack a una colonna */
@media (max-width: 600px) {
  .wpcf7 .cf7-grid {
    grid-template-columns: 1fr;
  }
}

.boxServiceHover { 
  transition: color 0.3s ease-in-out;  
}
.boxServiceHover:hover svg {
  fill: #fff !important;
}
.boxServiceHover  a {
  position: relative;
}
.boxServiceHover  a::before {  
  transition: all .45s ease-in-out;
}
.boxServiceHover:hover  a::before {
  position: absolute;
  width: 40px;
  left: 0 !important;
  bottom: -5px;
  content: "";
  background-color: #fff;
  height: 2px; 
}

/* Creazione del livello colorato nascosto */
.boxServiceHover::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0; /* Parte dal basso */
  width: 100%;
  height: 0%; /* All'inizio è invisibile (altezza 0) */
  background-color: #000;   
  z-index: 1;   
  transition: height 0.3s ease-in-out; 
}

/* Effetti all'Hover */
.boxServiceHover:hover * {
  color: #fff !important; /* Il testo diventa bianco */
}

.boxServiceHover:hover::before {
  height: 100%; /* Il livello colorato riempie tutto il box */
}

/* --- Stile del Cursore --- */
.typing-effect { 
    color: var(--cta-color); /* Colore del testo */
    white-space: pre-wrap; /* Mantiene gli spazi se necessari */
}

/* Il cursore lampeggiante */
.typing-effect::after {
    content: "|";
    display: inline-block;
    margin-left: 2px;
    color: var(--cta-color); /* Colore del cursore - Cambialo come vuoi */
    animation: blink-cursor 0.7s step-end infinite;
}

@keyframes blink-cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.colonnaStiky {
    position: -webkit-sticky !important; /* safari */
    position: sticky !important;
    top: 50px !important;
    align-self: flex-start !important; /* fondamentale */
    height: auto !important;
    z-index: 10;
}

/* opzionale: per evitare che rimanga appiccicata su mobile */
@media (max-width: 767px) {
    .colonnaStiky {
        position: relative !important;
        top: 0;
    }
}


/*Articolo blog*/
/* reset per l'immagine a tutta larghezza */
.article-custom-layout {
    position: relative;
    background-color: #f9f9f9; /* colore di sfondo delicato come nel sito */
}

.article-hero-image img {
    width: 100%;
    height: 60vh; /* regola l'altezza dell'immagine */
    object-fit: cover;
    display: block;
}

/* il contenitore che sale sopra l'immagine */
.article-wrapper {
    max-width: 1080px; /* larghezza del contenuto */
    margin: -100px auto 0; /* il valore negativo crea l'effetto sovrapposto */
    background: #ffffff;
    padding: 60px 80px;
    position: relative;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); /* ombra leggera */
}

/* stile del titolo */
.entry-title {
    font-family: serif; /* o il font del tuo brand */
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
}
.article-wrapper h1.entry-title {
  font-size: 50px;
  font-weight: 300 !important;
}
.contneuto-articolo hr {
  background-color: #fff;
  padding: 0;
  margin: 80px;
}

hr.hr-1 {
  border: 0;
  height: 1px;
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
}

/* responsive per mobile */
@media (max-width: 768px) {
    .article-wrapper {
        margin: -50px 20px 0;
        padding: 30px 20px;
    }
    .entry-title {
        font-size: 1.8rem;
    }
}

/* sezione suggeriti a tutta larghezza */
.related-posts-section {
    background-color: #f4f4f4; /* grigino come richiesto */
    padding: 80px 0;
    margin-top: 80px;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.container-related {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.related-title {
    font-family: serif;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 50px;
    font-weight: 300;
}

/* stile card suggeriti */
.related-card {
    text-decoration: none;
    color: #333;
    display: block;
    transition: opacity 0.3s ease;
}

.related-card:hover {
    opacity: 0.8;
}

.related-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    margin-bottom: 15px;
}

.related-card h4 {
    font-size: 16px;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 1px;
    line-height: 1.4;
}

/* bottoni social minimal */
.share-buttons a {
    text-decoration: none;
    color: #000;
    font-weight: bold;
    margin: 0 10px;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

/*Archivio Blog*/
/* struttura generale archive */
.archive-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

.archive-title {
    font-family: serif;
    text-transform: uppercase;
    letter-spacing: 5px;
    font-weight: 300;
    margin-bottom: 60px;
    font-size: 3rem;
}

/* layout riga articolo */
.archive-post-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 30px; /* togliamo margini tra le righe per farle combaciare */
}

.post-column {
    flex: 0 0 50%;
    width: 50%;
}

/* immagine e contenuto */
.image-column img {
    width: 100%;
    height: 450px; /* altezza fissa come nel sito */
    object-fit: cover;
    display: block;
}

.content-column {
    background-color: #f4f1ea; /* colore panna/grigino di sfondo */
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
}

/* trucco per alternare ordine */
.post-even {
    flex-direction: row-reverse;
}

/* stile testi */
.post-category {
    display: block;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 2px;
    margin-bottom: 15px;
    color: #999;
}

.archive-post-item h2.entry-title {
    font-family: serif;
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
    line-height: 1.3;
}

.archive-post-item h2.entry-title a {
    text-decoration: none;
    color: #333;
}

.read-more-btn {
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 2px;
    border: 1px solid #ccc;
    padding: 10px 25px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

.read-more-btn:hover {
    background: #333;
    color: #fff;
}

/* mobile responsive */
@media (max-width: 768px) {
    .post-column {
        flex: 0 0 100%;
        width: 100%;
    }
    .post-even {
        flex-direction: row; /* rimuove inversione su mobile */
    }
    .content-column, .image-column img {
        height: auto;
        padding: 50px 20px;
    }
}

/* assicura che il contenitore non rompa il layout con lo stagePadding */
.owl-carousel {
    overflow: hidden;
}

.custom-slider .item img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0px; /* opzionale */
}
/* contenitore dei pulsanti */
.custom-slider .owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    pointer-events: none; /* permette di cliccare le foto sotto */
    display: flex;
    justify-content: space-between;
    z-index: 10;
}

/* stile dei singoli bottoni */
.custom-slider .owl-nav button {
    pointer-events: all; /* riattiva il click sui bottoni */
    background: transparent !important;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
    padding: 0 10px !important;
}

.custom-slider .owl-nav button:hover {
    opacity: 0.6;
}

/* dimensione e colore dell'svg */
.nav-arrow {
    width: 60px;  /* lunghezza della freccia */
    height: 40px;
    stroke: #333; /* puoi cambiare il colore qui */
}

/* nascondi i pallini se preferisci solo le frecce */
.custom-slider .owl-dots {
    margin-top: 20px;
}


.blog-grid-title {
  font-size: 20px !important;
  text-transform: capitalize !important;
}

.contneuto-articolo .wp-block-button__link.wp-element-button {
  background-color: #000;
  color: #fff !important;
  border-radius: 0 !important;
  margin-top: 15px;
  transition: all .3s ease-in-out;
  border: 1px solid #000;
}

.contneuto-articolo .wp-block-button__link.wp-element-button:hover {
  background: transparent !important;
  color: #000 !important;
}
.contneuto-articolo b, 
.contneuto-articolo strong {
  font-weight: 600 !important;
}
#newsletterFooter .wpcf7 {
  width: 100%;
}

#newsletterFooter .custom-newsletter-form {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

#newsletterFooter .custom-newsletter-form p {
  margin: 0;
  flex: 1 1 180px;
}

#newsletterFooter .custom-newsletter-form .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

#newsletterFooter .custom-newsletter-form .input-field {
  width: 100%;
  padding: 10px 14px;
  font-size: 13px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: transparent;
  color: #fff;
  outline: none;
  box-sizing: border-box;
}

#newsletterFooter .custom-newsletter-form .input-field::placeholder {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}

#newsletterFooter .custom-newsletter-form .input-field:focus {
  border-color: #fff;
}

#newsletterFooter .custom-newsletter-form .submit-btn {
  flex: 0 0 auto;
  padding: 10px 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: #fff;
  color: #000;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

#newsletterFooter .custom-newsletter-form .submit-btn:hover {
  background: #000;
  color: #fff;
  border: 1px solid #fff;
}

#newsletterFooter .wpcf7-spinner {
  display: none;
}

#newsletterFooter .wpcf7-response-output {
  margin-top: 8px;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 4px;
}

/* Responsive: colonna su mobile */
@media (max-width: 600px) {
  #newsletterFooter .custom-newsletter-form {
    flex-direction: column;
    align-items: stretch;
  }

  #newsletterFooter .custom-newsletter-form .submit-btn {
    width: 100%;
    text-align: center;
  }
  #newsletterFooter .custom-newsletter-form p {
    margin: 0;
    flex: none !important;
  }

}

.elementor-counter-number-prefix {
  font-size: 45%;
}
.elementor-counter-number-suffix {
  font-size: 45%;
  position: relative;
  bottom: -30px;
}