:root {
  --blue: #0b3c78;
  --orange: #ffb300;
  --light: #f5f7fa;
  --dark: #222;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Open Sans', sans-serif;
  background: var(--light);
  color: var(--dark);
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}


a:link, a:active, a:visited {color:#ba6923; text-decoration:none}
a:hover {color:#ba6923; text-decoration:underline}


/* HEADER */
.site-header {
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100px;
  background: #ffffff;
  border-bottom: 1px solid #eeeeee;
  z-index:100;
}

.header-flex {
  display: flex;
  height:100%;
  justify-content: space-between;
  align-items: center;
  padding:0;
}

.logo {
  position:relative;
  width:100px;
  height:70px;
  background-repeat:no-repeat;
  background-size:cover;
  background-position:left center;
  background-image:url(../../image/logo2.png);
  cursor:pointer;
}

.main-nav a {
  margin-left: 20px;
  text-decoration: none;
  color: var(--dark);
  font-weight: 600;
}

/* HERO */
.hero-blog {
  position:relative;
  margin-top:100px;
  background: linear-gradient(120deg, var(--blue), #1565c0);
  color: #fff;
  padding: 60px 0;
}

.hero-blog h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
}

.hero-blog p {
  margin-top: 10px;
  max-width: 600px;
}

/* LAYOUT */
.blog-layout {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 40px;
  margin: 50px auto;
}

/* POST */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  margin-bottom: 50px;
}

.post-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
  transition: transform .3s;
  cursor:pointer;
}

.post-card:hover {
  transform: translateY(-5px);
}

.post-card img {
  width: 100%;
  display: block;
}

.post-body {
  padding: 20px;
}

.post-body h3 {
  font-family: 'Montserrat', sans-serif;
  margin: 10px 0;
}

.category {
  font-size: .75rem;
  padding: 4px 10px;
  background: var(--blue);
  color: #fff;
  border-radius: 20px;
}

/* CATEGORIE */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
}

.cat {
  padding: 20px;
  border-radius: 12px;
  color: #fff;
  font-weight: 600;
  text-align: center;
}

.cat:hover {
  box-shadow:#808080 3px 3px 5px;
  cursor:pointer;
}


/* SIDEBAR */
.sidebar .widget {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 25px;
  box-shadow: 0 6px 15px rgba(0,0,0,.06);
}

.widget input {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.widget ul {
  padding-left:20px;
}

.widget li {
  margin-bottom: 15px;
}

.widget.cta {
  background: var(--blue);
  color: #fff;
  text-align: center;
}

.widget.cta a {
  display: inline-block;
  margin-top: 15px;
  background: var(--orange);
  color: #000;
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
}

/* FOOTER */
.site-footer {
  background: #0a1f44;
  color: #fff;
  padding: 30px 0;
  text-align: center;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }

  .hero-blog h1 {
    font-size: 2rem;
  }
}



/* OVERLAY */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 60, 120, 0.85);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  transition: opacity .4s ease;
  z-index: 9999;
}


/* CONTENUTO */
.overlay-content {
  background: #fff;
  width: 90%;
  max-width: 480px;
  padding: 35px;
  border-radius: 18px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,.3);
  animation: scaleIn .4s ease;
}

@keyframes scaleIn {
  from {
    transform: scale(.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* CHIUDI */
.close-overlay:link,
.close-overlay:active,
.close-overlay:visited {
  position: absolute;
  top: 15px;
  right: 18px;
  font-size: 28px;
  text-decoration: none;
  color: #999;
}

.close-overlay:hover {
  color: #000;
}

/* TESTI */
.overlay-content h2 {
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 10px;
  color: var(--blue);
}

.overlay-content p {
  margin-bottom: 25px;
  font-size: .95rem;
}

/* FORM */
.contact-form .form-group {
  margin-bottom: 15px;
}

.contact-form label {
  display: block;
  font-size: .85rem;
  margin-bottom: 5px;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #dddddd;
  font-family: inherit;
  font-size: .95rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
}

/* BOTTONE */
.contact-form button {
  margin-top: 10px;
  width: 100%;
  padding: 14px;
  background: var(--orange);
  border: none;
  border-radius: 30px;
  font-weight: 700;
  cursor: pointer;
  font-size: 1rem;
}

.contact-form button:hover {
  opacity: .9;
}

/* MOBILE */
@media (max-width: 500px) {
  .overlay-content {
    padding: 25px;
  }

  .contact-form .form-group {
    margin-bottom: 8px;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 4px 6px;
  }
}








/* HERO SPECIFICO CATEGORIA */
.category-hero {
  background: linear-gradient(120deg, #002F5F, #1565c0);
  color: #fff;
  text-align: center;
  padding: 60px 0;
}

.category-hero h1 {
  font-size: 2.5rem;
  font-family: 'Montserrat', sans-serif;
}

.category-hero p {
  margin-top: 10px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.1rem;
}

/* LINK LEGGI DI PIŁ */
.read-more:link,
.read-more:active,
.read-more:visited {
  display: inline-block;
  margin-top: 10px;
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.read-more:hover {
  text-decoration: underline;
}






/* HERO SPECIFICO ARTICOLO */
.article-hero {
  background: linear-gradient(120deg, #002F5F, #1565c0);
  color: #fff;
  text-align: center;
  padding: 60px 0;
}

.article-hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
}

.article-hero p {
  margin-top: 10px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.1rem;
}

/* BREADCRUMB */
.breadcrumb {
  margin-top: 15px;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: #fff;
  text-decoration: underline;
}

.breadcrumb span {
  color: #eee;
}

/* SINGOLO ARTICOLO */
.single-article-content .featured-img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 25px;
}

.single-article-content h2 {
  font-family: 'Montserrat', sans-serif;
  margin-top: 25px;
  margin-bottom: 10px;
  color: var(--blue);
}

.single-article-content p,
.single-article-content ul {
  margin-bottom: 15px;
  font-size: 1rem;
}

/* LISTE */
.single-article-content ul {
  padding-left: 20px;
}

.single-article-content li {
  margin-bottom: 8px;
}

/* SHARE SOCIAL */
.share-social {
  margin-top: 30px;
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 600;
}

.share-social .social-btn {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
}

.share-social .social-btn:hover {
  opacity: 0.85;
}


/* Sezione 3 div orizzontali / responsive */
.three-columns {
  display: flex;
  gap: 30px;           /* Spazio tra le colonne */
  justify-content: space-between;
  margin:0;
}

.three-columns .column {
  flex: 1;             /* Dividono lo spazio equamente */
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
  text-align:left;
}


/* Titoli e testi */
.three-columns h3 {
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 10px;
  color: #ffffff;
}

.three-columns p {
  font-size: 0.95rem;
  line-height: 1.5;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .three-columns {
    flex-direction: column;
    gap: 20px;
  }

  .three-columns .column {
    text-align:center;
  }
}

#scrollUp {position:fixed; right:20px; bottom:20px; width:45px; height:45px; border-radius:100%; background-color:#0968df; background-image:url(../../image/freccia.png); background-repeat:no-repeat; background-size:50%; background-position:center center; cursor:pointer; display:none;}
#scrollUp:hover {background-color:#0754b4}
#startPage {position:absolute; top:-100px; left:0; width:1px; height:1px; background:none; z-index:-999999;}

#waiting {
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:rgba(28,37,46,0.7);
  z-index:999999;
  display:none;
  align-items: center;
  justify-content: center;
}

#waiting img {
  width: 10px;
  height: auto;
  animation: waitingLoop 3s ease-in-out infinite alternate;
}


@keyframes waitingLoop {
  from {width:0;}
  to {width:250px;}
}








.cookie-banner {
  position:fixed;
  width:90%;
  max-width:600px;
  bottom:10px;
  left:10px;
  background:rgba(28,37,46,0.7);
  border-radius: 8px;
  border:solid 2px #ffffff;
  z-index: 9999;
  color:#dae1f2;
  padding:30px;
  box-shadow:#808080 0px 0px 10px;
}

.cookie-banner a:link,
.cookie-banner a:active,
.cookie-banner a:visited,
.cookie-banner a:hover {
  color:#ffffff;
  text-decoration:none;
}

.cookie-buttons {margin-top:20px; text-align:center}

.cookie-buttons button {
  padding: 8px 15px 8px 15px;
  border:solid 1px #ffffff;
  border-radius:8px;
  cursor: pointer;
  background:rgba(28,37,46,0.7);
  color:#ffffff;
  transition: background 0.4s ease,
              color 0.4s ease;
}

.cookie-buttons button:hover {
  background:#ffffff;
  color:#000000;
}


@media screen and (max-width:650px){
  .cookie-banner {
    max-width:90%;
    left:5%;
  }
}


























/* PAGINAZIONE */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 50px 0 20px;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

/* Numeri */
.page-number {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

/* Hover */
.page-number:hover {
  background: var(--blue);
  color: #fff;
}

/* Attiva */
.page-number.active {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
  cursor:default;
}

/* Prev / Next */
.page-btn {
  background: var(--orange);
  color: #000;
  font-size: 1.1rem;
  font-weight: 700;
}

.page-btn:hover {
  opacity: 0.85;
}


.page-btn.disabled, .page-btn.disabled:hover {
  opacity: 0.5;
  filter:grayscale(100%);
  cursor:default;
}

/* Puntini */
.dots {
  color: #999;
  font-weight: bold;
}

/* MOBILE */
@media (max-width: 600px) {
  .pagination {
    gap: 6px;
  }

  .pagination a,
  .pagination span {
    min-width: 34px;
    height: 34px;
    font-size: 0.85rem;
  }
}


.blogEvid {
  color: var(--blue);
  font-weight:900;
}




.newsletter-box{
    padding:0 20px 0 20px;
    text-align:center;
}

.newsletter-content{
    max-width:600px;
    margin:0 auto;
}

.newsletter-content h3{
    font-size:24px;
    margin-bottom:10px;
}

.newsletter-content p{
    font-size:15px;
    margin-bottom:25px;
    color:#ccc;
}

.newsletter-form{
    display:flex;
    justify-content:center;
    gap:10px;
    flex-wrap:wrap;
}

.newsletter-form input{
    padding:12px 15px;
    border:none;
    border-radius:4px;
    font-size:14px;
    width:260px;
}

.newsletter-form button{
    background:#eb874c;
    border:none;
    padding:12px 20px;
    border-radius:4px;
    color:#fff;
    font-size:14px;
    cursor:pointer;
    font-variant:small-caps;
    transition:0.3s;
}

.newsletter-form button:hover{
    background:#b3673a;
}

.newsletter-privacy{
    display:block;
    margin-top:15px;
    font-size:12px;
    color:#999;
}



@media (max-width:768px){

    .newsletter-form{
        flex-direction:column;
        align-items:center;
    }

    .newsletter-form input{
        width:100%;
        max-width:320px;
    }

    .newsletter-form button{
        width:100%;
        max-width:320px;
    }

}


.sepFt {
  position:relative;
  margin:30px auto 30px auto;
  width:80%;
  min-width:300px;
  height:1px;
  background:rgba(218,225,242,0.2);
  box-shadow:#000000 -1px -1px 1px;
}





