/*
Theme Name: Holidays Voucher Child
Theme URI: https://www.holidaysvoucher.com/
Description: Child theme per personalizzazioni sicure di Holidays Voucher.
Author: Holidays Voucher
Template: holidays-voucher
Version: 1.8.5
Text Domain: holidays-voucher-child
*/

/* I titoli delle title area devono mantenere contrasto su ogni immagine. */
.hv-page-hero h1,
.hv-activity-hero h1,
.hv-business-hero h1,
.hv-places-hero h1,
.hv-card-product__hero h1 {
  color: #fff !important;
}

/*
 * Gli occhielli nelle aree chiare usano un verde leggibile. Il lime resta
 * riservato alle title area e ai pannelli scuri, dove mantiene il contrasto.
 */
.hv-internal-main .hv-section-label {
  color: #617919;
}
.hv-internal-main .hv-section-label span {
  background: currentColor;
}
.hv-internal-main .hv-how-network .hv-section-label,
.hv-internal-main .hv-card-story-holiday .hv-section-label,
.hv-internal-main .hv-cards-support .hv-section-label,
.hv-internal-main .hv-benefits-cta .hv-section-label {
  color: var(--hv-lime);
}

/* La sezione riferimenti dei Contatti e' scura: qui il lime e' corretto. */
.hv-contact-directory .hv-contact-label {
  color: var(--hvc-lime);
}

/*
 * Desktop compatti e browser al 125%.
 * Il vecchio breakpoint trasformava la CTA in una sola icona tra 851 e
 * 1120 CSS px. A 125% un monitor da 1366 px entra proprio in quella fascia.
 * Manteniamo quindi il testo, comprimendo in modo progressivo gli spazi.
 */
@media (min-width: 941px) and (max-width: 1180px) {
  .site-header {
    gap: clamp(8px, 1vw, 13px);
    width: calc(100% - 28px);
    min-height: 76px;
    padding: 10px 12px 10px 17px;
  }
  .site-header .brand-logo-image { width: clamp(148px, 15.2vw, 174px); }
  .site-header .primary-nav { gap: clamp(7px, 1vw, 14px); }
  .site-header .primary-nav a {
    font-size: clamp(10.5px, 1.02vw, 12px);
    white-space: nowrap;
  }
  .site-header .nav-cta {
    width: auto;
    min-width: 132px;
    min-height: 50px;
    padding: 0 13px;
    gap: 7px;
    font-size: 11.5px;
    line-height: 1.15;
    white-space: nowrap;
  }
  .site-header .nav-cta svg { width: 17px; flex: 0 0 17px; }

  /* Mappa e risultati restano affiancati anche con viewport CSS ridotta. */
  .partner-map-frame {
    grid-template-columns: minmax(0, 1fr) minmax(292px, 34%);
    gap: 12px;
  }
  .partner-map-canvas,
  .partner-map-side { min-height: 520px; }
  .partner-map-results-full { max-height: 520px; padding: 15px; }
  .partner-result { grid-template-columns: 58px minmax(0, 1fr) auto; gap: 9px; }
  .partner-result img { width: 58px; height: 56px; border-radius: 14px; }
}

/*
 * Sotto 941 CSS px il menu diventa realmente mobile: niente voci schiacciate
 * e CTA sempre testuale. È il comportamento corretto anche con zoom elevato.
 */
@media (min-width: 681px) and (max-width: 940px) {
  .site-header {
    top: 12px;
    width: calc(100% - 24px);
    min-height: 70px;
    gap: 9px;
    padding: 9px 12px 9px 15px;
    border-radius: 17px;
  }
  .site-header .brand-logo-image { width: 150px; }
  .site-header .menu-toggle {
    position: relative;
    z-index: 22;
    display: grid;
    width: 42px;
    height: 42px;
    place-content: center;
    gap: 6px;
    order: 3;
    border: 0;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
  }
  .site-header .menu-toggle span:not(.sr-only) {
    display: block;
    width: 21px;
    height: 1.5px;
    background: var(--forest, #073f35);
    transition: transform .22s ease;
  }
  .site-header .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .site-header .menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
  .site-header .primary-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    padding: 18px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    border: 1px solid rgba(16,63,53,.14);
    border-radius: 16px;
    background: rgba(250,247,238,.98);
    box-shadow: 0 20px 52px rgba(33,57,44,.14);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .site-header .primary-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
  }
  .site-header .primary-nav a {
    padding: 13px 5px;
    border-bottom: 1px solid rgba(16,63,53,.14);
    font-size: 14px;
  }
  .site-header .primary-nav a:last-child { border-bottom: 0; }
  .site-header .nav-cta {
    width: auto;
    min-width: 0;
    min-height: 46px;
    margin-left: auto;
    padding: 0 13px;
    gap: 7px;
    font-size: 12px;
    line-height: 1.15;
    white-space: nowrap;
  }
  .site-header .nav-cta svg { width: 17px; flex: 0 0 17px; }
}

.hv-cards-page { padding-bottom: 110px; }
.hv-cards-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .75fr); gap: clamp(48px, 8vw, 110px); align-items: end; padding-bottom: 84px; }
.hv-cards-intro h2,
.hv-card-story h2,
.hv-cards-steps h2 { margin: 0; color: var(--hv-forest); font-family: Newsreader, Georgia, serif; font-weight: 600; letter-spacing: -.035em; line-height: .94; text-wrap: balance; }
.hv-cards-intro h2 { font-size: clamp(42px, 5.4vw, 76px); }
.hv-card-story { display: grid; grid-template-columns: minmax(0, .86fr) minmax(420px, 1.14fr); gap: clamp(42px, 7vw, 96px); align-items: center; margin-bottom: 92px; padding: clamp(34px, 5vw, 68px); overflow: hidden; border-radius: 16px; }
.hv-card-story-holiday { color: #fff; background: #0b392f; }
.hv-card-story-copy { position: relative; z-index: 2; }
.hv-card-story-copy .hv-section-label { color: inherit; opacity: .75; }
.hv-card-story-copy .hv-section-label span { background: currentColor; }
.hv-card-story h2 { margin-bottom: 22px; color: inherit; font-size: clamp(44px, 5.1vw, 72px); }
.hv-card-story-copy > p:not(.hv-section-label) { max-width: 56ch; margin: 0 0 30px; color: inherit; opacity: .82; font-size: 17px; line-height: 1.7; text-wrap: pretty; }
.hv-card-story__benefits { display: grid; gap: 10px; margin: 0 0 28px; padding: 0; list-style: none; }
.hv-card-story__benefits li { position: relative; display: grid; gap: 3px; padding: 13px 15px 13px 49px; border: 1px solid rgba(255,255,255,.13); border-radius: 16px; background: rgba(255,255,255,.06); }
.hv-card-story__benefits li::before { position: absolute; top: 14px; left: 15px; display: grid; width: 24px; height: 24px; place-items: center; border-radius: 8px; color: var(--hv-forest); background: var(--hv-lime); font-size: 14px; font-weight: 900; content: '✓'; }
.hv-card-story__benefits strong,.hv-card-story__benefits span { display: block; }
.hv-card-story__benefits strong { color: #fff; font-size: 15px; }
.hv-card-story__benefits span { color: rgba(255,255,255,.69); font-size: 13px; line-height: 1.45; }
.hv-card-story-holiday .hv-dark-button { color: var(--hv-forest); background: var(--hv-lime); }
.hv-card-story-holiday .hv-dark-button:hover { background: #fff; }
.hv-card-story-visual { position: relative; min-height: 460px; }
.hv-card-context { display: block; width: 82%; height: 390px; margin-left: auto; object-fit: cover; border-radius: 14px; }
.hv-card-product { height: auto; }
.hv-cards-steps { display: grid; grid-template-columns: minmax(280px, .7fr) minmax(0, 1.3fr); gap: clamp(42px, 8vw, 110px); align-items: start; padding-top: 10px; }
.hv-cards-steps h2 { font-size: clamp(42px, 4.8vw, 68px); }
.hv-cards-steps ol { margin: 0; padding: 0; list-style: none; }
.hv-cards-steps li { display: grid; grid-template-columns: 54px minmax(150px, .7fr) minmax(0, 1fr); gap: 22px; align-items: start; padding: 24px 0; border-bottom: 1px solid var(--hv-line); }
.hv-cards-steps li:first-child { padding-top: 0; }
.hv-cards-steps li > span { color: var(--hv-olive); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.hv-cards-steps li strong { color: var(--hv-forest); font-size: 18px; }
.hv-cards-steps li p { max-width: 48ch; margin: 0; color: var(--hv-muted); line-height: 1.6; }
.hv-cards-support { position: relative; display: grid; grid-template-columns: 86px minmax(0,1fr) minmax(250px,.48fr); gap: clamp(24px,4vw,54px); align-items: center; margin-top: 94px; padding: clamp(30px,4.6vw,58px); overflow: hidden; border-radius: 30px; color: #fff; background: linear-gradient(125deg,#082f27,#125243); box-shadow: 0 30px 70px rgba(8,47,39,.18); }
.hv-cards-support::after { position: absolute; top: -190px; right: -110px; width: 480px; height: 480px; border: 1px solid rgba(214,243,83,.22); border-radius: 50%; box-shadow: 0 0 0 58px rgba(214,243,83,.06),0 0 0 116px rgba(214,243,83,.04); content: ''; pointer-events: none; }
.hv-cards-support__icon { position: relative; z-index: 1; display: grid; width: 86px; height: 86px; place-items: center; border-radius: 25px; color: var(--hv-forest); background: var(--hv-lime); }
.hv-cards-support__icon svg { width: 48px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.hv-cards-support__copy { position: relative; z-index: 1; }
.hv-cards-support__copy .hv-section-label { color: var(--hv-lime); }
.hv-cards-support__copy h2 { max-width: 650px; margin: 0; font-family: Newsreader,Georgia,serif; font-size: clamp(38px,4.5vw,64px); font-weight: 600; letter-spacing: -.045em; line-height: .93; }
.hv-cards-support__copy > p:not(.hv-section-label) { max-width: 660px; margin: 18px 0 24px; color: rgba(255,255,255,.72); font-size: 16px; line-height: 1.65; }
.hv-cards-support__email { display: grid; grid-template-columns: 1fr auto; gap: 4px 22px; width: fit-content; max-width: 100%; padding: 16px 19px; border: 1px solid rgba(255,255,255,.18); border-radius: 17px; background: rgba(255,255,255,.08); transition: transform .2s ease,background .2s ease; }
.hv-cards-support__email:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); }
.hv-cards-support__email span { color: rgba(255,255,255,.62); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.hv-cards-support__email strong { overflow-wrap: anywhere; font-size: 15px; }
.hv-cards-support__email b { grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--hv-lime); font-size: 24px; }
.hv-cards-support__links { position: relative; z-index: 1; display: grid; gap: 10px; }
.hv-cards-support__links a { display: flex; min-height: 56px; align-items: center; justify-content: space-between; gap: 18px; padding: 0 18px; border: 1px solid rgba(255,255,255,.17); border-radius: 16px; font-size: 13px; font-weight: 800; transition: color .2s ease,background .2s ease; }
.hv-cards-support__links a:hover { color: var(--hv-forest); background: var(--hv-lime); }

/* CTA ufficiale Card: grande, leggibile e accompagnata dalle condizioni chiave. */
.hv-official-card-cta { display: grid; gap: 12px; width: min(100%, 620px); margin-top: 26px; padding: 20px; border: 1px solid rgba(12,73,59,.12); border-radius: 24px; background: rgba(255,253,247,.94); box-shadow: 0 22px 55px rgba(8,57,47,.14); }
.hv-official-card-cta__button { display: flex; min-height: 68px; align-items: center; justify-content: center; gap: 15px; padding: 0 26px; border-radius: 18px; color: #07392f !important; background: #d9ff38; font-size: clamp(15px,1.4vw,19px); font-weight: 950; letter-spacing: .02em; text-align: center; text-transform: uppercase; box-shadow: 8px 9px 0 rgba(8,57,47,.13); transition: transform .22s ease,background .22s ease,box-shadow .22s ease; }
.hv-official-card-cta__button:hover { color: #07392f !important; background: #fff; box-shadow: 4px 5px 0 rgba(8,57,47,.14); transform: translateY(-3px); }
.hv-official-card-cta__button svg { width: 26px; flex: 0 0 26px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.hv-official-card-cta__copy { display: grid; gap: 4px; color: #38584e; font-size: 13px; font-weight: 700; line-height: 1.45; }
.hv-official-card-cta__copy strong { color: #0d4d40; font-size: 14px; }
.hero-gateway .hv-official-card-cta { margin-top: 30px; }
.choice-panel .hv-official-card-cta { width: 100%; margin-top: 24px; padding: 14px; border-radius: 19px; }
.choice-panel .hv-official-card-cta__button { min-height: 60px; padding-inline: 16px; font-size: 14px; }
.choice-panel .hv-official-card-cta__copy { font-size: 12px; }
.final-cta-action .hv-official-card-cta { margin: 0; color: #07392f; }
.hv-card-story-copy .hv-official-card-cta { margin-top: 30px; }
.hv-card-story-holiday .hv-official-card-cta { color: #07392f; background: rgba(255,255,255,.96); }

@media (max-width: 900px) {
  .hv-cards-intro,
  .hv-card-story,
  .hv-cards-steps { grid-template-columns: 1fr; }
  .hv-cards-support { grid-template-columns: 72px 1fr; }
  .hv-cards-support__icon { width: 72px; height: 72px; border-radius: 21px; }
  .hv-cards-support__links { grid-column: 2; }
}

@media (max-width: 640px) {
  .hv-cards-page { padding-bottom: 72px; }
  .hv-cards-intro { gap: 24px; padding-bottom: 60px; }
  .hv-card-story { width: calc(100% - 24px); margin-bottom: 64px; padding: 28px 22px; }
  .hv-card-story-visual { min-height: 330px; }
  .hv-card-context { width: 88%; height: 280px; }
  .hv-cards-steps li { grid-template-columns: 42px 1fr; gap: 12px; }
  .hv-cards-steps li p { grid-column: 2; }
  .hv-cards-support { grid-template-columns: 1fr; width: calc(100% - 24px); margin-top: 64px; padding: 28px 22px; border-radius: 24px; }
  .hv-cards-support__icon { width: 68px; height: 68px; }
  .hv-cards-support__icon svg { width: 38px; }
  .hv-cards-support__links { grid-column: auto; }
  .hv-cards-support__email { width: 100%; }
  .hv-official-card-cta { padding: 15px; border-radius: 20px; }
  .hv-official-card-cta__button { min-height: 62px; padding-inline: 15px; font-size: 14px; }
  .hv-official-card-cta__copy { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
}

/*
 * Revisione mobile globale: CTA sempre testuale e microtesti mai minuscoli.
 * Le regole sono volutamente limitate al mobile per non alterare il desktop.
 */
@media (max-width: 850px) {
  .site-header .nav-cta,
  .nav-cta {
    width: auto !important;
    min-width: 0 !important;
    min-height: 46px;
    margin-left: auto;
    padding: 0 12px !important;
    gap: 7px;
    border-radius: 12px;
    font-size: 12px !important;
    line-height: 1.15;
    white-space: nowrap;
  }

  .site-header .nav-cta svg,
  .nav-cta svg {
    width: 17px !important;
    flex: 0 0 auto;
  }
}

@media (max-width: 680px) {
  .site-header,
  .hv-site-header {
    gap: 8px;
  }

  .site-header .brand-logo-image,
  .hv-site-header .hv-brand img {
    width: 118px !important;
  }

  .hv-header-cta {
    min-height: 46px;
    padding: 0 11px;
    border-radius: 12px;
    font-size: 12px;
    line-height: 1.15;
    white-space: nowrap;
  }

  /* Footer Home. */
  .site-footer .footer-brand > p {
    font-size: 15px;
    line-height: 1.7;
  }
  .site-footer .footer-nav h3,
  .site-footer .footer-newsletter > p {
    font-size: 12px;
    line-height: 1.4;
  }
  .site-footer .footer-nav a {
    font-size: 15px;
    line-height: 1.45;
  }
  .site-footer .footer-bottom {
    font-size: 13px;
    line-height: 1.55;
  }

  /* Footer delle pagine interne. */
  .hv-site-footer .hv-footer-grid p {
    font-size: 15px;
    line-height: 1.7;
  }
  .hv-site-footer .hv-footer-grid h3 {
    font-size: 12px;
    line-height: 1.4;
  }
  .hv-site-footer .hv-footer-grid nav a {
    min-height: 34px;
    display: flex;
    align-items: center;
    font-size: 15px;
    line-height: 1.4;
  }
  .hv-site-footer .hv-footer-bottom {
    font-size: 13px;
    line-height: 1.55;
  }
  .hv-footer-card-button {
    font-size: 14px;
  }
  .hv-footer-card-support span {
    font-size: 12px;
  }
  .hv-footer-card-support strong {
    font-size: 14px;
  }

  /* Occhielli, metadati e controlli principali. */
  .hv-page-kicker,
  .hv-section-label,
  .hv-business-kicker,
  .hv-places-kicker,
  .hv-contact-label,
  .hv-card-product__kicker,
  .hv-activity-kicker {
    font-size: 12px;
    line-height: 1.45;
  }
  .hv-breadcrumbs {
    font-size: 13px;
  }
  .hv-partner-field small,
  .hv-partner-results header small,
  .hv-partner-results header em,
  .hv-partner-sheet small,
  .hv-partner-result small,
  .hv-partner-result i {
    font-size: 12px;
    line-height: 1.35;
  }
  .hv-partner-field select,
  .hv-partner-search,
  .hv-partner-reset,
  .hv-partner-load-more {
    font-size: 15px;
  }
  .hv-partner-result strong {
    font-size: 15px;
  }
  .hv-partner-map-panel {
    scroll-margin-top: 92px;
  }
}

@media (max-width: 400px) {
  .site-header .brand-logo-image,
  .hv-site-header .hv-brand img {
    width: 106px !important;
  }

  .site-header .nav-cta,
  .nav-cta,
  .hv-header-cta {
    padding-inline: 9px !important;
    font-size: 11px !important;
  }

  /* Su schermi strettissimi si conserva il testo e si sacrifica solo l'icona. */
  .site-header .nav-cta svg,
  .nav-cta svg,
  .hv-header-cta svg {
    display: none;
  }
}
