/* Css document */ 
/* ===============================
   IMPORT FONT
=============================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Open+Sans:wght@300;400;600&display=swap');

/* ===============================
   GENERALE
=============================== */
body {
    margin: 0;
    padding: 0;
    padding-bottom: 50px;
    font: normal 15px 'Open Sans', sans-serif;
    line-height: 26px;
    color: #333333;
    text-align: left;
    background: linear-gradient(135deg, #e6ebf2 0%, #d9e0ea 50%, #cfd7e3 100%);
}

a {
    color: #333333;
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    color: #999999;
}

/* ===============================
   CONTAINER GENERALE
=============================== */
#container {
    width: 800px;
    margin: 0 auto;
    background: #FFF;
    text-align: left;
}

/* ===============================
   HEADER MENU
=============================== */
#head1 {
    text-align: left;
    padding: 0;
    margin-top: 5px;
    background: url(../img/tfw_02.gif) repeat-y;
    height: 100px;
}

#head2 {
    clear: both;
    padding: 0;
    margin: 0;
    height: 1px;
}

#menu {
    padding: 0;
    margin: 0;
    float: right;
}

#menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#menu ul li {
    float: left;
    height: auto;
    width: auto;
    margin: 10px 6px;
    padding: 0;
    border-radius: 10px;
    background-color: #1D67A8;
    border: 1px solid #15588F;
}

#menu ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 14px;
    text-align: center;
    color: #ffffff;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    white-space: nowrap;
    transition: all 0.25s ease;
}

#menu ul li a:hover {
    background: #155a91;
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

#menu ul li.logo {
    background: transparent;
    border: none;
    margin: 5px;
    padding: 0;
    height: 95px;   /* blocca altezza uguale agli altri */
    display: flex;
    align-items: center;
}

#menu ul li.logo a {
    height: 95px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#menu ul li.logo img {
    height: 85px;
    width: auto;
    display: block;
}
    
/* ===============================
   COVER HEADER MODERNO
=============================== */
#cover {
    height: auto; /* niente altezza fissa */
    padding: 12px 20px;
    background: #f8f8f8; /* pulito e moderno */
    border-top: 1px solid #eee;
    border-bottom: 1px solid #ddd;
    text-align: center;
}

/* titolo */
#cover .cover-title {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #1D67A8;
    margin-bottom: 4px;
}

/* sottotitolo */
#cover p {
    margin: 0;
    font-size: 13px;
    color: #555;
    line-height: 1.4;
}

/* payoff */
#cover strong {
    color: #1D67A8;
}
/* ===============================
   TITOLI
=============================== */
#title h1 {
    color: #1D67A8;
    text-align: left;
    padding: 2px;
    margin: 2px;
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    border-bottom: 3px solid #1D67A8;
}

#text h1 {
    color: #1D67A8;
    font-family: 'Montserrat', sans-serif;
    text-align: left;
    margin: 2px;
    padding: 2px;
    border-bottom: 1px solid #1D67A8;
    font-size: 15px;
}

#text h2 {
    color: #1D67A8;
    font-family: 'Open Sans', sans-serif;
    font-size: 20px;
    border-bottom: 2px solid #1D67A8;
    padding-bottom: 5px;
    margin-top: 15px;
}

/* ===============================
   CONTENUTI
=============================== */
#text {
    margin: 0;
    padding: 0;
    text-align: justify;
    font-family: 'Open Sans', sans-serif;
}

#text p {
    padding: 2px;
    margin: 2px;
    text-align: justify;
    line-height: 30px;
}

/* ===============================
   BARRA BLU PRIMA DEL FOOTER
=============================== */
#text2 {
    padding: 0;
    margin: 0;
    height: 60px;
    border-top: 3px solid #1D67A8;
    border-bottom: 3px solid #1D67A8;
}

/* ===============================
   FOOTER
=============================== */
#footer {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: #f7f7f7;
    padding: 50px 20px 25px 20px;
    font-size: 14px;
    color: #333;
    box-sizing: border-box;
}

.footer-title {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 25px;
    display: block;
}

.footer-row {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-left, .footer-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.footer-icon {
    font-size: 16px;
    color: #000;
}

#footer a {
    color: #333;
    text-decoration: none;
}

#footer a:hover {
    text-decoration: underline;
}

/* ===============================
   FORM CONTATTI
=============================== */
.contact-form-card {
    background: #f7f7f7;
    padding: 20px;
    border-radius: 8px;
    max-width: 500px;
    margin: 20px auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.contact-form-card h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #222;
    font-weight: bold;
    font-family: 'Montserrat', sans-serif;
}

.contact-form-card label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.contact-form-card input[type="text"],
.contact-form-card textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
}

.contact-form-card input[type="submit"] {
    background-color: #007BFF;
    color: #fff;
    padding: 15px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.contact-form-card input[type="submit"]:hover {
    background-color: #0056b3;
}

/* ===============================
   PULSANTI GENERALI
=============================== */
.btn-primary,
.btn-secondary,
.btn-whatsapp {
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    color: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-block;
    margin-right: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
    font-family: 'Montserrat', sans-serif;
}

.btn-primary { background-color: #1D67A8; }
.btn-secondary { background-color: #f2a900; }
.btn-whatsapp { background-color: #25D366; }

.btn-primary:hover,
.btn-secondary:hover,
.btn-whatsapp:hover,
.btn-primary:active,
.btn-secondary:active,
.btn-whatsapp:active {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.25);
}

/* ===============================
   CARDS PRODOTTI
=============================== */
.cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
    margin: 20px 0;
}

.card {
    flex: 1 1 250px;
    color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    font-family: 'Open Sans', sans-serif;
}

.card img.card-img {
    max-width: 100%;
    border-radius: 8px;
}

.card h2 {
    margin-top: 10px;
    font-size: 20px;
    font-weight: bold;
    font-family: 'Open Sans', sans-serif;
}

.card p {
    font-size: 14px;
    margin: 10px 0 15px 0;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.btn-card {
    display: inline-block;
    background-color: rgba(255,255,255,0.9);
    color: #333;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s;
    font-family: 'Montserrat', sans-serif;
}

.btn-card:hover {
    background-color: #fff;
}

/* ===============================
   MEDIA QUERY
=============================== */
@media (max-width: 800px) {

    .cards-container {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
    }

    .card {
        flex: 1 1 calc(50% - 15px);
        box-sizing: border-box;
    }

}

#prodotti-page .cards-container h2,
#prodotti-page .cards-container p {
    color: #ffffff;
    border-bottom: none;
}
.catalogo-section {
    padding: 20px;
    margin: 20px 0;
    text-align: center;
    background: #fafafa;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
}

.catalogo-section h2 {
    margin-bottom: 20px;
    color: #054A8B;
}

.catalogo-cards {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.catalogo-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    width: 250px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.catalogo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.2);
}

.catalogo-card img {
    max-width: 100%;
    height: 180px;
    object-fit: contain;
    margin-bottom: 15px;
}

.catalogo-card h3 {
    font-size: 16px;
    margin-bottom: 15px;
}

.separator {
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, transparent, #1D67A8, transparent);
  margin: 25px 0 50px 0;
  opacity: 0.8;
}
/* ===============================
   BARRA RECENSIONE FISSA
=============================== */
.barra-recensione {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 2px solid #1D67A8;
    box-shadow: 0 -3px 10px rgba(0,0,0,0.12);
    z-index: 9999;
    text-align: center;
    padding: 10px 20px;
    box-sizing: border-box;
    font-size: 15px;
    cursor: pointer;
}

/* Link dentro la barra */
.barra-recensione a {
    color: #1D67A8;
    font-weight: bold;
    text-decoration: none;
}

.barra-recensione a:hover {
    text-decoration: underline;
}

/* Bottone chiusura */
.barra-recensione-close {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 16px;
    color: #999;
    font-weight: bold;
    transition: color 0.2s ease;
}

.barra-recensione-close:hover {
    color: #333;
}

/* ===============================
   SLIDER
=============================== */
#slider-wrapper {
    position: relative;
    width: 100%;
    height: 420px;
    overflow: hidden;
    border-top: 3px solid #ccc;
    border-bottom: 3px solid #ccc;
}
#slider-track {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}
.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px 25px;
    box-sizing: border-box;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0) 100%);
}
.slide-content h2 {
    margin: 0 0 6px 0;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 700;
    border-bottom: none;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.slide-content p {
    margin: 0 0 12px 0;
    color: #f0f0f0;
    font-size: 14px;
    line-height: 1.4;
    text-align: left;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.slide-btn {
    display: inline-block;
    background-color: #1D67A8;
    color: #ffffff;
    padding: 7px 16px;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease;
}
.slide-btn:hover {
    background-color: #155a91;
    color: #ffffff;
}
.slider-btn-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.35);
    color: white;
    border: none;
    padding: 10px 14px;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    border-radius: 4px;
    transition: background 0.2s ease;
}
.slider-btn-nav:hover { background: rgba(0,0,0,0.6); }
.slider-btn-nav.prev { left: 10px; }
.slider-btn-nav.next { right: 10px; }
#slider-dots {
    position: absolute;
    bottom: 12px;
    right: 15px;
    text-align: right;
}
.dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    margin: 0 3px;
    cursor: pointer;
}
.dot.active { background: white; }

/* ===============================
   RECENSIONI GOOGLE (FIX DEFINITIVO)
=============================== */

.footer-reviews {
    text-align: center;
    margin-top: 20px;
}

.footer-reviews h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 17px;
    margin-bottom: 5px;
    color: #1D67A8;
}

.reviews-subtitle {
    font-size: 12px;
    color: #777;
    margin-bottom: 15px;
}

/* SLIDER CON FADE */
.reviews-slider {
    position: relative;
    max-width: 100%;
    min-height: 140px;
    margin: 0 auto;
}

/* OGNI RECENSIONE */
.review {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;

    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.6s ease, transform 0.6s ease;

    padding: 10px 15px;
    box-sizing: border-box;
}

.review.active {
    opacity: 1;
    transform: translateY(0);
    position: relative;
}

/* HEADER RECENSIONE */
.review-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 6px;
}

/* AVATAR INIZIALI */
.avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #1D67A8;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* STELLE */
.stars {
    color: #f5b301;
    font-size: 15px;
    margin-bottom: 6px;
}

/* TESTO */
.review p {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    margin: 0;
}

/* LINK GOOGLE */
.review-link {
    font-size: 12px;
    color: #1D67A8;
    text-decoration: underline;
    display: inline-block;
    margin-top: 6px;
}

/* DOTS */
.reviews-dots {
    text-align: center;
    margin-top: 10px;
}

.review-dot {
    width: 8px;
    height: 8px;
    display: inline-block;
    margin: 0 4px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
}

.review-dot.active {
    background: #1D67A8;
}

/* LINK FINALE */
.reviews-all {
    margin-top: 10px;
    text-align: center;
}

.reviews-all a {
    font-size: 13px;
    color: #1D67A8;
    font-weight: 600;
    text-decoration: none;
}

.reviews-all a:hover {
    text-decoration: underline;
}
.stars {
    position: relative;
    display: inline-block;
    font-size: 14px;
    letter-spacing: 2px;
    color: #ccc;
}

/* stelle piene */
.stars::before {
    content: "★★★★★";
    color: #f5b301;
    position: absolute;
    left: 0;
    top: 0;
    overflow: hidden;
}