/* ============================================================
   GiardinoVivo – Homepage Styles
   ============================================================ */

body {
    height: auto !important;
}

/* ── FULL-WIDTH OVERRIDE ─────────────────────────────────── */
/* Annulla tutti i limiti di larghezza imposti da Bootstrap e tema legacy */
#sitewrapper {
    max-width: none !important;
    width: 100% !important;
    overflow-x: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* Il container Bootstrap dentro il sitewrapper non deve limitare le sezioni GV */
#sitewrapper > .container,
#sitewrapper .pZxRx,
#sitewrapper .b0t70b {
    max-width: none !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* I blocchi HTML di Gutenberg devono essere full-width */
.wp-block-html {
    max-width: none !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
}

/* Reset larghezza full-width per sezioni homepage */
.gv-section {
    width: 100%;
    box-sizing: border-box;
    margin-left: 0;
    margin-right: 0;
}

/* ── HERO ─────────────────────────────────────────────────── */
.gv-hero {
    background-image: url('../assets/images/background.png');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.gv-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10,30,5,0.78) 0%, rgba(26,74,10,0.72) 50%, rgba(45,80,22,0.68) 100%);
    pointer-events: none;
    z-index: 0;
}

.gv-hero__inner {
    max-width: 820px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.gv-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    color: #c8e6c9;
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .4rem 1.1rem;
    border-radius: 100px;
    margin-bottom: 1.75rem;
}

.gv-hero__title {
    color: #fff;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 1.25rem;
    letter-spacing: -.02em;
}

.gv-hero__title span {
    color: #81c784;
}

.gv-hero__subtitle {
    color: #b2dfb4;
    font-size: clamp(1rem, 2vw, 1.4rem);
    margin: 0 0 2.5rem;
    line-height: 1.6;
}

.gv-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.gv-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-weight: 700;
    font-size: 1rem;
    padding: .85rem 2rem;
    border-radius: 8px;
    text-decoration: none !important;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    cursor: pointer;
}

.gv-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
}

.gv-btn--primary {
    background: #fff;
    color: #2D5016 !important;
    box-shadow: 0 4px 14px rgba(0,0,0,.15);
}

.gv-btn--primary:hover {
    background: #f0f7ec;
}

.gv-btn--outline {
    background: transparent;
    color: #fff !important;
    border: 2px solid rgba(255,255,255,.6);
}

.gv-btn--outline:hover {
    background: rgba(255,255,255,.1);
    border-color: #fff;
}

.gv-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255,255,255,.12);
}

.gv-hero__stat-num {
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    display: block;
    line-height: 1;
}

.gv-hero__stat-label {
    color: #a5d6a7;
    font-size: .85rem;
    display: block;
    margin-top: .25rem;
}

/* ── SEZIONI GENERICHE ────────────────────────────────────── */
.gv-section--light {
    background: #f7faf4;
}

.gv-section--dark {
    background: #2D5016;
}

.gv-section--white {
    background: #fff;
}

.gv-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 5rem 2.5rem;
}

.gv-section-label {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: #4a8c1c;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: .75rem;
}

.gv-section-label--light {
    color: #81c784;
}

.gv-section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.02em;
    margin: 0 0 .75rem;
}

.gv-section-title--dark {
    color: #1a3a0a;
}

.gv-section-title--white {
    color: #fff;
}

.gv-section-subtitle {
    font-size: 1.35rem;
    line-height: 1.7;
    max-width: 600px;
}

.gv-section-subtitle--muted {
    color: #4f6044;
}

.gv-section-subtitle--light {
    color: #b2dfb4;
}

.gv-section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.gv-section-header .gv-section-subtitle {
    margin: 0 auto;
}

/* ── CARDS SERVIZI ────────────────────────────────────────── */
.gv-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
    align-items: stretch;
}

.gv-service-card {
    background: #fff;
    border-radius: 16px;
    padding: 2.25rem;
    border: 1px solid #e8f0e2;
    display: flex;
    flex-direction: column;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.gv-service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(45,80,22,.12);
    border-color: #a5d6a7;
}

.gv-service-card__icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.4rem;
    color: #2D5016;
    flex-shrink: 0;
}

.gv-service-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a3a0a;
    margin: 0 0 .75rem;
}

.gv-service-card__text {
    color: #4f6044;
    font-size: 1.25rem;
    line-height: 1.7;
    flex: 1;
    margin: 0;
}

.gv-service-card__link {
    margin-top: 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: #2D5016;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: gap .2s ease;
}

.gv-service-card__link:hover {
    gap: .6rem;
    color: #4a8c1c;
    text-decoration: none;
}

/* ── PERCHÉ NOI ───────────────────────────────────────────── */
.gv-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.gv-feature-item {
    text-align: center;
    padding: 2rem 1.5rem;
}

.gv-feature-item__icon {
    font-size: 2rem;
    color: #4a8c1c;
    margin-bottom: 1rem;
    display: block;
}

.gv-feature-item__title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a3a0a;
    margin: 0 0 .6rem;
}

.gv-feature-item__text {
    color: #4f6044;
    font-size: 1.25rem;
    line-height: 1.65;
    margin: 0;
}

/* ── RECENSIONI ───────────────────────────────────────────── */
.gv-reviews-carousel {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.gv-reviews-viewport {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    width: 100%;
}

.gv-reviews-viewport::-webkit-scrollbar {
    display: none;
}

.gv-reviews-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 2rem) / 3);
    gap: 1rem;
    align-items: stretch;
}

.gv-reviews-nav {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.25);
    background: rgba(255,255,255,.12);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.gv-reviews-nav:hover {
    background: rgba(255,255,255,.2);
}

.gv-review-card {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(4px);
    transition: background .3s ease, transform .3s ease;
    min-height: 270px;
    scroll-snap-align: start;
}

.gv-review-card:hover {
    background: rgba(255,255,255,.17);
    transform: translateY(-4px);
}

.gv-review-card__stars {
    color: #FFD54F;
    font-size: 1rem;
    letter-spacing: .1em;
    margin-bottom: 1rem;
}

.gv-review-card__text {
    color: #e8f5e9;
    font-size: 1.25rem;
    line-height: 1.7;
    font-style: italic;
    flex: 1;
    margin: 0 0 1.25rem;
    min-height: 7.2em;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gv-review-card__author {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.gv-review-card__avatar {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c8e6c9;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.gv-review-card__name {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    margin: 0;
    line-height: 1.2;
}

.gv-review-card__meta {
    color: #a5d6a7;
    font-size: .78rem;
    margin: .1rem 0 0;
}

@media (max-width: 1024px) {
    .gv-reviews-track {
        grid-auto-columns: calc((100% - 1rem) / 2);
    }
}

@media (max-width: 640px) {
    .gv-reviews-carousel {
        gap: .6rem;
    }

    .gv-reviews-track {
        grid-auto-columns: 100%;
    }

    .gv-reviews-nav {
        width: 34px;
        height: 34px;
    }
}

/* ── CTA BANNER ───────────────────────────────────────────── */
.gv-cta {
    background: linear-gradient(135deg, #1a4a0a, #2D5016, #3d6b20);
    text-align: center;
}

.gv-cta__title {
    color: #fff;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    margin: 0 0 1rem;
}

.gv-cta__subtitle {
    color: #b2dfb4;
    font-size: 1.35rem;
    margin: 0 0 2rem;
}

/* ── CONTATTI ─────────────────────────────────────────────── */
.gv-contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2.5rem;
    align-items: start;
}

.gv-contact-info {
    background: linear-gradient(135deg, #2D5016, #4a8c1c);
    border-radius: 16px;
    padding: 2.5rem;
}

.gv-contact-info__title {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 1.75rem;
}

.gv-contact-info__item {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    margin-bottom: 1.25rem;
    color: #c8e6c9;
    font-size: 1.25rem;
    line-height: 1.6;
}

.gv-contact-info__item i {
    color: #81c784;
    font-size: 1rem;
    margin-top: .15rem;
    flex-shrink: 0;
    width: 18px;
}

.gv-contact-info__item strong {
    color: #fff;
    display: block;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: .1rem;
}

.gv-contact-form-wrap {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 24px rgba(45,80,22,.08);
    border: 1px solid #e8f0e2;
}

/* ── ANIMAZIONI ───────────────────────────────────────────── */
@keyframes gv-fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes gv-bounce {
    0%, 100% { transform: translateY(-6px); }
    50%       { transform: translateY(0); }
}

.gv-animate {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .6s ease, transform .6s ease;
}

.gv-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.gv-animate.is-visible.gv-bounce {
    animation: gv-bounce .5s ease .6s;
}

/* delay cascata nelle griglie */
.gv-animate:nth-child(1) { transition-delay: .05s; }
.gv-animate:nth-child(2) { transition-delay: .15s; }
.gv-animate:nth-child(3) { transition-delay: .25s; }
.gv-animate:nth-child(4) { transition-delay: .35s; }
.gv-animate:nth-child(5) { transition-delay: .45s; }
.gv-animate:nth-child(6) { transition-delay: .55s; }

/* ── CONTACT FORM 7 ──────────────────────────────────────── */
.gv-contact-form-wrap .wpcf7 p {
    margin-bottom: 1.1rem;
}

.gv-contact-form-wrap .wpcf7 label {
    display: block;
    font-size: .82rem;
    font-weight: 700;
    color: #3a5c1a;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: .4rem;
}

.gv-contact-form-wrap .wpcf7 input[type="text"],
.gv-contact-form-wrap .wpcf7 input[type="email"],
.gv-contact-form-wrap .wpcf7 input[type="tel"],
.gv-contact-form-wrap .wpcf7 select,
.gv-contact-form-wrap .wpcf7 textarea {
    width: 100%;
    padding: .75rem 1rem;
    border: 1.5px solid #d4e6c3;
    border-radius: 8px;
    font-size: .95rem;
    color: #2a3a1a;
    background: #f9fdf5;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
    font-family: inherit;
}

.gv-contact-form-wrap .wpcf7 input:focus,
.gv-contact-form-wrap .wpcf7 textarea:focus,
.gv-contact-form-wrap .wpcf7 select:focus {
    outline: none;
    border-color: #4a8c1c;
    box-shadow: 0 0 0 3px rgba(74,140,28,.12);
    background: #fff;
}

.gv-contact-form-wrap .wpcf7 textarea {
    min-height: 140px;
    resize: vertical;
}

.gv-contact-form-wrap .wpcf7 .wpcf7-submit,
.gv-contact-form-wrap .wpcf7 input[type="submit"] {
    background: linear-gradient(135deg, #2D5016, #4a8c1c);
    color: #fff;
    border: none;
    padding: 1.25rem 2.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: .03em;
    transition: transform .2s, box-shadow .2s;
    width: 100%;
}

.gv-contact-form-wrap .wpcf7 input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45,80,22,.3);
}

.gv-contact-form-wrap .wpcf7 .wpcf7-acceptance label {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    text-transform: none;
    font-weight: 400;
    color: #6b7c61;
    font-size: .88rem;
    letter-spacing: 0;
}

.gv-contact-form-wrap .wpcf7 .wpcf7-response-output {
    border-radius: 8px;
    padding: .75rem 1rem;
    margin-top: 1rem;
    font-size: 1.25rem;
    border: none;
}

.gv-contact-form-wrap .wpcf7 .wpcf7-mail-sent-ok {
    background: #e8f5e9;
    color: #2D5016;
}

.gv-contact-form-wrap .wpcf7 .wpcf7-validation-errors,
.gv-contact-form-wrap .wpcf7 .wpcf7-spam-blocked {
    background: #fff3e0;
    color: #e65100;
}

/* ── GALLERIA FOTO GBP ───────────────────────────────────── */
.gv-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 240px;
    gap: .75rem;
}

.gv-gallery-grid .gv-gallery-item:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

.gv-gallery-item {
    overflow: hidden;
    border-radius: 12px;
    position: relative;
    background: #1a3a0a;
    cursor: pointer;
}

.gv-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.gv-gallery-item:hover img {
    transform: scale(1.07);
}

.gv-gallery-item__overlay {
    position: absolute;
    inset: 0;
    background: rgba(10,30,5,0);
    transition: background .3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gv-gallery-item:hover .gv-gallery-item__overlay {
    background: rgba(10,30,5,.45);
}

.gv-gallery-item__overlay i {
    color: #fff;
    font-size: 2rem;
    opacity: 0;
    transform: scale(.8);
    transition: opacity .3s ease, transform .3s ease;
}

.gv-gallery-item:hover .gv-gallery-item__overlay i {
    opacity: 1;
    transform: scale(1);
}

.gv-gallery-item--placeholder {
    background: linear-gradient(135deg, #c8e6c9, #a5d6a7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    color: #2D5016;
    font-size: 1.25rem;
    font-weight: 600;
    border-radius: 12px;
}

.gv-gallery-item--placeholder i {
    font-size: 2rem;
    color: #4a8c1c;
}

/* Lightbox */
.gv-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.gv-lightbox.is-open {
    display: flex;
}

.gv-lightbox__img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 8px;
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0,0,0,.6);
}

.gv-lightbox__close {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    background: rgba(255,255,255,.1);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}

.gv-lightbox__close:hover {
    background: rgba(255,255,255,.2);
}

.gv-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 1.5rem;
    background: rgba(255,255,255,.1);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s;
}

.gv-lightbox__nav:hover {
    background: rgba(255,255,255,.25);
}

.gv-lightbox__prev { left: 1.25rem; }
.gv-lightbox__next { right: 1.25rem; }

@media (max-width: 767px) {
    .gv-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 180px;
    }
    .gv-gallery-grid .gv-gallery-item:first-child {
        grid-column: span 2;
        grid-row: span 1;
    }
}

/* ── PACCHETTI ABBONAMENTI ────────────────────────────────── */
.gv-pacchetti-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.gv-pacchetto-card {
    background: #fff;
    border: 2px solid #e8f0e2;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.gv-pacchetto-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(45,80,22,.12);
    border-color: #a5d6a7;
}

.gv-pacchetto-card--evidenziato {
    border-color: #2D5016;
    background: linear-gradient(145deg, #f0f7ec, #fff);
    box-shadow: 0 8px 32px rgba(45,80,22,.15);
}

.gv-pacchetto-card__badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #2D5016, #4a8c1c);
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .35rem 1.1rem;
    border-radius: 100px;
    white-space: nowrap;
}

.gv-pacchetto-card__titolo {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1a3a0a;
    margin: 0;
    text-align: center;
}

.gv-pacchetto-card__desc {
    color: #6b7c61;
    font-size: 1rem;
    line-height: 1.6;
    text-align: center;
    margin: 0;
}

.gv-pacchetto-card__prezzo {
    text-align: center;
    padding: 1rem 0;
    border-top: 1px solid #e8f0e2;
    border-bottom: 1px solid #e8f0e2;
}

.gv-pacchetto-card__prezzo-val {
    font-size: 2.8rem;
    font-weight: 800;
    color: #2D5016;
    line-height: 1;
}

.gv-pacchetto-card__prezzo-label {
    color: #6b7c61;
    font-size: .95rem;
    margin-left: .3rem;
}

.gv-pacchetto-card__features {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.gv-pacchetto-card__features li {
    color: #3a5c1a;
    font-size: 1rem;
    padding: .45rem 0;
    border-bottom: 1px solid #f0f7ec;
    display: flex;
    align-items: center;
    gap: .6rem;
}

.gv-pacchetto-card__features li:last-child {
    border-bottom: none;
}

.gv-pacchetto-card__features li i {
    color: #4a8c1c;
    font-size: .85rem;
    flex-shrink: 0;
}

.gv-btn--outline-dark {
    background: transparent;
    color: #2D5016 !important;
    border: 2px solid #2D5016;
}

.gv-btn--outline-dark:hover {
    background: #f0f7ec;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 767px) {
    .gv-contact-grid {
        grid-template-columns: 1fr;
    }
    .gv-hero__stats {
        gap: 1.5rem;
    }
    .gv-container {
        padding: 3.5rem 1.25rem;
    }
    .gv-pacchetti-grid {
        grid-template-columns: 1fr;
    }
}
