/*
 Theme Name:   Fluida Child
 Theme URI:    https://spelettrotecnicasrl.it/fluida-child/
 Description:  Un child theme per Fluida
 Author:       OZ
 Author URI:   https://castrodesign.it/
 Template:     fluida
 Version:      1.0
 Text Domain:  fluida-child
*/

/* Hero Section Full-Width */
.lp-staticslider {
    background-image: url('https://www.spelettrotecnicasrl.it/secure_login/wp-content/uploads/2025/07/uno-A.jpg');
    width: 100vw !important;
    max-width: none !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    height: 100vh !important;
    min-height: 100vh !important;
    max-height: 1440px;
}

.lp-staticslider::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(00, 00, 00, 0.3);
    z-index: 1;
}

.lp-staticslider .slider-caption {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 2;
    text-align: center;
    padding: 20px;
    width: 100%;
    max-width: 1200px;
}

.lp-staticslider .slider-caption h2,
.lp-staticslider .slider-caption p {
    color: #FFFFFF;
    margin: 0;
    width: 100%;
	font-size: 22px !important;
}

.lp-staticslider .slider-caption p {
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
	font-size: 18px !important;
}

/* Animazioni hero */
.lp-staticslider .animated {
    opacity: 0;
    animation-duration: 1s;
    animation-fill-mode: forwards;
}

.lp-staticslider .fadeInDown {
    animation-name: fadeInDown;
    animation-delay: 0.5s;
}

.lp-staticslider .fadeInUp {
    animation-name: fadeInUp;
    animation-delay: 0.7s;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -20px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 20px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Responsività hero */
@media (max-width: 768px) {
    .lp-staticslider {
        height: 50vh;
    }
    .lp-staticslider .slider-caption p {
        font-size: 16px !important;
    }
}

/* Contenitore principale */
#container {
    max-width: 1200px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 20px !important;
    box-sizing: border-box !important;
}

.container, #page, .site, .content-wrapper, .cryout {
    max-width: 1200px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* Sezione riquadri azienda */
.company-highlights-wrap {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    background-color: #f5f5f5;
    padding: 60px 0;
    box-sizing: border-box;
}

.company-highlights {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.highlight-box {
    display: flex;
    align-items: flex-start;
    width: 23%;
    margin-bottom: 20px;
    background-color: #fff;
    padding: 15px;
    box-sizing: border-box;
    border: none;
}

.icon {
    width: 60px !important;
    height: 60px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    flex-shrink: 0;
}

.icon img {
    max-width: 40px !important;
    max-height: 40px !important;
    width: 40px !important;
    height: 40px !important;
    object-fit: contain;
	vertical-align: top !important;
}

.text {
    font-size: 16px;
    color: #333;
    line-height: 1.4;
	vertical-align: top !important;
}

/* Responsività riquadri */
@media (max-width: 768px) {
    .company-highlights {
    flex-wrap: wrap;
    padding: 0 10px; /* aggiunta per bilanciare margini */
    }

    .highlight-box {
        width: 100% !important;
		margin-bottom: 15px !important;
    }

    .highlight-box:nth-child(2n) {
        margin-right: 5px;
    }

    .highlight-box:nth-child(n+3) {
        margin-bottom: 0;
    }
}

.partner-reel {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    overflow: hidden;
    background-color: #ffffff;
    padding: 40px 0;
    box-sizing: border-box;
    position: relative;
}

.partner-logos {
    display: flex;
    animation: scroll-reel 30s linear infinite;
    width: fit-content;
}

.partner-logos img {
    height: 150px;
    width: 150px;
    margin: 0 40px;
    object-fit: contain;
    flex-shrink: 0;
}

@keyframes scroll-reel {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .partner-logos img {
        height: 100px;
        width: 100px;
        margin: 0 20px;
    }
}


/* Sezione contenuti con sfondo */
.company-content-wrap {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    background-color: #f9f9f9;
    padding: 60px 0;
}

.company-content-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.company-content-inner h2,
.company-content-inner h3 {
    color: #222;
    margin-bottom: 20px;
}

.company-content-inner p {
    font-size: 1rem;
    color: #444;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Responsività contenuti */
@media (max-width: 768px) {
    .company-content-wrap {
        padding: 40px 0;
    }
    .company-content-inner {
        padding: 0 15px;
    }
}

.custom-table-container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: none;
}

/* Stili per le immagini */
.custom-table-container img {
  width: 100%;
  height: auto;
  max-width: none;
  object-fit: cover;
}

/* Stili per la tabella (home con 2 immagini) */
.custom-table-container table {
  width: 100%;
  border-collapse: collapse; /* Evita spazi o bordi tra le celle */
}

.custom-table-container td {
  border: 4px solid #ffffff; /* Bordo bianco come richiesto */
  padding: 0;
}

.custom-table-container a {
  text-decoration: none; /* Rimuove il sottolineato dai link */
}

/* Media query per versione mobile (home) */
@media (max-width: 600px) {
  .custom-table-container table {
    display: block;
    width: 100%;
  }

  .custom-table-container td {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px 0; /* Padding verticale di 10px */
    border: none; /* Rimuove il bordo in mobile */
  }
}

/* Stili aggiuntivi per layout interno (opzionale, disattivabile) */
.custom-table-container.inner-page {
  padding: 20px;
}

.custom-table-container.inner-page img {
  border: 1px solid #ffffff; /* Bordo più sottile per pagine interne */
}

.custom-table-container.inner-page td {
  padding: 10px;
  border: 1px solid #ffffff;
}

@media (max-width: 600px) {
  .custom-table-container.inner-page table {
    display: block;
    width: 100%;
  }

  .custom-table-container.inner-page td {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    border: none;
  }
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.grid-item {
  text-align: left;
}

.grid-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 4px solid #ffffff;
}

.grid-item p {
  margin: 10px 0 0;
  font-size: 16px;
  color: #333;
}

@media (max-width: 768px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .grid-container {
    grid-template-columns: 1fr;
  }
}

.grid-container-2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 colonne */
  grid-template-rows: repeat(2, auto); /* 2 righe */
  grid-gap: 20px; /* Spazio tra le celle */
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.grid-item-2 {
  text-align: left;
}

.grid-item-2 img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 4px solid #ffffff; /* Bordo bianco */
}

.grid-item-2 p {
  margin: 10px 0 0;
  font-size: 16px;
  color: #333;
}

/* Responsive: 2 colonne su tablet */
@media (max-width: 768px) {
  .grid-container-2 {
    grid-template-columns: repeat(2, 1fr); /* 2 colonne */
  }
}

/* Responsive: 1 colonna su mobile */
@media (max-width: 480px) {
  .grid-container-2 {
    grid-template-columns: 1fr; /* 1 colonna */
  }
}
.footer-background {
  background-color: #09173d;
  color: white;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  box-sizing: border-box;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  padding: 40px 20px;
  box-sizing: border-box;
}

.footer-left, .footer-right {
  flex: 1 1 500px;
}

.footer-left p {
  margin: 0 0 1em;
  line-height: 1.5;
}

/*.footer-bottom-bar {
  height: 10px;
  background-color: #ffffff;
  width: 100%;
}*/

/* ✅ Mobile responsive */
@media screen and (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    padding: 30px 20px;
  }

  .footer-left, .footer-right {
    width: 100%;
  }

  .footer-right iframe {
    width: 100%;
    height: 300px;
  }
}

.sp-help-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #09173d;
  color: white;
  border-radius: 8px;
  overflow: hidden;
  font-family: sans-serif;
}

.sp-help-toggle {
  padding: 10px 15px;
  cursor: pointer;
}

.sp-help-buttons {
  display: flex;
  justify-content: space-around;
  padding: 8px;
  background: #0f2955;
}

.sp-help-buttons img {
  width: 32px;
  height: 32px;
}

@media(max-width: 768px) {
  .sp-help-widget { bottom: 10px; right: 10px; }
  .sp-help-toggle { padding: 8px 10px; font-size: 0.9rem; }
  .sp-help-buttons img { width: 20px; height: 20px; }
}

.sp-help-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #09173d;
  color: white;
  border-radius: 8px;
  font-family: sans-serif;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  z-index: 9999;
}

.sp-help-toggle {
  padding: 10px 15px;
  cursor: default;
  font-size: 14px;
  background-color: #0066FF;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sp-help-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px; /* <-- spazio razionale tra le icone */
  padding: 14px;
  justify-content: center;
  align-items: center;
}

.sp-help-buttons a img {
  width: 22px;
  height: 22px;
  transition: transform 0.2s ease;
}

.sp-help-buttons a:hover img {
  transform: scale(1.15);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .sp-help-widget {
    bottom: 10px;
    right: 10px;
  }
  .sp-help-buttons a img {
    width: 20px;
    height: 20px;
  }
}

/* Override menu mobile Hamburger – aggiungi alla fine del CSS del tema child */

/* Sfondo del menu quando aperto */
nav#mobile-menu {
  background-color: #09173d !important;
}

/* Voci del menu – testo bianco */
nav#mobile-menu a {
  color: #ffffff !important;
}

/* Hover sulle voci: sfondo bianco, testo blu */
nav#mobile-menu a:hover {
  background-color: #ffffff !important;
  color: #09173d !important;
}

/* Separatore bianco tra le voci */
nav#mobile-menu ul li {
  border-bottom: 1px solid #ffffff !important;
}

/* Bottone hamburger */
#nav-toggle, nav#mobile-menu #nav-cancel {
  background-color: #ffffff !important;
  color: #000000 !important;
}

/* Hover su bottone hamburger */
#nav-toggle:hover, nav#mobile-menu #nav-cancel:hover {
  background-color: #09173d !important;
  color: #ffffff !important;
}

@media (max-width: 768px) {
  .footer-logo {
    width: 60% !important;
  }
}