/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --olive-primary: #556B2F;
    --olive-dark: #2C3325;
    --cream-bg: #F9F7F2;
    --sand-secondary: #E8E4D9;
    --gold-accent: #C5A059;
    --white: #FFFFFF;
    --text-dark: #2C3325;
    --text-muted: #6B7055;
}
.great-vibes-regular {
  font-family: "Great Vibes", cursive;
  font-weight: 400;
  font-style: normal;
}



body {
    font-family: 'Manrope', sans-serif;
    background-color: #fff;
    color: var(--text-dark);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Great Vibes', cursive;
    font-weight: 500;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);

}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 38px;
    color: var(--olive-primary);
    transition: color 0.3s;
    font-family: 'Great Vibes', cursive;
}

.nav-logo:hover {
    color: var(--olive-dark);
}

.heart-icon {
    width: 24px;
    height: 24px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dark);
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--olive-primary);
}

.cart-icon {
    position: relative;
    padding: 8px;
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--gold-accent);
    color: white;
    font-size: 12px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--olive-primary);
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background: #fff;
}



.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--olive-primary);
    padding: 80px 80px 20px;
}

.hero-heart {
    margin: 0 ;
    animation: fadeIn 1s;
}

.hero-title {
    font-size: clamp(48px, 8vw, 96px);
    animation: fadeIn 1s 0.3s both;
}
.hero img {
    margin-top: -100px;
}
.hero-date {
    font-size: clamp(18px, 3vw, 24px);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 15px;
    animation: fadeIn 1s 0.5s both;
    margin-top: -240px;
    color: white;
}

.hero-location {
    font-size: clamp(16px, 2vw, 20px);
    margin-bottom: 30px;
    font-weight: 300;
    animation: fadeIn 1s 0.7s both;
    color: white;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeIn 1s 0.9s both;
}
h1.hero-title {
    margin: 0px;
}
section.section.section-alt {
    padding-top: 50px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 18px;
    font-family: 'Playfair Display', serif;
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--olive-primary);
    color: #fff;
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    color:var(--olive-primary);
}
section.bgprf{
  background: #F4F1EB;
  text-align: center;
  padding: 0px;
  margin: 0px;
}
.btn-secondary {
    border: 2px solid white;
    color: white;
    background: transparent;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-olive {
    background: var(--olive-primary);
    color: white;
}

.btn-olive:hover {
    background: var(--olive-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(85, 107, 47, 0.2);
}

/* Sections */
.section {
    padding: 20px 80px 80px 80px;
}

.section-alt {
    background: rgba(232, 228, 217, 0.3);
}

.text-center {
    text-align: center;
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    color: var(--olive-primary);
    margin-bottom: 32px;
        font-family: 'Playfair Display', serif;
}

.section-text {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 24px;
    line-height: 1.8;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.card {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    display: block;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card-title {
    font-size: 24px;
    color: var(--olive-primary);
    margin-bottom: 16px;
    font-family: 'Playfair Display', serif;
}

.card-text {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Footer */
.footer {
    background: #fff;

    padding: 48px 24px;

}

.footer-content {
    text-align: center;
}

.footer-names {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--olive-primary);
    font-size: 38px;
    font-family: 'Great Vibes', cursive;
    margin-bottom: 16px;
}

.footer-date {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.footer-location {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.footer-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.footer-contact a:hover {
    color: var(--olive-primary);
}

.footer-love {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 16px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
#menuresponsive{display: none;}


#menuresponsive.menu-open {
    display: block;
    width: 100%;
    background: #556B2F;
    position: fixed;
    height: 100vh;
    top: 0px;
    left: 0px;
}
#menuresponsive .nav-logo {
    width: 80%;
    float: left;
    height: 80px;
}

#menuresponsive button#close {
    background: transparent;
    border: none;
    float: right;
}
#menuresponsive #close span {
    font-size: 40px;
    display: flex;
    align-items: center;
    line-height: 80px;
    color: #556B2F;
}
#menuresponsive ul#menu-menu-principale {
    position: relative;
    display: block;
    background: transparent;
    text-align: center;

}
#menuresponsive .nav-links a {
    font-size: 1.4rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #E8E4D9;
    transition: color 0.3s;
    line-height: 6rem;
}

#menuresponsive .footer-content {
    text-align: center;
    position: absolute;
    bottom: 50px;
    width: 100%;
}
#menuresponsive .footer-names, #menuresponsive .footer-date, #menuresponsive .footer-location, #menuresponsive .footer-contact, #menuresponsive .footer-love{
  color:#E8E4D9;
}

#viaggioSection form {
    margin-bottom: 64px;
    grid-template-columns: 1fr !important;
    display: grid;
    gap: 32px;
    align-items: center;
    background: white;
    padding: 0px 0px 32px 0px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
h2.wp-block-surecart-product-title {
  color: var(--olive-primary);
  padding-left: 32px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-family: 'Playfair Display', serif;
  font-weight: 500 !important;
  font-size: 24px !important;
}
.sc-prose.wp-block-surecart-product-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin: 0 auto 24px;
    line-height: 1.8;
    padding-left: 32px;
}
.wp-block-surecart-product-list-price {
    font-size: 24px !important;
    font-family: 'Playfair Display', serif;
    color: var(--gold-accent);
    padding-left: 32px;
}

.wp-block-button__link.sc-button__link.wp-block-surecart-product-quick-view-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--olive-primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}


.wp-block-cover.is-light.has-custom-content-position.is-position-top-center.has-aspect-ratio {
    max-height: 270px;
    width: 100%;
}

span.wp-block-cover__background.has-background-dim-0.has-background-dim {
    max-height: 270px;
}


img.wp-block-cover__image-background.wp-post-image{
    max-height: 270px;
}


/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 24px;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-top: 1px solid rgba(85, 107, 47, 0.1);
        display: none;
        list-style: none;
    }

    .nav-links.active {
        display: flex;
    }



    .cards-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 64px 24px;
    }
}

@media (max-width: 1200px) {
  p.hero-date {margin-top: -190px;}
  }


  @media (max-width: 980px) {
    p.hero-date {margin-top: -150px;}

    .hero img {
      margin-top: -90px;
      object-fit: cover;
      height: 400px;
  }
}
@media (max-width: 768px) {
  h1.hero-title {
      margin-top: 100px;
  }
  .hero img {
    margin-top: -60px;
  }
  .hero-content{
    padding:0px;
  }
  .hero-content {
    padding-bottom: 50px;
  }
  p.hero-date {
    margin-top: -130px;
  }
  .btn-primary {
    display: block;
    width: 250px;
  }


}

section.section.rsvp {
    padding: 0px 24px;
    padding-bottom:90px;
}
input.wpcf7-form-control.wpcf7-submit.has-spinner.btn.btn-primary {
    margin-top: 20px;
}
section.section.rsvpt {
    padding-top: 120px;
}

/* CF7 – mantiene i colori del tema, cambia solo la “struttura bordo” */
.eg-cf7 .wpcf7-form-control.wpcf7-text,
.eg-cf7 .wpcf7-form-control.wpcf7-email,
.eg-cf7 .wpcf7-form-control.wpcf7-tel,
.eg-cf7 .wpcf7-form-control.wpcf7-url,
.eg-cf7 .wpcf7-form-control.wpcf7-number,
.eg-cf7 .wpcf7-form-control.wpcf7-date,
.eg-cf7 .wpcf7-form-control.wpcf7-textarea,
.eg-cf7 .wpcf7-form-control.wpcf7-select {
  width: 100%;
  box-sizing: border-box;

  background: transparent;
  color: inherit;
  font: inherit;

  border: 0 !important;
  border-bottom: 1px solid #6B8E23 !important; /* verde oliva (OliveDrab) */
  border-radius: 0 !important;

  padding: 12px 2px;
  outline: none;

  transition: border-bottom-color .2s ease, border-bottom-width .2s ease;
}
.wpcf7-form {
  max-width: 640px;
  margin: 0 auto;
  padding: var(--eg-pad);
  background: var(--eg-surface);
  border: 1px solid var(--eg-border);
  border-radius: calc(var(--eg-radius) + 2px);
  box-shadow: var(--eg-shadow);
  backdrop-filter: blur(6px);
    display: block;

}


.eg-cf7 form.wpcf7-form {
  max-width: 640px;
  margin: 0 auto;
  padding: var(--eg-pad);
  background: var(--eg-surface);
  border: 1px solid var(--eg-border);
  border-radius: calc(var(--eg-radius) + 2px);
  box-shadow: var(--eg-shadow);
  backdrop-filter: blur(6px);
}
.eg-cf7 label {
  display: block;
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 20px;

}

input.wpcf7-form-control.wpcf7-submit.has-spinner.btn.btn-primary {
    margin-top: 30px;
}

/* Focus: più “presente” ma sempre minimal */
.eg-cf7 .wpcf7-form-control:focus,
.eg-cf7 .wpcf7-form-control:focus-visible {
  border-bottom-color: #556B2F !important; /* olive più scuro */
  border-bottom-width: 2px !important;
}

/* Placeholder (sempre in palette: eredita e schiarisce) */
.eg-cf7 ::placeholder {
  color: currentColor;
  opacity: .55;
}

/* Textarea un po’ più alta */
.eg-cf7 .wpcf7-form-control.wpcf7-textarea {
  min-height: 150px;
  resize: vertical;
}

/* Errori: solo bordo basso rosso */
.eg-cf7 .wpcf7-not-valid {
  border-bottom-color: #b00020 !important;
  border-bottom-width: 2px !important;
}
.eg-cf7 .wpcf7-not-valid-tip {
  margin-top: 8px;
  font-size: .9rem;
}

/* Messaggio di output (successo/errore) sobrio */
.eg-cf7 .wpcf7-response-output {
  margin: 16px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 12px;
  background: rgba(255,255,255,.55);
}

/* Se il tema mette un box-shadow sugli input, lo “spegniamo” */
.eg-cf7 input,
.eg-cf7 textarea,
.eg-cf7 select {
  box-shadow: none !important;
}



li.sc-product-item:last-child {
    display: none;
}

.contenuto-da-backend li h2 {
    font-size: 20px;
    color: var(--olive-primary);
    font-family: 'Playfair Display', serif;
    text-align: left;
}

section.contenuto-da-backend li {
    display: grid;
    align-items: center;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding-bottom: 30px;
}

img.attachment-woocommerce_thumbnail.size-woocommerce_thumbnail {
    border-radius: 16px 16px 0px 0px;
}
.contenuto-da-backend li h2 {
    padding: 0px 20px;
}


/* Card prodotto */
li.wc-block-product{
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 12px;
  align-items: center;
}

/* Immagine e titolo centrati e a tutta larghezza */
li.wc-block-product > .wc-block-grid__product-image,
li.wc-block-product > .wp-block-post-title{
  grid-column: 1 / -1;
  justify-self: center;
  text-align: center;
  width: 100%;
}

/* Centra davvero l'immagine (alcuni temi la lasciano inline) */
li.wc-block-product > .wc-block-grid__product-image a,
li.wc-block-product > .wc-block-grid__product-image img{
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Prezzo a sinistra della riga, bottone a destra della riga */
li.wc-block-product > .wp-block-woocommerce-product-price{
  grid-column: 1;
  justify-self: normal;
  margin: 0;
}

li.wc-block-product > .wp-block-woocommerce-product-button{
  grid-column: 2;
  justify-self: start;
  margin: 0;
}

/* Evita che il bottone si allarghi a 100% */
li.wc-block-product .wp-block-woocommerce-product-button,
li.wc-block-product .wp-block-woocommerce-product-button .wp-block-button__link{
  width: auto !important;
  white-space: nowrap;
}

/* Mobile: tornano uno sotto l'altro */
@media (max-width: 480px){
  li.wc-block-product{ grid-template-columns: 1fr; }
  li.wc-block-product > .wp-block-woocommerce-product-price,
  li.wc-block-product > .wp-block-woocommerce-product-button{
    grid-column: 1 / -1;
    justify-self: center;
  }
  li.wc-block-product .wp-block-woocommerce-product-button a.added_to_cart.wc_forward{            transform: none ! IMPORTANT;}
}
bdi {
    font-size: 25px;
    color: var(--gold-accent);
    text-align: left;
}
.wc-block-components-product-button__button {
    font-size: 15px !important;
    background: var(--olive-primary);
    font-family: 'Playfair Display', serif;
}

a.added_to_cart.wc_forward {
    font-size: 15px;
    position: absolute;
    left: 50%;
    margin-left: -60px;
}


/* Mobile: 1 per riga (default) */
.wc-block-product-template__responsive.columns-3{
  grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
}

/* Tablet: 2 per riga */
@media (min-width: 768px){
  .wc-block-product-template__responsive.columns-3{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Schermi grandi: 3 per riga */
@media (min-width: 1024px){
  .wc-block-product-template__responsive.columns-3{
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}


li.wc-block-product .wp-block-woocommerce-product-button{
  position: relative;
}

/* stile applicato SOLO dentro quel contenitore */
li.wc-block-product .wp-block-woocommerce-product-button a.added_to_cart.wc_forward{
  font-size: 15px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%); /* meglio di margin-left negativo */
}

.woocommerce-cart, .woocommerce-checkout {
    padding-top: 80px;
}

.wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button {
    color: #fff;
    background: var(--text-muted);
    border-radius: 16px;
}
h2.wc-block-components-title.wc-block-components-checkout-step__title, .wc-block-cart__empty-cart__title, .wcfpm-title,  h3.wc-block-components-product-name, h2.wc-bacs-bank-details-heading,  h3.wc-bacs-bank-details-account-name, h2.woocommerce-order-details__title, h2.woocommerce-column__title {
    font-family: 'Playfair Display', serif;
}

img.attachment-woocommerce_thumbnail.size-woocommerce_thumbnail {
    max-height: 250px;
}
.woocommerce ul.order_details li strong, .woocommerce-order-overview__total.total bdi {
    font-size: 1.1em;
}
.woocommerce ul.order_details li, p.woocommerce-notice, h3.wc-bacs-bank-details-account-name{
    padding-bottom: 20px;
}
ul.woocommerce-order-overview.woocommerce-thankyou-order-details.order_details li, ul.wc-bacs-bank-details.order_details.bacs_details li {
    width: 50%;
    float: left;
    display: block;
    margin: 0px;
    border-right: none;
}

li.account_number, li.sort_code, li.woocommerce-order-overview__order.order {
    display: none!important;
}
li.iban {
    width: 100% !important;
}
ul.wc-bacs-bank-details.order_details.bacs_details li {
    width: 100%;
}
li.bic strong {
    color: var(--text-muted);
}

li.bic {
    color: white;
}
.post-281 bdi {
    display: none;
}
.wp-block-woocommerce-empty-cart-block h2.wp-block-heading.has-text-align-center.with-empty-cart-icon.wc-block-cart__empty-cart__title {
    display: block;
}
.wp-block-woocommerce-empty-cart-block h2.wp-block-heading.has-text-align-center {
    display: none;
}
.wp-block-woocommerce-empty-cart-block hr.wp-block-separator.has-alpha-channel-opacity.is-style-dots {
    display: none;
}
.wp-block-woocommerce-empty-cart-block .wc-block-grid.wp-block-product-new.wp-block-woocommerce-product-new.wc-block-product-new.has-4-columns {
    display: none;
}
