/* =======================
   RESET & BASE STYLES
   ======================= */
   
   @font-face {
	font-family: 'et-line';
	src:url('../fonts/et-line.eot');
	src:url('../fonts/et-lined41d.eot?#iefix') format('embedded-opentype'),
		url('../fonts/et-line.woff') format('woff'),
		url('../fonts/et-line.ttf') format('truetype'),
		url('../fonts/et-line.svg#et-line') format('svg');
	font-weight: normal;
	font-style: normal;
}



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

html, body {
  height: 100%;
  font-family: 'et-line', Arial, sans-serif;
  color: #fff;
  overflow-x: hidden;
}

p {
  font-size: 14px;
  line-height: 24px;
  font-weight: 300;
}

h1 {
  font-size: 72px;
  font-weight: 800;
  line-height: 80px;
  color: #000;
}

h1 span {
    font-weight: normal; 
}

span {
    font-weight: lighter;
}

a:link, a:visited {
    color: #484848; 
}

/* =======================
   HEADER & NAVIGATION
   ======================= */

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 2000;
}

/* --- LOGO LINK --- */
.logo-circle {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 50px;
  overflow: hidden;
  cursor: pointer;
    transition: width 0.4s ease;

}

/* --- Immagine cerchio --- */
.logo-circle .circle {
  position: absolute;
  top: 0;
  left: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  transition: opacity 0.4s ease;
  z-index: 2;
}

/* --- Immagine logo esteso --- */
.logo-circle .logo {
  position: absolute;
  top: 0;
  left: 0;
  height: 50px;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.logo-circle:hover
 {
    width: 464px;
}

/* --- Effetto hover: il cerchio svanisce, il logo appare --- */
.logo-circle:hover .circle {
  opacity: 0;
}
.logo-circle:hover .logo {
  opacity: 1;
}

/* --- Effetto hover (solo desktop) --- */
@media (hover: hover) and (pointer: fine) {
  a.logo-circle:hover {
    width: 464px; /* si espande solo al passaggio del mouse */
  }
  .logo-circle:hover .circle {
    opacity: 0;
  }
  .logo-circle:hover .logo {
    opacity: 1;
  }
}

/* --- MOBILE: nessun hover, solo pallino --- */
@media (max-width: 800px) {
  a.logo-circle {
    width: 50px !important;
    height: 50px !important;
  }
  .logo-circle .circle {
    opacity: 1 !important;
  }
  .logo-circle .logo {
    opacity: 0 !important;
  }
}



.glightbox-clean .gslide-description {
    background: #000000 !important;
}

.glightbox-clean .gslide-title {
    color: #fff !important;
}

/* Menu Toggle */
.menu-toggle {
  width: 50px;
  height: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 2001;
  background-color: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #000;
  margin: 3px 0;
  transition: all 0.3s ease;
}

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

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

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

/* Menu Panel */
.menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 80px;
  background: #fff;
  transform: translateX(100%);
  transition: transform 0.4s ease;
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 80px;
}

.menu-panel.active {
  transform: translateX(0);
}

.menu-panel ul {
  list-style: none;
  display: flex;
  flex-direction: row;
  gap: 40px;
}

.menu-panel ul li a {
  text-decoration: none;
  color: #000;
  font-weight: bold;
  font-size: 15px;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.menu-panel ul li a:hover {
  color: #00aaff;
}

nav#menu-panel ul {
  left: -159px !important;
  position: relative;
}

/* =======================
   SWIPER SLIDER
   ======================= */

.swiper-container,
.swiper {
  width: 100%;
  height: 100vh;
}

.swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.swiper-slide .bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.main-title {
  position: absolute;
  bottom: 40px;
  left: 40px;
  z-index: 10;
}

.main-title h1 {
  font-size: 28px;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.8);
}

.main-title h2 {
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.8);
}

/* Swiper Pagination */
.swiper-pagination-vertical {
  margin-right: 40px;
  scale: 250%;
}

.swiper-pagination-bullet {
  background: #ffffff !important;
  opacity: 0.7;
}

.swiper-pagination-bullet-active {
  background: #00aaff !important;
  opacity: 1;
}

/* =======================
   PAGE LAYOUTS
   ======================= */

/* Common page styles */
.works-page,
.news-page,
.about,
.contact,
.wetodo {
  max-width: 100%;
  margin: 0;
  padding: 80px 40px;
  box-sizing: border-box;
  background: #fff;
  color: #000;
}

.works-page h1,
.news-page h1,
.about h1,
.contact h1,
.wetodo h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 40px;
  margin-top: 30px;
  color: #000;
  text-transform: uppercase;
  line-height: 1.3;
}

.works-page p,
.news-page p,
.about p,
.contact p,
.wetodo p {
  font-size: 15px;
  line-height: 1.6;
  color: #333;
}

/* =======================
   WORKS PAGE
   ======================= */

.works-page {
  padding: 100px 30px 50px;
}

/* Filters */
.filters {
  margin-bottom: 10px;
    margin-top: 30px;

  text-align: right;
  padding-right: 14%;
}

.filters button {
  border: none;
  background: transparent;
  padding: 5px 12px;
  margin-right: 10px;
  cursor: pointer;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 14px;
  color: #000;
}

.filters button:hover,
.filters button.active {
  background: #00a8f0;
  color: #fff;
}

/* Grid */
.grid {
  display: block !important;
  column-count: initial !important;
  column-gap: 0 !important;
  width: 100%;
  margin: 0 auto;
}

.grid::after {
  content: "";
  display: block;
  clear: both;
}

.grid-sizer,
.grid-item {
  width: 33.3333%;
  float: left;
  box-sizing: border-box;
}

.grid-item {
  padding: 0 15px 30px 15px;
  background: #fff;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.grid-sizer {
  padding: 0 15px;
}

.grid-item img {
  width: 100%;
  display: block;
  height: auto;
  transition: opacity 0.3s ease;
  opacity: 0.6;
}

.grid-item h2 {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  color: #000;
}

.works-page .grid-item h2 {
  margin-top: -25px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  color: #000;
  margin-left: 11px;
}

/* Grid Hover Effects */
.grid-item:hover {
  transform: scale(0.95);
}

.grid-item:hover img {
  opacity: 1;
}

.grid-item a {
  color: inherit;
  text-decoration: none;
}

.grid-item a:hover h2 {
  color: #00a8f0;
}



/* =======================
   PROJECT PAGES
   ======================= */

.project-page {
  padding: 40px;
  background: #fff;
  color: #000;
  margin-top: 60px;
}

.project-header {
  max-width: 900px;
  margin: 0 auto 40px auto;
}

.project-header h1 {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 15px;
}

.project-header p {
  line-height: 1.6;
  margin-bottom: 20px;
}

.project-page .back-arrow,  .wetodo .back-arrow {
  display: inline-block;
  font-size: 24px;
  color: #000;
  text-decoration: none;
  margin-bottom: 10px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.project-page .back-arrow:hover , .wetodo .back-arrow:hover {
  color: #00a8f0;
}

.project-header .link {
  display: inline-block;
  margin-top: 15px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 14px;
  color: #00a8f0;
  text-decoration: none;
}

.project-header .video-link {
  display: inline-block;
  margin-top: 15px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 14px;
  color: #00a8f0;
  text-decoration: none;
}

.project-header .video-link:hover {
  text-decoration: underline;
}

/* Project Meta */
.project-meta {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 120px auto;
  row-gap: 8px;
  column-gap: 10px;
  font-size: 15px;
  line-height: 1.5;
}

.project-meta dt {
  font-weight: 600;
  color: #111;
  text-transform: uppercase;
  font-size: 14px;
}

.project-meta dd {
  margin: 0;
  color: #444;
  font-weight: 400;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.gallery-grid img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.caption {
  margin-top: .4rem;
  opacity: .7;
  font-size: .6rem;
  line-height: 1.3;
}

/* =======================
   ABOUT PAGE
   ======================= */

.about {
  width: 100%;
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
  color: #333;
}

.about .row {
  display: flex;
  align-items: flex-start;
  margin: 80px 0;
  padding-bottom: 40px;
}

.about-left {
  flex: 1 1 40%;
  padding-right: 40px;
}

.about-logo {
  max-width: 100%;
  height: auto;
  display: block;
}

.about-right {
  flex: 1 1 60%;
}

.about-right h2 {
  margin-bottom: 20px;
}

.about-right p {
  margin: 10px 0;
  line-height: 1.6;
}

.about-signatures {
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  max-width: 500px;
}

.col.left img {
    max-width: 90%;
    margin: 0px;
    PADDING: 0px;
    position: relative;
    float: left;
}

ul {
    padding: 20px;
}

/* =======================
   NEWS PAGE
   ======================= */

.news-page {
  margin: 0 auto;
  padding: 0 20px;
}

.news-page h1 {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-top: 120px;
  margin-bottom: 60px;
  line-height: 1.3;
  color: #222;
}

.news-page .grid-item {
  width: 30% !important;
  margin-bottom: 30px;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.news-page .grid-item img {
  width: 100%;
  display: block;
}

.news-page .post-content {
  padding: 20px;
  color: #444;
}

.news-page .post-content h2 {
  font-size: 18px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.news-page .post-content p {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 15px;
}

.news-page .post-content a {
  color: #0073b1;
  font-weight: bold;
  text-decoration: none;
}

.news-page .post-content a:hover {
  text-decoration: underline;
}

.news-page {
  padding: 10px 40px;
}

.news-page h1 {
  text-align: center;
  font-size: 42px;
  margin-bottom: 60px;
}

.news-page .grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

/* Griglia base — es: 3 colonne su desktop standard */

/* Fix larghezza news su mobile */
@media (max-width: 900px) {
  .news-page .grid-item {
    width: 100% !important;
  }
}

/* 4 colonne su schermi grandi (es. 1440px) */
@media (min-width: 1440px) {
  .news-page .grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* 5 colonne su monitor molto grandi (es. 1920px o più) */
@media (min-width: 1920px) {
  .news-page .grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.news-page .post {
  border: 1px solid #eee;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  transition: transform 0.3s ease;
}

.news-page .post:hover {
  transform: translateY(-5px);
}

.news-page img {
  width: 100%;
  display: block;
}

.post-content {
  padding: 20px;
}

.post-content h2 {
  font-size: 22px;
  margin-bottom: 10px;
}

.post-content h3 {
  font-size: 16px;
  color: #888;
  margin-bottom: 10px;
}

.post-content p {
  color: #555;
  margin-bottom: 10px;
}

.post-content a {
  font-weight: 600;
  color: #00a8f0;
}

.instagram-media {
  border-radius: 8px !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.grid-item.post a.post-link {
  display: block;
  position: relative;
}

.grid-item.post img {
  transition: transform .3s ease, opacity .3s ease;
}

.grid-item.post a.post-link:hover img {
  transform: scale(1.03);
  opacity: .9;
}

/* =======================
   NEWS ARTICLE (dettaglio)
   ======================= */

.news-article {
  padding: 120px 40px;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.6;
}

.news-article h1 {
  font-size: 42px;
  margin-bottom: 15px;
  font-weight: 700;
  color: #222;
}

.news-article h2 {
  font-size: 22px;
  color: #777;
  margin-bottom: 30px;
  font-weight: 500;
}

.news-article p {
  font-size: 16px;
  color: #333;
  margin-bottom: 20px;
}

.news-article img {
  display: block;
  max-width: 100%;
  border-radius: 6px;
  margin: 30px auto;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.news-article figure {
  margin: 40px 0;
  text-align: center;
}

.news-article figcaption {
  color: #777;
  font-size: 14px;
  margin-top: 8px;
}

.back-link {
  display: inline-block;
  margin-bottom: 30px;
  color: #00a8f0;
  font-weight: 500;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

/* --- CARD SOCIAL GENERICHE --- */
.linkedin-embed,
.instagram-embed {
  display: block;
  width: 100%;
  min-height: 550px; /* fallback dimensione coerente */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  background: #fff;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

/* Effetto al passaggio come le altre card */
.linkedin-embed:hover,
.instagram-embed:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

/* --- CONTENUTO INSTAGRAM --- */
.instagram-embed blockquote {
  width: 100% !important;
  margin: 0 auto !important;
  min-height: 500px !important; /* uniforma rispetto LinkedIn */
  background: #fff;
  border: none !important;
}

/* --- TESTO “Leggi su…” --- */
.grid-item.post .read-more {
  display: block;
  margin-top: 8px;
  text-align: center;
  font-weight: 600;
  color: #0073b1;
  text-decoration: none;
}

.grid-item.post .read-more:hover {
  text-decoration: underline;
}



/* =======================
   WETODO PAGE
   ======================= */

.wetodo {
  width: 100%;
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
  color: #333;
}

.wetodo .row {
  display: flex;
  align-items: flex-start;
  margin: 80px 0;
  padding-top: 40px;
  border-top: 1px solid #ddd;
}

.wetodo .row:last-child {
  border-bottom: none;
}

.wetodo .row .col {
  flex: 1;
  padding: 20px;
}

.wetodo .row .left {
  text-align: right;
}

.wetodo .row .right img {
  width: 100%;
  max-width: 400px;
  display: block;
  margin: 0 auto;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.wetodo h2 {
  font-size: 26px;
  margin-bottom: 15px;
      font-variant: all-small-caps;
    font-weight: 200;
}

.wetodo .left p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 15px;
}

.wetodo-intro img {
  max-width: 220px;
  height: auto;
  margin-bottom: 20px;
}

.wetodo .left ul {
  list-style: none;
  padding-left: 0;
}

.wetodo .left li {
  margin-bottom: 10px;
  font-size: 16px;
  color: #333;
}

.wetodo .left ul ul {
  margin-top: 5px;
  margin-left: 20px;
  list-style: disc;
}

.wetodo .left ul ul li {
  font-size: 15px;
  color: #555;
}

.col ul li {
  margin-top: 17px;
}
/* --- VIDEO SOLO PER LA PAGINA WETODO --- */
.wetodo-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; /* ✅ sostituisce padding-bottom e migliora il resize */
  overflow: hidden;
  z-index: 0;
  background: #000; /* evita lampeggi o flash bianchi al caricamento */
}

.wetodo-video iframe,
.wetodo-video video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  transform: translate(-50%, -50%);
  object-fit: cover; /* ✅ riempie sempre senza bande nere */
  border: 0;
  pointer-events: none; /* disabilita interazioni */
}

/* --- Maschera logo YouTube (facoltativa) --- */
.wetodo-video::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 120px;
  height: 80px;
  background: #fff;
  opacity: 0; /* 0.3 se vuoi mascherarlo visivamente */
  pointer-events: none;
}

/* --- VIDEO YOUTUBE (stesso comportamento ma classe diversa) --- */
.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  border: 0;
  pointer-events: none;
}

/* =======================
   CONTACT PAGE
   ======================= */

.contact-container {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  align-items: flex-start;
}

.contact-left {
  flex: 1 1 40%;
  padding-right: 40px;
}

.contact-logo {
  max-width: 100%;
  height: auto;
  display: block;
}

.contact-right {
  flex: 1 1 60%;
}

.contact-right h2 {
  margin-bottom: 20px;
    font-size: 26px;
      font-variant: all-small-caps;
    font-weight: 200;
}

.contact-right p {
  margin: 10px 0;
  line-height: 1.6;
}

.contact-info {
  display: flex;
  justify-content: space-between;
  margin: 40px 0;
  gap: 20px;
}

.info-block {
  text-align: center;
  flex: 1;
}

.info-block i {
  font-size: 40px;
  margin-bottom: 10px;
  color: #000;
  display: block;
}

.info-block h4 {
  margin: 10px 0 5px;
}

.info-block a,
.info-block p {
  font-size: 14px;
  color: #000;
  text-decoration: none;
}

/* Uniforma larghezza e comportamento video locale e YouTube */
.wetodo-video,
.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.wetodo-video video,
.video-wrapper iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 110%;   /* leggermente più largo per riempire perfettamente */
  height: 110%;  /* elimina bande e uniforma con i locali */
  transform: translate(-50%, -50%);
  object-fit: cover;
  border: 0;
  pointer-events: none;
}


/* =======================
   FOOTER
   ======================= */

footer {
  background: #ffffff;
  color: #aaa;
  text-align: center;
  padding: 20px;
  font-size: 14px;
}

.footer-follow {
  margin-bottom: 10px;
}

.footer-follow a {
  margin: 0 10px;
  text-decoration: none;
  color: #00aaff;
  transition: color 0.3s;
}

.footer-follow a:hover {
  color: #fff;
}

/* =======================
   RESPONSIVE STYLES
   ======================= */

@media (max-width: 900px) {
  .grid-sizer, .grid-item {
    width: 50%;
  }
  
  .news-page .grid-item {
    width: 45%;
  }
  .grid-item article.locale-it {
    max-height:500px;
    overflow-y: auto; /* La barra di scorrimento verticale appare solo se il contenuto eccede max-height */
}
.grid-item {margin-top: 20px;padding-left: 0px !important; padding-right: 0px !important;}

section.works-page {
    margin: 0px;
    padding-left: 0px;
    padding-right: 0px;
}

main#main-content {
    padding: 0px;
}


}

@media (max-width: 768px) {
  /* Header & Navigation */
  header {
    padding: 15px;
  }

  .logo-circle {
    width: 40px;
    height: 40px;
  }

  .logo-circle:hover {
    background-image: url('img/logo01.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
    gap: 5px;
  }

  .menu-toggle span {
    width: 18px;
    height: 2px;
  }

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

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

  .menu-panel {
    height: 100%;
    justify-content: center;
  }

  nav#menu-panel ul {
    left: 0px !important;
  }

  .menu-panel ul {
    flex-direction: column;
    gap: 25px;
  }

  .menu-panel ul li a {
    font-size: 18px;
  }

  /* Swiper */
  .swiper-pagination-vertical {
    margin-right: 15px;
    scale: 160%;
  }

  .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    margin: 4px 0;
  }

  .main-title {
    bottom: 90px;
    left: 20px;
  }

  .main-title h1 {
    font-size: 28px;
    line-height: 32px;
  }

  .main-title h2 {
    font-size: 14px;
    line-height: 20px;
      font-variant: all-small-caps;
    font-weight: 200;
  }

  /* Page Layouts */
  .works-page,
  .news-page,
  .about,
  .contact,
  .wetodo {
    padding: 60px 20px;
  }

  /* Project Pages */
  .project-page {
    padding: 20px 15px;
  }

  .project-header {
    margin: 0 0 20px 0;
    padding: 0;
  }

  .project-header p {
    font-size: 13px;
    line-height: 1.5;
  }

  .gallery-grid {
    gap: 30px;
  }

  .gallery-grid img {
    border-radius: 0;
  }

  .grid-item {
    padding: 0 15px 0px 15px !important;
  }

  .caption {
    margin-top: 0.2rem;
    font-size: 0.7rem;
    line-height: 1.2;
    opacity: 0.8;
    padding: 0 5px;
  }

  /* Grid */
  .grid-sizer, .grid-item {
    width: 100%;
  }

  .news-page .grid-item {
    width: 100%;
  }

  .news-page h1 {
    font-size: 22px;
    margin-top: 90px;
    margin-bottom: 40px;
    padding: 0 20px;
  }

  /* Wetodo */
  .wetodo .row {
    flex-direction: column;
  }

  .wetodo .row:nth-child(even) {
    flex-direction: column-reverse;
  }
}

@media (max-width: 600px) {
  .grid-sizer, .grid-item {
    width: 100%;
  }
  
  .news-page .grid-item {
    width: 100%;
  }
}

/* CONTACT FORM */
.contact-form {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form .form-group {
  display: flex;
  flex-direction: column;
}

.contact-form label {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 5px;
  color: #333;
}

.contact-form input,
.contact-form textarea {
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #00a8f0;
}

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

.contact-form button {
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  background-color: #00a8f0;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background-color: #0086c6;
}


/* --- OVERLAY VIDEO (YouTube / locale) --- */
.video-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999; /* 🔺 più alto di qualunque altro elemento */
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease;
  opacity: 0;
}
.video-overlay.active {
  display: flex;
  opacity: 1;
}

/* Wrapper per video o iframe */
.video-wrapper {
  position: relative;
  width: 90%;
  max-width: 1280px;
  aspect-ratio: 16 / 9;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

/* Adatta i video locali */
.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Adatta anche l’iframe di YouTube */
.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Pulsanti overlay */
#playPauseBtn, #closeOverlay {
  position: absolute;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10001;
  opacity: 0.8;
  transition: opacity 0.3s;
}
#playPauseBtn:hover, #closeOverlay:hover {
  opacity: 1;
}
#playPauseBtn {
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
}
#closeOverlay {
  top: 30px;
  right: 40px;
}

/* --- VIDEO BACKGROUND FULLSCREEN + CENTRATO --- */
.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0; /* 🔸 importante: sotto ai testi, sotto all’overlay */
}

.bg-video video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
}

/* --- TESTI SOVRAPPOSTI AL VIDEO --- */
.swiper-slide .main-title {
  position: absolute;
  bottom: 10%;
  left: 5%;
  z-index: 2;
  color: #fff;
  text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

/* --- VERSIONE MOBILE --- */
@media (max-width: 768px) {
  .bg-video video {
    transform: translate(-50%, -50%) scale(1.1);
    object-position: center center;
  }

  .swiper-slide .main-title {
    bottom: 15%;
    left: 6%;
  }

  .swiper-slide .main-title h1 {
    font-size: 36px;
  }

  .swiper-slide .main-title h2 {
    font-size: 16px;
      font-variant: all-small-caps;
    font-weight: 200;
  }
  .grid-item img {
  opacity: 1;
}
}

.captcha-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.captcha-box img {
  border: 1px solid #ccc;
  border-radius: 4px;
  height: 75px;
}

.reload-btn {
  border: none;
  background: #eee;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  border-radius: 4px;
  padding: 6px 10px;
  transition: background 0.3s;
}
.reload-btn:hover {
  background: #ddd;
}

button[type="submit"] {
  transition: background-color 0.3s ease, transform 0.2s ease;
}
button[type="submit"]:active {
  transform: scale(0.97);
}

button.success {
  background-color: #4CAF50 !important; /* verde */
  color: #fff !important;
}

button.error {
  background-color: #E53935 !important; /* rosso */
  color: #fff !important;
}

.filters button.active {
  background: #000;
  color: #fff;
  transition: all 0.3s ease;
}

/* --- BLOCCO INFO CONTATTI IN COLONNA --- */
.contact-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 25px;
  padding-top: 20px;
}

.contact-info .info-block {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  text-align: left;
}

.contact-info .info-block i {
  font-size: 24px;
  color: #000;
  flex-shrink: 0;
  margin-top: 4px;
}

.contact-info .info-block h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.contact-info .info-block p {
  margin: 2px 0 0;
  font-size: 15px;
  color: #333;
  line-height: 1.4;
}

.news-hero { text-align:center; margin: 120px 0 30px; }
.news-title { font-size: 40px; font-weight: 800; letter-spacing: .5px; }
.news-quote { color:#555; font-weight: 400; font-size:16px; margin:10px auto 0; max-width:720px; }
.news-quote cite { display:block; margin-top:6px; opacity:.7; font-style:normal; }

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: none;
  justify-content: space-between;
  align-items: center;
  background: rgba(0,0,0,0.85);
  color: #fff;
  padding: 15px 20px;
  z-index: 2000;
  font-size: 14px;
}

.cookie-banner a {
  color: #00aaff;
  text-decoration: underline;
}

.cookie-banner button {
  background: #00a8f0;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.3s ease;
}

.cookie-banner button:hover {
  background: #007bbd;
}



