/*
Theme Name: Geniale Theme
Author: Luigi Giannone
Version: 1.0
*/

:root {
   /*  --font-base: "Mitr", sans-serif;*/
   --colore-sfondo: #ffffff;
   --font-base: system-ui, sans-serif;
   --font-size: 1.1em;
   --colore-font-base: #1a1919;
   --colore-link-menu: #ffffff;
   --colore-hover-link-menu: #9d9a9a;
}

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

html,body {
  font-family: var(--font-base);
  font-size: var(--font-size);
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth; 
  background-color: #d9d7d7;

}

.header-spacer {
  height: 70px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.policy{
  width: 80%;
  height: auto;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 20px;
}

.privacy-policy h1,h2 {
  text-align: center;  
}

.privacy-policy p b {
  font-size: 1.2em;  
}

.privacy-policy p  {
  line-height: 150%;;  
  margin-bottom: 15px;
}

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  width: min(92%, 760px);
  z-index: 1000;
  background: rgba(15, 23, 42, 0.96);
  color: #ffffff;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
}

.cookie-banner__content p {
  margin: 0;
  line-height: 1.5;
}

.cookie-banner__content a,
.cookie-banner__content a:visited,
.cookie-banner__content a:hover,
.cookie-banner__content a:focus {
  color: #ffd089 !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-banner__actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-banner__button {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  background: #ff8f33;
  color: #0f172a;
  font-weight: 700;
  cursor: pointer;
}

.cookie-banner__button--secondary {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

@media (max-width: 700px) {
  .cookie-banner {
    bottom: 12px;
  }

  .cookie-banner__content {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-banner__actions {
    width: 100%;
  }

  .cookie-banner__button {
    flex: 1 1 0;
  }
}


/* HEADER */

/* .custom-logo{
  width: 120px !important;
  height: auto;
} */

.header { 
  position: fixed;
  top: 0; 
  z-index: 100;
  height: 70px;
  width: 100%;
  background: #0f172a;
  color: var(--colore-link-menu) !important;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: box-shadow 0.3s ease;
}

.header.menu-open {
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}


.menu ul {
  display: flex;
  list-style: none;
  gap: 25px;
}

.menu a {
  color: var(--colore-link-menu) !important;
  text-decoration: none;
  font-weight: 500;
}

.menu li.current-menu-item > a,
.menu li.current_page_item > a {
  color: #ff8f33 !important; /* arancio evidenza */
  position: relative;
}


/* SOTTO MENU' */

/* Elemento padre */
.menu ul li {
  position: relative;
}

/* Submenu nascosto di default */
.menu ul li .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #0f172a;
  padding: 10px 0;
  min-width: 200px;
  flex-direction: column;
  gap: 0;
  z-index: 999;
}

/* Voci del submenu */
.menu ul li .sub-menu li {
  width: 100%;
}

.menu ul li .sub-menu a {
  display: block;
  padding: 10px 20px;
  color: #fff;
}

.menu ul li .sub-menu a:hover {
  color: #ff8f33 !important;
}

/* Mostra submenu al passaggio mouse */
.menu ul li:hover > .sub-menu {
  display: flex;
}

/* Evidenzia voce sottomenu attiva */
.menu .sub-menu li.current-menu-item > a,
.menu .sub-menu li.current_page_item > a {
  color: #ff8f33 !important;
  font-weight: 600;
}

/* Evidenzia anche il padre quando sei dentro una pagina figlia */
.menu li.current-menu-parent > a,
.menu li.current-menu-ancestor > a {
  color: #ff8f33 !important;
}

.menu .sub-menu li {
  padding: 0;
}

.menu .sub-menu li a {
  padding: 10px 20px;
  display: block;
}

.menu .sub-menu li:not(:last-child) a {
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
/* FINE SOTTO MENU' */

/* Barra di ricerca nel menu pubblico */
.menu .menu-search {
  display: flex;
  align-items: center;
}

.menu .menu-search .search-form {
  position: relative;
  display: flex;
  align-items: center;
  width: min(280px, 100%);
  min-width: 220px;
  height: auto;
}

.menu .menu-search .search-field {
  width: 100%;
  height: 42px;
  padding: 0 52px 0 18px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  outline: none;
  font-size: 0.95rem;
  color: #0f172a;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.menu .menu-search .search-field::placeholder {
  color: #64748b;
  font-style: normal;
}

.menu .menu-search .search-field:focus {
  border-color: #ff8f33;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 143, 51, 0.18);
  transform: translateY(-1px);
}

.menu .menu-search .search-submit {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #ff8f33;
  cursor: pointer;
  padding: 0;
  margin-bottom: 0;
  font-size: 1rem;
  line-height: 1;
  transition: color 0.25s ease, transform 0.25s ease;
}

.menu .menu-search .search-submit:hover,
.menu .menu-search .search-submit:focus-visible {
  color: #d96a12;
  transform: translateY(-50%) scale(1.08);
}

.menu .menu-search .search-submit:focus-visible {
  outline: 2px solid rgba(255, 143, 51, 0.28);
  outline-offset: 4px;
  border-radius: 4px;
}

/* ===============================
   Grid e Card dei risultati ricerca
   =============================== */
.search-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.search-card {
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    background-color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.search-card img {
    width: 100%;
    height: auto;
    display: block;
}

.search-card div {
    padding: 15px;
}

.search-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px;
}

.search-card h3 a {
    text-decoration: none;
    color: #0073aa;
    transition: color 0.3s;
}

.search-card h3 a:hover {
    color: #005177;
}

.search-card p {
    margin: 0;
    color: #555;
    font-size: 14px;
}

/* ===============================
   Hover Effect
   =============================== */
.search-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* ===============================
   Paginazione
   =============================== */
.search-pagination {
    margin-top: 30px;
    text-align: center;
}

.search-pagination a {
    text-decoration: none;
    margin: 0 5px;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    color: #0073aa;
    transition: background-color 0.3s, color 0.3s;
}

.search-pagination a:hover {
    background-color: #0073aa;
    color: #fff;
}

/* FINE RISULTATO RICERCA */


.hamburger{
  display:none;
  background:none;
  border:none;
  cursor:pointer;
  flex-direction:column;
  gap:6px;
}

.hamburger span{
  width:26px;
  height:3px;
  background:white;
  border-radius:2px;
  transition:0.3s;
}


.logo img{
    width: 60px;
    height: auto;       
}

.titolo{
  position: relative;
  top: -4px;
  color: #ffffff !important;
}

.hero {
  grid-area: hero;
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: white;
}

/* SLIDER */
.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1.2s ease, transform 6s ease;
}

.slide.active {
  opacity: 1;
  transform: scale(1);
}

/* overlay soft */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.45),
    rgba(0,0,0,.6)
  );
  z-index: 2;
}

/* HERO CONTENUTO */
.hero-content {
  position: relative;
  margin-top: -190px;
  z-index: 3;
  text-align: center;
  max-width: 1024px;
  padding: 2rem;
}

.hero-logo {
  max-width: 240px;
  height: auto; 
}

.hero h1 {
 /*  font-family: "Montserrat"; */
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-top: 0px;
}

.hero p {
  /* font-family: "Montserrat"; */
  font-size: 1.5rem;
  opacity: .9;
  margin: 1rem 0 2rem;
}


@keyframes logoFade {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-logo {
  animation: logoFade 1.2s ease-out forwards;
}

/* BOTTONI */
.btn {
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
}


.btn.primary {
  background: white;
  color: #1e40af;
}

.btn.secondary {
  border: 2px solid white;
  color: white;
}

/* CONTENUTO */
.content {
 /*  grid-area: contenuto;   */
  display: grid;
  grid-template-columns: 1fr 1fr; 
  grid-template-areas:    
    "foto testo"
    "news news"
    "servizi servizi";  
  width: 90%;    
  margin: 0 auto ;

}

/* Foto home page */
.foto{
  grid-area: foto;  
  display: flex;   
  align-items: center;
  justify-content: center;
  margin-top: 30px;
}

.foto img{   
  width: 100%;
  height: 100%;  
  object-fit:cover;  
  border-radius: 25px;  
  overflow: hidden;
}

/* Testo introduzione sito */
.testo-foto{
  grid-area: testo; 
  display: flex;   
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #f8fafc, #eef2ff);
  font-size: 1.2em;
  padding: 25px;
  border-radius: 25px; 
  text-align: justify;  
  margin-left: 10px;
  margin-top: 30px;
  /* font-family: "Montserrat";    */
  line-height: 40px;
} 

.testo-foto .logo-frontpage img{ 
  max-width: 150px;
  height: auto;  
} 


/* CARD */
.cards {
  grid-area: servizi;    
  display: grid;
  grid-template-columns: 1fr 1fr;  
  grid-template-areas:  "titolo-servizi titolo-servizi"  
                        "card card";
  align-items: center;
  align-content: center; 
  gap: 20px;
  margin-top: 30px;
  margin-bottom: 30px;    
}

.titolo-servizi{
  grid-area: titolo-servizi;
  display: flex;
  align-items: center; 
  justify-content: center;  
}
 

 .info{
  grid-area: titolo-servizi;
  display: flex;
  flex-direction: column;
  align-items: center; 
  justify-content: center;  
  padding: 10px;
}


.card { 
  position: relative;
  background: white;
  display: flex; 
  flex-direction: column;
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  transition: transform 0.5s cubic-bezier(.4,0,.2,1),
              box-shadow 0.5s cubic-bezier(.4,0,.2,1);

}

.card img {
  width: 100%;
  height: 260px;              /* altezza uniforme */
  object-fit: cover;          /* taglio elegante */
  display: block;
  transition: transform 0.8s cubic-bezier(.4,0,.2,1);
}

.card:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 60px rgba(0,0,0,0.12);
}

.card:hover img {
  transform: scale(1.08);
}
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 260px;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.35),
    rgba(255,255,255,0.05)
  );
  pointer-events: none;
}


.card h2{
  text-align: center;
}

/* FOOTER */
.footer-basic {
  /* grid-area: footer;   */ 
  background-color: #282828;
  color: #cfd0d2; 
  text-align: center;
  min-width: 100%;
  height:200px;
  padding: 20px;   
}

.footer-basic ul {
  padding: 0;
  list-style: none;
  text-align: center;
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 0;
}

.footer-basic li {
  padding: 0 10px;
}

.footer-basic ul a {
  color: inherit;
  text-decoration: none;
  opacity: 0.8;
}

.footer-basic ul a:hover {
  opacity: 1;
}

.footer-basic .social {
  text-align: center;
  padding-bottom: 25px;
}

.footer-basic .social > a {
  font-size: 24px;
  width: 40px;
  height: 40px;
  line-height: 40px;
  display: inline-block;
  text-align: center;
  border-radius: 50%;
  border: 1px solid #ccc;
  margin: 0 8px;
  color: inherit;
  opacity: 0.75;
}

.footer-basic .social > a:hover {
  opacity: 0.9;
}

.footer-basic .copyright {
  margin-top: 15px;
  text-align: center;
  font-size: 13px;
  color: #aaa;
  margin-bottom: 0;
}

.footer-basic a,
.footer-basic a:hover,
.footer-basic a:visited{
  color: #ffffff;
  text-decoration: none;

}

/* FINE FOOTER */


/* scroll news */
.news-slider{
   grid-area: news;

}
.news-slider h1{
  margin-top: 20px;
  text-align: center;
}

.news-card {  
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
    transition: transform .3s ease;
}

.news-card:hover {
    transform: translateY(-6px);
}

.news-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.news-content {
    padding: 20px;
}

.news-card a:link,
.news-card a:visited,
.news-card a:hover,
.news-card a:active {
    color: inherit;
    text-decoration: none;
}

.news-date {
    font-size: .85rem;
    color: #777;
}

.newsSwiper {
    overflow: visible;
    position: relative;
}

.swiper {
    overflow: hidden;
}

.news-header {
    position: relative;
}



.news-nav{ 
  background-color: #d36c13;  
  width: 100%;
  height: 80px;
  display: flex;
  align-items:normal;   
  justify-content:space-between; 
  margin-bottom: 5px;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}

.news-prev{       
    display: flex;
    align-items: center;   
    justify-content: center;           
    width: 56px;
    height: 56px;
    margin-top: 40px !important;
    margin-left: 60px !important;
    border-radius: 50%;
    cursor: pointer;
    margin: 5px;     
    transform: translate(-50%, -50%);
    
    /* glass effect */
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border: 1px solid rgba(255,255,255,0.35);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    transition: all .35s ease; 
}

.news-next {       
    display: flex;
    align-items: center;   
    justify-content: center;        
    width: 56px;
    height: 56px;
    margin-top: 40px !important;
    border-radius: 50%;
    cursor: pointer;
    margin: 5px;     
    transform: translate(-50%, -50%);
    
    /* glass effect */
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border: 1px solid rgba(255,255,255,0.35);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    transition: all .35s ease; 
}

.news-prev:hover,
.news-next:hover {
    background: rgba(255,255,255,0.9);
    box-shadow: 0 0 30px rgba(101, 101, 101, 0.85);
  /*   transform: scale(1.08); */
    color: #0955ee;
}

/* frecce */
.news-prev::after,
.news-next::after {
    font-size: 28px;
    font-weight: 600;
    color:#282828; 
    transition: color .3s ease;
}

.news-prev::after {
    content: '<';   
}

.news-next::after {
    content: '>';
}

/* Fine News */


/* FORM CONTATTO */
.form-wrapper{  
 /*  grid-area: contenuto;   */
 align-items: center;
 justify-content: center;
 height: 80vh;
}

.form-wrapper h2 {
  text-align: center;
}

.contact-form {
   display: flex;
   flex-direction: column;
   align-items: center;
   align-content: center;
   width: 90%;
   margin: auto;
}

.contact-form input, button {
    margin-bottom: 1rem;
}


.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #ddd;
    font-size: 16px;
}

.contact-form textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-form button {
    width: 40%;
    padding: 14px;
    border-radius: 999px;
    margin-top: 1rem;
}


.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.linea-form{
    width: 100%;
    margin: 0 auto;   
    margin-top: 5px;
    margin-bottom: 5px;
    padding: 3px;
}  

.mappa{  
  display: flex;
  align-items: center;
  justify-content: center; 
  margin-top: 20px ;
  width: 100%;
  height: 500px !important;
  z-index: 100;   
}

/* ======================
   POPUP FORM MESSAGE
   ====================== */

.form-wrapper {
 /*  grid-area: contenuto; */
  position: relative;
}

/* POPUP */
.form-popup {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  z-index: 10;

  min-width: 260px;
  max-width: 90%;

  padding: 16px 24px;
  border-radius: 14px;

  font-size: 1rem;
  font-weight: 500;
  text-align: center;

  box-shadow: 0 15px 35px rgba(0,0,0,.25);

  opacity: 0;

  animation:
    popupIn 0.4s ease forwards,
    popupOut 0.4s ease forwards 4s;
}

/* SUCCESS */
.form-popup.success {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
}

/* ENTRATA */
@keyframes popupIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-25px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

/* USCITA */
@keyframes popupOut {
  to {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px) scale(0.95);
    visibility: hidden;
  }
}


/* ARTICOLO SINGOLO  */
.container-articolo{
  width: 100%;
  max-width: 100%;
}

.container-articolo > article{
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "immagine3"
                       "titolo3"
                       "testo3"
                       "autore-data3";
  align-items: start;
  justify-content: center;
  max-width: 100%;
}

.titolo-articolo{
  grid-area: titolo3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;   
  margin-left: 5%;
  margin-right: 5%;
 
}

.titolo-articolo h3{
  font-size: 2em; 
  text-align: center;
}

.img-articolo{
  grid-area: immagine3;
  display: flex; 
  flex-direction: column;
  align-items: center;
  justify-content: center; 
  max-width: 100%;   
   margin-left: 5%;
  margin-right: 5%;
}

.img-articolo img{
  width: 100%;
  height: auto;
  margin: 20px auto;
  border-radius: 20px;
}


.testo-articolo{
  grid-area: testo3;
  display: flex;     
  flex-direction: column;
  align-items: stretch;
  margin-top: 20px;
  margin-left: 5%;
  margin-right: 5%;
  max-width: 100%;
  min-width: 0;
}

.articolo-condivisione{
  display: flex;
  justify-content: center;
  margin: 24px 5% 0;
}

.articolo-condivisione .a2a_kit{
  justify-content: center;
  text-align: center;
}

.testo-articolo p a{
  color: #0955ee;
}

.wp-block-list {
  width: 100%;
  margin-left: 0;
  padding-left: 1.5rem;
  text-align: left;
}


.wp-block-image  img{
 border-radius: 20%;
}

.has-text-align-center{
  width: 100%;
  text-align: center;
}

.has-text-align-left { 
  width: 100%; 
  text-align: left !important;   
}

.wp-block-quote{
  width: 100%;
  text-align: left;
}

.testo-articolo > *{
  max-width: 100%;
}

.testo-articolo img{
  max-width: 100%;
  height: auto;
}

.has-text-align-right{ 
  width: 100%;
  text-align: right;
}

.fa-1x{
  grid-area: autore-data3;
  display: flex;
  margin-left: 5%;      
  justify-content:flex-start 

}

/* FINE ARTICOLO */


/* ELENCO NEWS */
.elenco-articoli{  
  display: grid;
  grid-template-columns: 1fr ;   
  grid-template-areas:  "articolo";   
  margin: 20px;                                           
}

.categoria{
 /*  grid-area: categoria;  */
  display: flex;     
  align-items: center;
  justify-content: center;      
  margin-bottom: 10px;  
 
} 

.articolo{
  grid-area: articolo;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas: "immagine2"
                       "titolo2"
                       "testo2"
                       "barra-nav"; 
}
.elenco-articoli .titolo-articolo{
  grid-area: titolo2;
  color: var(--colore-font-base);
  display: flex;
  align-items: center;
  justify-content: center;
}

.elenco-articoli .titolo-articolo a{
  color: var(--colore-font-base);
  text-decoration: none;
}

.elenco-articoli .testo-articolo a{
  color: var(--colore-font-base);
  text-decoration: none;
}

.elenco-articoli .titolo-articolo a:hover,
.elenco-articoli .titolo-articolo a:visited,
.elenco-articoli .titolo-articolo a:link{
  color: var(--colore-font-base);  
  text-decoration: none;
}

.elenco-articoli .testo-articolo a:hover,
.elenco-articoli .testo-articolo a:visited,
.elenco-articoli .testo-articolo a:link{
  color: var(--colore-font-base);
  text-decoration: none;
}

.img-link-articolo{
  grid-area: immagine2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.elenco-articoli .testo-articolo{
  grid-area: testo2;  
  display: flex;
  align-items: center;
  justify-content: center;
}


.elenco-articoli .articolo a img{
  max-width: 50%;
  height: auto;
  border-radius: 10px;
}



/*********
* Pagination
*/

.barra-navigazione{
  grid-area: barra-nav;
  display: flex;
  align-items: center;
  justify-content: center; 
  margin: 40px 0;
} 

.navigation .pagination .nav-links {
    display: flex;
    gap: 8px;
}

/* Link base */
.navigation.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid #ddd;
    background-color: #ffffff;
    color: #333;
    font-weight: 500;
    transition: all 0.25s ease;
}

/* Hover */
.navigation.pagination .page-numbers:hover {
    background-color: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}

/* Pagina corrente */
.navigation.pagination .page-numbers.current {
    background-color: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
    font-weight: 600;
    cursor: default;
}

/* Next e Prev */
.navigation.pagination .page-numbers.next,
.navigation.pagination .page-numbers.prev {
    padding: 0 18px;
}

/* Responsive */
@media (max-width: 576px) {
    .navigation.pagination .nav-links {
        gap: 5px;
    }

    .navigation.pagination .page-numbers {
        min-width: 36px;
        height: 36px;
        font-size: 14px;
    }
}


/* ====================== */
.articolo-navigazione {
    margin: 50px 0;
    display: flex;   
    justify-content:space-around;   
}

.articolo-navigazione .pagination li {
  display: inline;
  list-style: none;
}


.articolo-navigazione .pagination li {
  list-style: none;
}

.articolo-navigazione .page-item a {
    display:inline-block;
    padding: 12px 18px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background-color: #fff;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
}

.articolo-navigazione .page-item a:hover {
    background-color: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}

/* Frecce stilizzate */
.articolo-navigazione .prev a::before {
    content: "<< ";
}
.articolo-navigazione .next a::after {
    content: " >>";
}
 
/* FINE ELENCO NEWS */


/* ARCHIVIO ARTICOLI */

.archivio-articoli{
  width: 100%; 
  height: auto;
}

.contenuto-articoli{  
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content:center;
  max-width: 95%;   
  gap: 10px;
  margin: 0 auto;  
}

.contenuto-articolo{
  max-width: 100%;
  height: auto; 
  border-radius: 20px;  
}

.contenuto-articolo h2{
  margin-bottom: 10px; 
   margin-top: 20px;
   margin-left: 20px;
   margin-right: 20px;
}

.contenuto-articolo a:link,
.contenuto-articolo a:visited{
   color: inherit;
   text-decoration: none; 
}

.contenuto-articolo a:hover{
  color: #f47f30; 
}


.contenuto-articolo:nth-child(odd) {
    background-color:  #ffffff;
}

.contenuto-articolo:nth-child(even) {
    background-color: #87bff7;
}

.image-post{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: auto;  
}

.image-post a img {  
  width: 100%;
  height: auto;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;   
  object-fit:cover;  
} 


.contenuto-articolo .testo{
  padding: 20px;
}


.navigation-archivio{
  width: 90%;
  height: 60px;
  text-align: center; 
}


.navigation-archivio .page-numbers {
    display: inline-block;  
    width: 40px;
    height: 40px;    
    padding: 5px 5px;       
    background: #f5f5f5;
    text-decoration: none;   
}


.navigation-archivio .page-numbers.current {
    background-color: #0e40f3 !important;
    color: #fff;
    border-radius: 50%; 
  
}

.navigation-archivio .prev.page-numbers,
.next.page-numbers{
  width: 40px;  
  height: 40px;
} 

.navigation-archivio .page-numbers:hover {
    background: #ddd;
}

.fa-lx{
  margin: 0;
}

.archivio-meta-articolo {
  display: flex;
  align-items: flex-start;
  flex-direction: column; 
  font-size: 14px;
  color: #ffffff;
  margin: 10px;  
  width: 100%;
}
.archivio-meta-articolo p{
  color: #0f172a;
  font-size: 0.8em;
  margin-bottom: 10px;
  line-height: 5px;
}

.archivio-meta-articolo a {
    color: #555;
    text-decoration: none;
}

.archivio-meta-articolo a:hover {
    text-decoration: underline;
}

/* FINE ARCHIVIO */

 /* FILTRO CONCORSI */
 .filtro-concorsi{
    text-align:center;
    margin-bottom:30px;
}

.filtro-concorsi a{
    display:inline-block;
    padding:10px 20px;    
    background:#eee;
    text-decoration:none;
    border-radius:6px;
    font-weight:600; 
    transition:0.3s;
}

.filtro-concorsi a.attivo{
    background:#1e73be;
    color:#fff;
}

.filtro-concorsi a:hover{
    background:#1e73be;
    color:#fff;
}

.scadenza{
    font-weight:600;
    color:#c0392b;
    margin:10px 0;
}



/* ================================
   RESPONSIVE BREAKPOINT
================================ */

@media (max-width: 1100px) {
    /* ======================
     RESET STRUTTURA PAGINA
     ====================== */
  
  body {
    overflow-x: hidden;
  }

  .titolo-articolo{
    padding-left: 10px;
  }

  /* ======================
     HEADER
     ====================== */

  .header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
  }

  /* ======================
     HERO
     ====================== */

  .hero {
    height: auto;
    min-height: 70vh;
  }

  .hero-content {
    margin-top: 0;
    padding: 1.5rem;
  }

  .hero-logo {
    width: 240px;
  }

  .hero h1 {
    margin-top: 0;
    font-size: 2rem;
  }

  
  /* ======================
     SEZIONE FOTO + TESTO
     ====================== */
   
     .content{
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      margin-top: 20px;
      margin-bottom: 20px;      
     }

  .foto,
  .testo-foto {    
    flex-direction: column;
    width: 100%;
    margin-top: 5px;
  }

  .foto img {
    flex-direction: column;
    height: auto;
    max-height: 320px;
    object-fit: cover;
    border-radius: 10px;
  }

  .testo-foto {
    font-size: var(--font-size);
    padding: 20px;
  }

   /* ======================
     NEWS / SWIPER (FIX)
     ====================== */

  .news-slider {
    width: 100%;
    overflow: hidden;    
  }

  .news-nav {
    display: flex;
    align-items: center;
    justify-content: space-between; 
    margin-bottom: 5px;   
  }

  .news-prev,
  .news-next {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;    
    margin-right: 20px; 
   
  }

  .news-prev::after,
  .news-next::after {
    font-size: 22px;
    line-height: 1;
    position: static;
  }

  .newsSwiper {
    width: 100%;
  }
 

  /* ======================
     CARDS SERVIZI
     ====================== */

   .cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0;
  }

  .titolo-servizi {
    margin-bottom: 10px;
  }
 
/* nasconde menu desktop */
  .hamburger {
    display: flex;
  }
  .menu {
    position: absolute;
    top: 70px; /* altezza header */
    left: 0;
    width: 100%;
    background: #0f172a;

    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease;
  }

  .menu ul {
    flex-direction: column;
    padding: 20px;
    gap: 15px;
  }

  .menu .menu-search {
    width: 100%;
  }

  .menu .menu-search .search-form {
    width: 100%;
    min-width: 0;
  }

  .menu.open {
    max-height: 300px;
  }

  /* hamburger → X */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }
}


@media (min-width: 768px){
    .clienti-container {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .cliente-card {
        flex: 1 1 calc(50% - 15px);
    }
}
@media (min-width: 1024px){
    .cliente-card {
        flex: 1 1 calc(33.33% - 15px);
    }
}



/* MOBILE */
@media (max-width: 768px) {

  /* ======================
     RESET STRUTTURA PAGINA
     ====================== */
  
  body {
    overflow-x: hidden;
  }

  .titolo-articolo{
    padding-left: 10px;
  }

  /* ======================
     HEADER
     ====================== */

  .header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
  }

  /* ======================
     HERO
     ====================== */

  .hero {
    height: auto;
    min-height: 70vh;
  }

  .hero-content {
    margin-top: 0;
    padding: 1.5rem;
  }

  .hero-logo {
    width: 240px;
  }

  .hero h1 {
    margin-top: 0;
    font-size: 2rem;
  }

  
  /* ======================
     SEZIONE FOTO + TESTO
     ====================== */
   
     .content{
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      margin-top: 20px;
      margin-bottom: 20px;      
     }

  .foto,
  .testo-foto {    
    flex-direction: column;
    width: 100%;
    margin-top: 5px;
  }

  .foto img {
    flex-direction: column;
    height: auto;
    max-height: 320px;
    object-fit: cover;
    border-radius: 10px;
  }

  .testo-foto {
    font-size: var(--font-size);
    padding: 20px;
  }

   /* ======================
     NEWS / SWIPER (FIX)
     ====================== */

  .news-slider {
    width: 100%;
    overflow: hidden;    
  }

  .news-nav {
    display: flex;
    align-items: center;
    justify-content: space-between; 
    margin-bottom: 5px;   
  }

  .news-prev,
  .news-next {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;    
    margin-right: 20px; 
   
  }

  .news-prev::after,
  .news-next::after {
    font-size: 22px;
    line-height: 1;
    position: static;
  }

  .newsSwiper {
    width: 100%;
  }
 

  /* ======================
     CARDS SERVIZI
     ====================== */

   .cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0;
  }

  .titolo-servizi {
    margin-bottom: 10px;
  }
 
/* nasconde menu desktop */
  .hamburger{
    display:flex;
  }

  .menu{
    position:absolute;
    top:70px; /* altezza header */
    left:0;
    width:100%;
    background:#0f172a;

    overflow:hidden;
    max-height:0;
    transition:max-height 0.4s ease;
  }

  .menu ul{
    flex-direction:column;
    padding:20px;
    gap:15px;
  }

  .menu .menu-search {
    width: 100%;
  }

  .menu .menu-search .search-form {
    width: 100%;
    min-width: 0;
  }

  .menu.open{
    max-height:300px;
  }

  /* hamburger → X */

  .hamburger.active span:nth-child(1){
    transform:rotate(45deg) translate(6px,6px);
  }

  .hamburger.active span:nth-child(2){
    opacity:0;
  }

  .hamburger.active span:nth-child(3){
    transform:rotate(-45deg) translate(7px,-7px);
  }

}

@media (max-width: 768px) {
  .header {
    padding: 0 20px;
  }

  .logo img {
    width: 52px;
  }

  .titolo {
    font-size: 0.95rem;
  }

  .hero-content {
    padding: 1.25rem;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .btn {
    display: inline-block;
    width: 100%;
    max-width: 280px;
    margin-bottom: 10px;
  }

  .testo-foto {
    line-height: 1.8;
    text-align: left;
  }

  .news-prev,
  .news-next {
    margin-right: 10px;
  }

  .card img {
    height: 220px;
  }

  .footer-basic {
    height: auto;
  }
}












