/* =========================================
   CUSTOM STYLES - GIARDINIERE TEMA VERDE
   ========================================= */

/* 1. PALETTE COLORI (Sostituisce l'azzurro originale con Verde Foresta) */
input[type="submit"].primary,
input[type="reset"].primary,
input[type="button"].primary,
button.primary,
.button.primary,
a.button.primary {
    background-color: #2e8b57 !important; /* SeaGreen */
    box-shadow: inset 0 0 0 2px #2e8b57 !important;
    color: #ffffff !important;
}

input[type="submit"].primary:hover,
input[type="reset"].primary:hover,
input[type="button"].primary:hover,
button.primary:hover,
.button.primary:hover,
a.button.primary:hover {
    background-color: #3cb371 !important; /* MediumSeaGreen */
    box-shadow: inset 0 0 0 2px #3cb371 !important;
}

/* Colore delle icone principali e dei testi in evidenza */
.icons-grid li .icon {
    color: #2e8b57 !important;
}

/* 2. EFFETTO PARALLAX SULLE SEZIONI CON IMMAGINE */
/* Il template sposta l'immagine nel background via JS. Con questo forziamo il parallax */
.main.special {
    background-attachment: fixed !important;
    background-position: center center !important;
}

/* 3. EFFETTO HOVER SULLE ICONE DEI SERVIZI */
.icons-grid li {
    transition: transform 0.3s ease, background-color 0.3s ease;
    border-radius: 1px;
    padding: 1em 1em 1em 1em !important;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* 4. DESIGN DELLE "CARD" PER I PRODOTTI */
.product-card {
    text-align: center;
    padding: 2.5em 1.5em;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid #f0f0f0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 30px rgba(46, 139, 87, 0.15); /* Ombra verdina */
    border-color: #2e8b57;
}

.product-card .icon {
    font-size: 3em;
    color: #2e8b57;
    margin-bottom: 0.5em;
    display: block;
}

.product-card h3 {
    font-size: 1.25em;
    margin-bottom: 0.5em;
}

.product-card p {
    font-size: 0.9em;
    margin-bottom: 1.5em;
    flex-grow: 1;
}

.product-card .price {
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
    display: block;
    margin-bottom: 1em;
}

.product-card .actions {
    margin-bottom: 0;
}

.watermark {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    pointer-events: none;
    white-space: nowrap;
    user-select: none;
    background-image: url("data:image/svg+xml,%3Csvg width='350' height='350' xmlns='http://www.w3.org/2000/svg'%3E%3Ctext x='50%25' y='50%25' font-family='Montserrat, sans-serif' font-size='30' font-weight='900' fill='rgba(125, 0, 0, 0.20)' text-anchor='middle' dominant-baseline='middle' transform='rotate(-45 175 175)'%3EBOZZA - IGNORARE TUTTO%3C/text%3E%3C/svg%3E");
    background-repeat: repeat;
}


.gallery-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin-top:1rem}
.gallery-item{position:relative;overflow:hidden;border-radius:6px;cursor:pointer}
.gallery-item img{width:100%;height:220px;object-fit:cover;display:block;transition:transform .3s}
.gallery-item:hover img{transform:scale(1.05)}
.gallery-overlay{position:absolute;bottom:0;left:0;right:0;background:rgba(0,0,0,.5);color:#fff;text-align:center;padding:.5rem;opacity:0;transition:opacity .3s;font-size:.9rem}
.gallery-item:hover .gallery-overlay{opacity:1}
.lightbox{display:none;position:fixed;inset:0;background:rgba(0,0,0,.9);z-index:9999;align-items:center;justify-content:center}
.lightbox.active{display:flex}
.lightbox img{max-width:90vw;max-height:90vh;border-radius:6px}
.lightbox-close{position:absolute;top:1.5rem;right:2rem;color:#fff;font-size:2.5rem;cursor:pointer;line-height:1}
@media(max-width:768px){.gallery-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:480px){.gallery-grid{grid-template-columns:1fr}}

.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background: #25d366;
    color: #fff !important;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 9999;
    transition: transform 0.2s;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background: #25d366 !important;
    box-shadow: inset 0 0 0 2px #25d366 !important;
}