/* style.css - styling is tuned to match screenshot: classic look with gradients and shadows */
:root{
  --red-1: #8b0f10; /* deeper red */
  --red-2: #b71c1c; /* gradient red */
  --bg-gray: #eef2f5;
  --container-width: 1200px;
}

/* Fonts */
body {
  font-family: 'Open Sans', system-ui, -apple-system, 'Segoe UI', Roboto, "Helvetica Neue", Arial;
  color: #333;
 /* background: linear-gradient(#f6f7f9, #e9edf2);*/
}



p,ol,li {
  font-size: 14px;       /* grandezza testo */
  line-height: 1.6;      /* spaziatura verticale */
  color: #333;           /* colore del testo */
  font-family: 'Armata', sans-serif;
}



/* Header logo */
.site-header .logo-img{
  max-height: 90px;
  width: auto;
  display: inline-block;
  /* if you want to see the placeholder well, add background */
}

/* Red navigation bar like the screenshot */
.nav-red {
  background: linear-gradient(90deg, var(--red-1), var(--red-2));
  border-top: 4px solid rgba(0,0,0,0.08);
  border-bottom: 1px solid rgba(0,0,0,0.12);
  box-shadow: 0 3px 6px rgba(0,0,0,0.12);
}
.nav-red .nav-link{
  color: #fff !important;
  font-weight: 600;
  letter-spacing: .5px;
  padding: 0px 18px;
}
.nav-red .nav-link.active, .nav-red .nav-link:hover{
  background: rgba(0,0,0,0.12);
  color: #fff !important;
  border-radius: 0;
}

/* Puzzle wrapper */
.puzzle-wrapper{
  background: transparent;
  margin: 40px 0;
  border-radius: 3px;
  position: relative;
  overflow: visible;
}

/* create central "card" look */
.puzzle-wrapper .row {
  background: #ffffff;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(14,20,26,0.12);
  transform: translateY(0);
  border: 1px solid rgba(0,0,0,0.04);
}

/* left puzzle piece */
.puzzle-left{
  background: linear-gradient(180deg, #ffffff 0%, #f8f8f8 100%);
  position: relative;
  min-height: 360px;
}

/* add bottom red chunk and circular tabs to emulate puzzle */
.puzzle-left::after{
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(180deg, var(--red-2), var(--red-1));
  clip-path: polygon(0 25%, 0 100%, 100% 100%, 100% 25%, 75% 25%, 68% 42%, 50% 42%, 32% 42%, 25% 25%);
  /* the clip-path approximates puzzle cut shape */
}

/* circle protrusion on the vertical center (approximation) */
.puzzle-left::before{
  content:'';
  width:88px;
  height:88px;
  background:#fff;
  position:absolute;
  right:-44px;
  top:50%;
  transform:translateY(-50%);
  border-radius:50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

/* inner title */
.puzzle-left-inner{ z-index:2; position:relative; padding:60px 20px;}
.puzzle-title{
  font-family: 'Playfair Display', serif;
  font-weight:700;
  color:#6b6b6b;
  letter-spacing:2px;
  margin:0;
}

/* right image block */
.puzzle-right{
  padding: 20px;
  background: #fff;
  display:flex;
  align-items:center;
  justify-content:center;
}
.puzzle-image img{
  width:100%;
  height:auto;
  display:block;
  border-radius:2px;
  border: 6px solid #fff;
  box-shadow: 0 10px 18px rgba(14,20,26,0.10);
}

/* responsive adjustments */
@media (max-width: 991.98px){
  .puzzle-left::before{ right:-22px; width:60px; height:60px; }
  .puzzle-left::after{ height:36%; }
  .puzzle-left-inner{ padding:40px 10px; }
  .site-header .logo-img{ max-height:70px; }
  .nav-red .nav-link{ padding:10px 12px; font-size:14px; }
}

/* ======= Footer ======= */
html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
a {
  color: white;
}
.site-footer {
  background: linear-gradient(90deg, var(--red-1), var(--red-2));
  color: #fff;
  font-size: 0.9rem;
  margin-top: auto; /* footer sempre in fondo */
  width: 100%;
  border-top: 2px solid rgba(255,255,255,0.15);
  box-shadow: 0 -2px 6px rgba(0,0,0,0.1);
  padding: 8px 0; /* sottile */
}


/* ======= Sezione corpo a due colonne ======= */
.section-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: #7b0d0e;
  font-size: 2rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #b71c1c;
  display: inline-block;
  padding-bottom: .3rem;
}

.image-gallery img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-gallery img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

/* Responsive: immagini sopra testo su mobile */
@media (max-width: 991.98px) {
  .image-gallery {
    text-align: center;
  }
  .image-gallery img {
    max-width: 90%;
  }
}
/* stile per la pagina Settori Serviti */
.settore-card {
  border: none;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.settore-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}
.settore-img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.card-title {
  font-family: 'arial', serif;
  /*font-weight: 700;*/
  color: #333;
  margin-top: .5rem;
}

/* ======= SERVIZI (lista verticale con background) ======= */
ul.lista_servizi {
  width: 523px;
  margin: 0 auto 20px auto;
  padding: 0;
  list-style: none;
  text-align: left;
}

ul.lista_servizi .servizi-item {
 /* background-size: cover;*/
  background-position: center;
  color: #fff;
  padding: 60px 30px;
  margin-bottom: 20px;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/*ul.lista_servizi .servizi-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 0;
  transition: background 0.3s ease;
}*/

ul.lista_servizi .servizi-item:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

ul.lista_servizi .servizi-item:hover::before {
 /* background: rgba(0,0,0,0.55);*/
}

ul.lista_servizi .servizi-item h2,
ul.lista_servizi .servizi-item p,
ul.lista_servizi .servizi-item a {
  position: relative;
  z-index: 1;
}

ul.lista_servizi .servizi-item h2 {
  font-family: 'arial', serif;
  font-weight: 700;
  font-size: 1.0rem;
  margin-bottom: .5rem;
  color: #fff;
  text-align:right;
}

ul.lista_servizi .servizi-item p {
  font-size: 1rem;
  margin: 0;
  color: #f9f9f9;
  text-align:right;
}

.white {
  color: #fff;
}

/* Responsive */
@media (max-width: 576px) {
  ul.lista_servizi {
    width: 90%;
  }
  ul.lista_servizi .servizi-item {
    padding: 40px 20px;
  }
  ul.lista_servizi .servizi-item h2 {
    font-size: 1.2rem;
  }
}
/* ======= CONTATTI ======= */
.contact-wrapper {
  max-width: 900px;
}

.contact-title {
  font-family: 'Titillium Web', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: #7b0d0e;
  text-transform: uppercase;
  border-bottom: 2px solid #ddd;
  padding-bottom: 5px;
  margin-bottom: 15px;
}

address, .contact-wrapper p {
  font-family: 'Armata', sans-serif;
  color: #333;
  font-size: 0.95rem;
  line-height: 1.6;
}

.map-container iframe {
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .contact-wrapper {
    padding: 0 15px;
  }
  .contact-title {
    text-align: center;
  }
}
.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
}

.video-thumbnail {
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.video-thumbnail img {
  width: 100%;
  transition: transform 0.3s ease;
}

.video-thumbnail:hover img {
  transform: scale(1.05);
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background-color: rgba(255, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}

.play-button::before {
  content: '';
  display: block;
  margin-left: 4px;
  width: 0;
  height: 0;
  border-left: 18px solid #fff;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
}

.video-thumbnail:hover .play-button {
  background-color: rgba(255, 0, 0, 1);
}


.video-thumbnail:hover .play-button {
  opacity: 1;
}
.gallery {
  width: 100%;
  margin: 40px auto;
  text-align: center;
}

.lista_gallery {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 900px;
}

.lista_gallery li {
  position: relative;
  width: 140px;
  height: 100px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.lista_gallery li:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.lista_gallery li img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* la cornice non interferisce con il click */
}

/* 📱 Mobile responsive */
@media (max-width: 768px) {
  .lista_gallery {
    gap: 10px;
  }

  .lista_gallery li {
    width: 45%;
    height: 90px;
  }
}
/* Menu Servizi */
.menu_servizi {
  display: flex;
  justify-content: space-around;
  background-color: #f4f4f4;
  padding: 15px 0;
  list-style: none;
}

.menu_servizi li {
  display: inline-block;
}

.menu_servizi a {
  text-decoration: none;
  color: #7b0d0e;
  font-weight: bold;
  text-transform: uppercase;
  font-family: 'Titillium Web', sans-serif;
  padding: 8px 12px;
}

.menu_servizi a:hover {
  background-color: #7b0d0e;
  color: white;
  border-radius: 5px;
}

/* Colore base dei link */
.nav-pills .nav-link {
  color: #333;
  background-color: transparent;
  /*border: 2px solid #333;*/
  margin: 0 5px;
  border-radius: 5px;
  font-weight: bold;
  transition: all 0.3s ease;
}

/* Colore al passaggio del mouse */
.nav-pills .nav-link:hover {
  background-color: #D5D5D5;
  color: #2D2D2D;
}

/* Colore del link attivo */
.nav-pills .nav-link.active {
  background-color: #D5D5D5 !important;
  color: #2D2D2D !important;
  border-color: #2D2D2D !important;
}


.selezione_servizi {
  background-color: #7b0d0e;
  color: white;
}

/* Dati Sx e Dati Dx */
.dati_sx, .dati_dx {
  margin-bottom: 30px;
}

.dati_sx h2 {
  font-family: 'Playfair Display', serif;
  color: #7b0d0e;
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.dati_sx .testo p {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
}

/* Video Box */
#box_video {
  position: relative;
  width: 100%;
  height: 320px;
}

#box_video img {
  width: 100%;
  border-radius: 8px;
}

/* Play Button */
.yt_play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.sfufatura {
  background-color: #7b0d0e;
  color: #fff;
  text-align: center;
  padding: 10px;
}
/*.lista_gallery a {
  display: block;
  cursor: pointer;*/
}

.gallery {
  overflow-x: auto;
  padding: 1rem 0;
}

.lista_gallery {
  display: flex;
  gap: 15px;
  flex-wrap: nowrap;
}

.lista_gallery a {
  flex: 0 0 auto;
  width: 150px;
  height: 150px;
  display: block;
}

.lista_gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Usa 'contain' se vuoi vedere tutta l'immagine */
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.lista_gallery img:hover {
  transform: scale(1.05);
}
.fixed-bottom {
   position: fixed;
   left: 0;
   bottom: 0;
   width: 10%;
   padding:3px;
   font-size:13px;
   background-color:#cbe2d6;
   color: white;
   text-align: center;
   box-shadow: 5px 5px 10px 2px #333333;
   z-index:9999;
 }
    
.fixed-bottom a {color: #000 !important;}	
	
@media all and (max-width: 480px) { 

.fixed-bottom {
width:45%;
}
}
