/*
Theme Name: Alpha Travel Vacations Child
Template: alpha-travel-vacations
*/

/* ============================================================
   HotelPack — Frontend Home base styles
   ============================================================ */

.hp-frontpage{ box-sizing: border-box; }
.hp-frontpage *, .hp-frontpage *::before, .hp-frontpage *::after{ box-sizing: inherit; }

/* container widths */
.hp-frontpage .hp-hero,
.hp-frontpage .hp-vip{ width: 100%; }

.hp-frontpage .hp-hero-inner,
.hp-frontpage .hp-section-inner{
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

/* HERO */
.hp-frontpage .hp-hero{ padding: 52px 0 10px; }
.hp-frontpage .hp-hero-inner{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}

.hp-frontpage .hp-hero-title{ margin: 0 0 12px; line-height: 1.05; }
.hp-frontpage .hp-hero-subtitle{ margin: 0; max-width: 60ch; }

.hp-frontpage .hp-hero-media{
  min-height: 260px;
  border-radius: 18px;
  background: rgba(0,0,0,0.04);
}

/* Sections */
.hp-frontpage .hp-section-header{ margin: 0 0 16px; }
.hp-frontpage .hp-section-header h2{ margin: 0 0 6px; }
.hp-frontpage .hp-section-header p{ margin: 0; max-width: 70ch; }
.hp-frontpage .hp-section-header--tight{ margin-bottom: 12px; }

/* VIP */
.hp-frontpage .hp-vip{ padding: 22px 0 8px; }

.hp-frontpage .hp-vip-primary-grid{
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 18px;
  align-items: end;
}

.hp-frontpage .hp-vip-secondary-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 18px;
}

.hp-frontpage .hp-vip-card{
  border-radius: 22px;
  background: rgba(0,0,0,0.04);
  overflow: hidden;
  position: relative;
}

/* stagger layout */
.hp-frontpage .hp-vip-card--p1{ min-height: 220px; transform: translateY(6px); }
.hp-frontpage .hp-vip-card--p2{ min-height: 240px; }
.hp-frontpage .hp-vip-card--p3{ min-height: 280px; transform: translateY(-10px); }
.hp-frontpage .hp-vip-card--p4{ min-height: 240px; }
.hp-frontpage .hp-vip-card--p5{ min-height: 220px; transform: translateY(6px); }
.hp-frontpage .hp-vip-card--s { min-height: 160px; }

/* =========================
   IMAGE SYSTEM (FIX REALE)
   ========================= */

.hp-frontpage .hp-vip-card__inner{
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
}

/* contenitore */
.hp-frontpage .hp-vip-card__image{
  position: absolute;
  inset: 0;
}

/* immagine */
.hp-frontpage .hp-vip-card__image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* overlay testo */
.hp-frontpage .hp-vip-card__content{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  padding: 12px;
  color: #fff;

  background: linear-gradient(
    to top,
    rgba(0,0,0,0.6),
    rgba(0,0,0,0)
  );
}

/* Responsive */
@media (max-width: 1180px){
  .hp-frontpage .hp-hero-inner{ grid-template-columns: 1fr; }
  .hp-frontpage .hp-vip-primary-grid{ grid-template-columns: repeat(3, minmax(0,1fr)); }
}

@media (max-width: 980px){
  .hp-frontpage .hp-vip-primary-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hp-frontpage .hp-vip-secondary-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }

  .hp-frontpage .hp-vip-card--p1,
  .hp-frontpage .hp-vip-card--p2,
  .hp-frontpage .hp-vip-card--p3,
  .hp-frontpage .hp-vip-card--p4,
  .hp-frontpage .hp-vip-card--p5{ transform: none; }
}

@media (max-width: 520px){
  .hp-frontpage .hp-vip-primary-grid,
  .hp-frontpage .hp-vip-secondary-grid{ grid-template-columns: 1fr; }
}
/* ============================================================
   HotelPack — VIP Premium blue liquid glass
   ============================================================ */
.hp-frontpage .hp-vip-primary .hp-vip-card{
  background: rgba(255, 210, 120, 0.10);

  border: 2px solid rgba(255, 170, 60, 0.55);

  box-shadow:
    0 12px 28px rgba(0,0,0,0.12),
    inset 0 1px 0 rgba(255,255,255,0.25);
}

.hp-frontpage .hp-vip-primary .hp-vip-card__image{
  position: absolute;
  inset: 10px 10px 12px 10px;
  border-radius: 18px;
  overflow: hidden;
  z-index: 1;
}

.hp-frontpage .hp-vip-primary .hp-vip-card__image::after{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      to bottom,
      rgba(210,235,255,0.16),
      rgba(210,235,255,0.04) 34%,
      rgba(190,225,255,0.05) 58%,
      rgba(170,215,255,0.09)
    ),
    radial-gradient(
      circle at top left,
      rgba(235,245,255,0.18),
      transparent 42%
    );
}

.hp-frontpage .hp-vip-primary .hp-vip-card__image img{
  opacity: 0.94;
  transform: scale(1.02);
  filter: saturate(0.98) contrast(1.01) brightness(1.01);
}

.hp-frontpage .hp-vip-primary .hp-vip-card__content{
  z-index: 2;
  padding: 14px 14px 16px;
  background: linear-gradient(
    to top,
    rgba(120, 185, 255, 0.18),
    rgba(120, 185, 255, 0.08) 46%,
    rgba(120, 185, 255, 0.00)
  );
  backdrop-filter: blur(4px) saturate(115%);
  -webkit-backdrop-filter: blur(4px) saturate(115%);
}

.hp-frontpage .hp-vip-primary .hp-vip-card::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 3;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.34),
    inset 0 -1px 0 rgba(255,255,255,0.08);
}

/* VIP title */
.hp-frontpage .hp-vip-title{
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.3px;
}
/* ============================================================
   HOTELPACK BRAND OVERRIDE (ARANCIONE)
   ============================================================ */

:root {
  --wp--preset--color--primary: #ff7a00;
}

/* Navigation link attivo */
.wp-block-navigation .current-menu-item > a,
.wp-block-navigation a:hover {
  color: #ff7a00 !important;
}

/* PROPERTY BUTTON (quello verde nello screen) */
.hp-property-label {
  background-color: #ff7a00 !important;
  color: #fff !important;
  padding: 8px 14px;
  border-radius: 8px;
}

/* Dropdown */
.hp-property-dropdown a:hover {
  color: #ff7a00;
}
/* ============================================================
   HotelPack — Home bottom ADS visibility/layout hotfix
   2026-04-28
   Scopo: i due banner larghi sono entrambi nel DOM; questo override
   forza il flusso verticale e impedisce che il secondo slot venga
   nascosto/collassato da regole precedenti di grid/flex/overflow.
   ============================================================ */

.hp-bottom-wrap--home-final{
  display: block !important;
  width: min(1760px, calc(100% - 48px)) !important;
  max-width: none !important;
  margin: 34px auto !important;
  padding: 0 !important;
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
  clear: both !important;
}

.hp-bottom-wrap--home-final > *,
.hp-bottom-wrap--home-final .hp-bottom-news-link,
.hp-bottom-wrap--home-final .hp-home-ad-slot{
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  visibility: visible !important;
  opacity: 1 !important;
  clear: both !important;
}

.hp-bottom-wrap--home-final .hp-home-ad-slot{
  margin: 34px 0 !important;
  padding: 0 !important;
  position: relative !important;
  z-index: 1 !important;
}

.hp-bottom-wrap--home-final .hp-home-ad-slot--2{
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.hp-bottom-wrap--home-final .hp-ad,
.hp-bottom-wrap--home-final .hp-ad__media,
.hp-bottom-wrap--home-final .hp-ad-link{
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

.hp-bottom-wrap--home-final .hp-ad img,
.hp-bottom-wrap--home-final .hp-ad__media img,
.hp-bottom-wrap--home-final .hp-ad-link img{
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  object-fit: cover !important;
  border: 0 !important;
}

.hp-bottom-wrap--home-final .hp-ad--wide{
  border-radius: 18px !important;
  overflow: hidden !important;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.10) !important;
}

@media (max-width: 768px){
  .hp-bottom-wrap--home-final{
    width: min(100% - 24px, 1760px) !important;
    margin: 24px auto !important;
  }

  .hp-bottom-wrap--home-final .hp-home-ad-slot{
    margin: 24px 0 !important;
  }
}


/* ============================================================
   HotelPack — Hero admin restyle + lightweight slideshow
   2026-04-29
   ============================================================ */
.sliderimg .wp-block-cover__image-background{
  opacity: 0 !important;
}
.slider-content .slider-info-main{
  align-items: center !important;
  gap: 34px !important;
}
.slider-text{
  max-width: 620px !important;
}
.slider-text .hp-hero-main-title{
  line-height: 1.08 !important;
  letter-spacing: .01em !important;
  margin-bottom: 14px !important;
}
.slider-text .hp-hero-body-text{
  line-height: 1.55 !important;
}
.slider-image figure.hp-hero-slideshow{
  width: min(720px, 100%) !important;
  margin: 0 auto !important;
  overflow: hidden !important;
}
.slider-image figure.hp-hero-slideshow img{
  width: 100% !important;
  height: 460px !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  opacity: 0;
  transition: opacity .55s ease-in-out;
}
.slider-image figure.hp-hero-slideshow img.is-active{
  opacity: 1;
}
@media (min-width: 1200px){
  .slider-content .slider-info-main{
    max-width: 1500px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .slider-image figure.hp-hero-slideshow img{
    height: 480px !important;
  }
}
@media (max-width: 1024px){
  .slider-image figure.hp-hero-slideshow img{
    height: 380px !important;
  }
}
@media (max-width: 768px){
  .slider-text .hp-hero-main-title{
    font-size: clamp(30px, 8vw, 44px) !important;
  }
  .slider-text .hp-hero-body-text{
    font-size: clamp(16px, 4.2vw, 22px) !important;
  }
  .slider-image figure.hp-hero-slideshow img{
    height: 300px !important;
  }
}

/* ============================================================
   HotelPack — Hero v2 refinement: larger media, larger text caps,
   admin-controlled benefit icons/messages and logo support
   ============================================================ */
.slider-content .slider-info-main{
  gap: 46px !important;
  align-items: center !important;
}
.slider-text{
  max-width: 720px !important;
}
.slider-image figure.hp-hero-slideshow{
  width: min(820px, 100%) !important;
  max-width: 820px !important;
}
.slider-image figure.hp-hero-slideshow img{
  height: 520px !important;
}
.slider-info-box{
  min-width: 150px !important;
}
.slider-info-main-box.hp-hero-benefits{
  gap: 44px !important;
}
.hp-hero-benefit-icon{
  margin: 0 0 8px !important;
  width: 46px !important;
  height: 46px !important;
}
.hp-hero-benefit-icon img{
  width: 46px !important;
  height: 46px !important;
  object-fit: cover !important;
  display: block !important;
}
.hp-hero-check{
  display: inline-flex !important;
  width: 46px !important;
  height: 46px !important;
  align-items: center !important;
  justify-content: center !important;
  color: #158f72 !important;
  font-size: 42px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-shadow: 0 2px 8px rgba(21,143,114,.22) !important;
}
@media (min-width: 1200px){
  .slider-content .slider-info-main{
    max-width: 1620px !important;
  }
  .slider-image figure.hp-hero-slideshow{
    width: min(860px, 100%) !important;
    max-width: 860px !important;
  }
  .slider-image figure.hp-hero-slideshow img{
    height: 540px !important;
  }
}
@media (max-width: 1366px){
  .slider-content .slider-info-main{
    gap: 34px !important;
  }
  .slider-image figure.hp-hero-slideshow img{
    height: 480px !important;
  }
}
@media (max-width: 1024px){
  .slider-image figure.hp-hero-slideshow img{
    height: 380px !important;
  }
  .slider-info-main-box.hp-hero-benefits{
    gap: 24px !important;
  }
}


/* ============================================================
   HotelPack — Hero v3 benefits links + hover + admin body size fix
   ============================================================ */
.slider-text .hp-hero-body-text{
  font-size: inherit !important;
}
.slider-info-main-box.hp-hero-benefits{
  display: flex !important;
  flex-direction: column !important;
  gap: 30px !important;
  align-items: flex-start !important;
  justify-content: center !important;
}
.hp-hero-benefit{
  width: 100% !important;
}
.hp-hero-benefit-link{
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 6px !important;
  width: 100% !important;
  padding: 7px 8px !important;
  margin: -8px -10px !important;
  border-radius: 18px !important;
  color: inherit !important;
  text-decoration: none !important;
  transition: transform .22s ease, background-color .22s ease, box-shadow .22s ease, opacity .22s ease !important;
}
.hp-hero-benefit-link:not(.hp-hero-benefit-link--static):hover{
  transform: translateX(6px) !important;
  background: rgba(255, 122, 0, .075) !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .08) !important;
}
.hp-hero-benefit-link:not(.hp-hero-benefit-link--static):hover .hp-hero-benefit-icon{
  transform: scale(1.08) rotate(-2deg) !important;
}
.hp-hero-benefit-icon{
  flex: 0 0 auto !important;
  margin: 0 !important;
  transition: transform .22s ease !important;
}
.hp-hero-benefit-copy{
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}
.hp-hero-benefit-title{
  margin: 0 !important;
  line-height: 1.15 !important;
}
.hp-hero-benefit-sub{
  margin: 0 !important;
  line-height: 1.35 !important;
}

/* ============================================================
   HotelPack — Hero benefits + VIP size correction v6
   Scope: CSS only, source latest server style.css
   ============================================================ */

/* Benefits: icon sopra, titolo e sottotitolo sotto, niente testo di fianco */
.slider-info-box{
  min-width: 190px !important;
}

.slider-info-main-box.hp-hero-benefits{
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 32px !important;
}

.hp-hero-benefit{
  width: 100% !important;
  max-width: 190px !important;
  position: relative !important;
}

.hp-hero-benefit-link{
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 7px !important;
  width: 100% !important;
  padding: 0 !important;
  margin: -10px -12px !important;
  border-radius: 18px !important;
  color: inherit !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transform: translateZ(0) !important;
  transition:
    transform .24s ease,
    background-color .24s ease,
    box-shadow .24s ease,
    opacity .24s ease !important;
}

.hp-hero-benefit-link:hover{
  transform: translateX(12px) scale(1.025) !important;
  background: rgba(255, 122, 0, .12) !important;
  box-shadow: 0 16px 34px rgba(15, 23, 42, .13) !important;
  opacity: .98 !important;
}

.hp-hero-benefit-icon{
  margin: 0 0 2px 0 !important;
  width: 46px !important;
  height: 46px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  transition: transform .24s ease, filter .24s ease !important;
  transform-origin: center !important;
}

.hp-hero-benefit-link:hover .hp-hero-benefit-icon{
  transform: scale(1.2) rotate(-3deg) !important;
  filter: drop-shadow(0 8px 12px rgba(15, 23, 42, .16)) !important;
}

.hp-hero-benefit-copy{
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  width: 100% !important;
  min-width: 0 !important;
}

.hp-hero-benefit-title,
.hp-hero-benefit-sub{
  max-width: 100% !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none !important;
}

.hp-hero-benefit-title{
  margin: 0 !important;
  line-height: 1.16 !important;
  transition: text-shadow .24s ease, color .24s ease !important;
}

.hp-hero-benefit-sub{
  margin: 0 !important;
  line-height: 1.35 !important;
  opacity: .86 !important;
}

.hp-hero-benefit-link:hover .hp-hero-benefit-title{
  text-shadow: 0 3px 14px rgba(15, 23, 42, .18) !important;
}

/* VIP / Strutture in Evidenza: riduzione reale dimensioni card */
.tour-main-box{
  width: min(1180px, calc(100% - 48px)) !important;
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 220px)) !important;
  justify-content: center !important;
  align-items: stretch !important;
  gap: 20px !important;
}

.tour-main-box > .wp-block-column{
  max-width: 220px !important;
  width: 220px !important;
  padding-top: 0 !important;
  transform: none !important;
  animation: none !important;
}

.tour-main{
  width: 100% !important;
  max-width: 220px !important;
  height: auto !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.tour-main .wp-block-image,
.tour-main figure.wp-block-image{
  width: 100% !important;
  max-width: 220px !important;
  margin: 0 !important;
}

.tour-main .wp-block-image img,
.tour-main figure.wp-block-image img{
  width: 100% !important;
  max-width: 220px !important;
  height: 290px !important;
  aspect-ratio: auto !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 15px !important;
  display: block !important;
}

.tour-heading-box{
  margin-bottom: 22px !important;
}

@media (max-width: 1180px){
  .tour-main-box{
    grid-template-columns: repeat(3, minmax(0, 220px)) !important;
  }
}

@media (max-width: 780px){
  .tour-main-box{
    grid-template-columns: repeat(2, minmax(0, 220px)) !important;
  }
}

@media (max-width: 520px){
  .tour-main-box{
    width: min(100% - 28px, 320px) !important;
    grid-template-columns: 1fr !important;
  }
  .tour-main-box > .wp-block-column,
  .tour-main,
  .tour-main .wp-block-image,
  .tour-main figure.wp-block-image,
  .tour-main .wp-block-image img,
  .tour-main figure.wp-block-image img{
    width: 100% !important;
    max-width: 320px !important;
  }
  .tour-main .wp-block-image img,
  .tour-main figure.wp-block-image img{
    height: 360px !important;
  }
}


/* ============================================================
   HotelPack — Home no entrance/reveal animations
   Scope: homepage only. Removes delayed slide/fade entrance effects.
   ============================================================ */
body.home .wow,
body.home .animated,
body.home .animate,
body.home [class*="animate__"],
body.home [data-aos],
body.front-page .wow,
body.front-page .animated,
body.front-page .animate,
body.front-page [class*="animate__"],
body.front-page [data-aos],
body.home .slider-content,
body.home .slider-info-main,
body.home .slider-text,
body.home .slider-image,
body.home .slider-info-box,
body.home .search-content,
body.home .tour-main-box,
body.home .tour-main,
body.home .hp-home-discovery,
body.home .hp-discovery-panel,
body.home .hp-city-card,
body.home .hp-label-card,
body.home .hp-home-ad-slot{
  animation: none !important;
  animation-delay: 0s !important;
  animation-duration: 0s !important;
  transition-delay: 0s !important;
  opacity: 1 !important;
  visibility: visible !important;
}

body.home [data-aos],
body.front-page [data-aos]{
  pointer-events: auto !important;
}


/* ============================================================
   HotelPack — Theme strip compact carousel
   Scope: home only. Admin data remains source of truth.
   ============================================================ */

/* Hide older standalone theme/discovery block if still rendered elsewhere. */
.hp-home-labels-wrap:not(.hp-theme-strip-wrap){
  display: none !important;
}

.hp-theme-strip-wrap{
  width: min(1180px, calc(100% - 32px)) !important;
  margin: 18px auto 34px !important;
  padding: 18px 26px 20px !important;
  border-radius: 22px !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,250,244,.86)) !important;
  border: 1px solid rgba(15,23,42,.09) !important;
  box-shadow:
    0 18px 46px rgba(15,23,42,.07),
    inset 0 1px 0 rgba(255,255,255,.76) !important;
  overflow: hidden !important;
}

.hp-theme-strip-head{
  text-align: center !important;
  margin: 0 0 14px !important;
}

.hp-theme-strip-eyebrow{
  margin: 0 0 4px !important;
  color: #ed8b0b !important;
  font-family: var(--wp--preset--font-family--raleway, inherit) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: .09em !important;
}

.hp-theme-strip-title{
  margin: 0 !important;
  color: #101010 !important;
  font-family: var(--wp--preset--font-family--josefin-sans, inherit) !important;
  font-size: clamp(24px, 2.1vw, 34px) !important;
  font-weight: 850 !important;
  line-height: 1.03 !important;
}

.hp-theme-strip-subtitle{
  margin: 6px 0 0 !important;
  color: rgba(15,23,42,.72) !important;
  font-family: var(--wp--preset--font-family--raleway, inherit) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.25 !important;
}

.hp-theme-strip-shell{
  position: relative !important;
  overflow: hidden !important;
}

.hp-theme-strip-shell::before,
.hp-theme-strip-shell::after{
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 32px !important;
  z-index: 2 !important;
  pointer-events: none !important;
}

.hp-theme-strip-shell::before{
  left: 0 !important;
  background: linear-gradient(90deg, rgba(255,253,250,.96), rgba(255,253,250,0)) !important;
}

.hp-theme-strip-shell::after{
  right: 0 !important;
  background: linear-gradient(270deg, rgba(255,253,250,.96), rgba(255,253,250,0)) !important;
}

.hp-theme-strip-track{
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 9px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 2px 2px 8px !important;
  scroll-snap-type: x proximity !important;
  scroll-behavior: smooth !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: none !important;
}

.hp-theme-strip-track::-webkit-scrollbar{
  display: none !important;
}

.hp-theme-strip-card{
  flex: 0 0 120px !important;
  height: 72px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 7px 8px !important;
  border-radius: 16px !important;
  text-decoration: none !important;
  color: #101010 !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,246,236,.70)) !important;
  border: 1px solid rgba(15,23,42,.10) !important;
  box-shadow:
    0 8px 20px rgba(15,23,42,.055),
    inset 0 1px 0 rgba(255,255,255,.72) !important;
  scroll-snap-align: start !important;
  transition:
    transform .20s ease,
    border-color .20s ease,
    box-shadow .20s ease,
    background-color .20s ease !important;
}

.hp-theme-strip-card:hover{
  transform: translateY(-3px) !important;
  border-color: rgba(237,139,11,.42) !important;
  box-shadow:
    0 14px 30px rgba(15,23,42,.10),
    0 0 0 1px rgba(237,139,11,.07),
    inset 0 1px 0 rgba(255,255,255,.78) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,242,226,.88)) !important;
}

.hp-theme-strip-icon{
  width: 34px !important;
  height: 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
}

.hp-theme-strip-icon img{
  max-width: 34px !important;
  max-height: 34px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
  filter: drop-shadow(0 5px 8px rgba(15,23,42,.12)) !important;
}

.hp-theme-strip-label{
  display: block !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  color: #101010 !important;
  font-family: var(--wp--preset--font-family--raleway, inherit) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  text-align: center !important;
}

@media (min-width: 1280px){
  .hp-theme-strip-card{
    flex-basis: 124px !important;
  }
}

@media (max-width: 1024px){
  .hp-theme-strip-wrap{
    width: min(100% - 28px, 1180px) !important;
    padding: 16px 18px 18px !important;
    margin-top: 16px !important;
  }

  .hp-theme-strip-card{
    flex-basis: 116px !important;
  }
}

@media (max-width: 640px){
  .hp-theme-strip-wrap{
    width: min(100% - 20px, 1180px) !important;
    padding: 14px 12px 16px !important;
    border-radius: 18px !important;
  }

  .hp-theme-strip-head{
    margin-bottom: 12px !important;
  }

  .hp-theme-strip-title{
    font-size: 24px !important;
  }

  .hp-theme-strip-subtitle{
    font-size: 13px !important;
  }

  .hp-theme-strip-card{
    flex-basis: 102px !important;
    height: 66px !important;
    border-radius: 14px !important;
    gap: 5px !important;
  }

  .hp-theme-strip-icon,
  .hp-theme-strip-icon img{
    max-width: 30px !important;
    max-height: 30px !important;
    width: 30px !important;
    height: 30px !important;
  }

  .hp-theme-strip-label{
    font-size: 11px !important;
  }
}


/* ============================================================
   HotelPack — Theme strip compact width refinement
   Scope: home theme carousel only.
   ============================================================ */

.hp-theme-strip-track{
  gap: 9px !important;
}

.hp-theme-strip-card{
  flex-basis: 120px !important;
  width: 120px !important;
  min-width: 120px !important;
  height: 72px !important;
  padding-left: 8px !important;
  padding-right: 8px !important;
}

.hp-theme-strip-icon{
  width: 32px !important;
  height: 32px !important;
}

.hp-theme-strip-icon img{
  max-width: 32px !important;
  max-height: 32px !important;
}

.hp-theme-strip-label{
  font-size: 11.5px !important;
}

@media (min-width: 1280px){
  .hp-theme-strip-card{
    flex-basis: 124px !important;
    width: 124px !important;
    min-width: 124px !important;
  }
}

@media (max-width: 1024px){
  .hp-theme-strip-track{
    gap: 8px !important;
  }

  .hp-theme-strip-card{
    flex-basis: 112px !important;
    width: 112px !important;
    min-width: 112px !important;
  }
}

@media (max-width: 640px){
  .hp-theme-strip-card{
    flex-basis: 102px !important;
    width: 102px !important;
    min-width: 102px !important;
    height: 66px !important;
  }
}


/* ============================================================
   HotelPack — Header logo size fix
   Scope: frontend header logo only. Does not touch admin/backend.
   Real target: .wp-block-site-title a.hp-admin-controlled-logo
   ============================================================ */

body.home header .wp-block-site-title a.hp-admin-controlled-logo,
body.front-page header .wp-block-site-title a.hp-admin-controlled-logo,
body.home .wp-block-site-title a.hp-admin-controlled-logo,
body.front-page .wp-block-site-title a.hp-admin-controlled-logo{
  width: 480px !important;
  min-width: 480px !important;
  max-width: none !important;
  height: 104px !important;
  min-height: 104px !important;
  max-height: none !important;

  display: inline-block !important;
  overflow: hidden !important;
  text-indent: -9999px !important;
  white-space: nowrap !important;

  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: left center !important;
}

@media (max-width: 1366px){
  body.home header .wp-block-site-title a.hp-admin-controlled-logo,
  body.front-page header .wp-block-site-title a.hp-admin-controlled-logo,
  body.home .wp-block-site-title a.hp-admin-controlled-logo,
  body.front-page .wp-block-site-title a.hp-admin-controlled-logo{
    width: 410px !important;
    min-width: 410px !important;
    height: 88px !important;
    min-height: 88px !important;
  }
}

@media (max-width: 768px){
  body.home header .wp-block-site-title a.hp-admin-controlled-logo,
  body.front-page header .wp-block-site-title a.hp-admin-controlled-logo,
  body.home .wp-block-site-title a.hp-admin-controlled-logo,
  body.front-page .wp-block-site-title a.hp-admin-controlled-logo{
    width: 260px !important;
    min-width: 260px !important;
    height: 62px !important;
    min-height: 62px !important;
  }
}


/* ============================================================
   HotelPack — VIP Premium modern OTA cards
   2026-05-11
   Scope chirurgico: solo contenuto interno a .tour-main.
   Mantiene intatta la struttura FSE .tour-main-box > .wp-block-column > .tour-main.
   ============================================================ */

body.home .tour-main-box .tour-main,
body.front-page .tour-main-box .tour-main{
  background: transparent !important;
  border-radius: 18px !important;
  overflow: visible !important;
}

body.home .tour-main-box .hp-vip-modern,
body.front-page .tour-main-box .hp-vip-modern{
  width: 100% !important;
  height: 100% !important;
  min-height: 486px !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, .09) !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .10) !important;
  transform: translateZ(0) !important;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease !important;
}

body.home .tour-main-box .hp-vip-modern:hover,
body.front-page .tour-main-box .hp-vip-modern:hover{
  transform: translateY(-4px) !important;
  border-color: rgba(237, 139, 11, .34) !important;
  box-shadow: 0 18px 38px rgba(15, 23, 42, .14) !important;
}

body.home .tour-main-box .hp-vip-modern__media,
body.front-page .tour-main-box .hp-vip-modern__media{
  display: block !important;
  position: relative !important;
  width: 100% !important;
  height: 260px !important;
  min-height: 260px !important;
  overflow: hidden !important;
  background: rgba(15, 23, 42, .06) !important;
  text-decoration: none !important;
}

body.home .tour-main-box .hp-vip-modern__media img,
body.front-page .tour-main-box .hp-vip-modern__media img,
body.home .tour-main-box .tour-main .hp-vip-modern__media img,
body.front-page .tour-main-box .tour-main .hp-vip-modern__media img{
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  min-height: 100% !important;
  aspect-ratio: auto !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 0 !important;
  display: block !important;
  transform: scale(1.01) !important;
  transition: transform .28s ease, filter .28s ease !important;
}

body.home .tour-main-box .hp-vip-modern:hover .hp-vip-modern__media img,
body.front-page .tour-main-box .hp-vip-modern:hover .hp-vip-modern__media img{
  transform: scale(1.045) !important;
  filter: saturate(1.04) contrast(1.02) !important;
}

body.home .tour-main-box .hp-vip-modern__body,
body.front-page .tour-main-box .hp-vip-modern__body{
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 7px !important;
  padding: 13px 14px 14px !important;
  min-height: 0 !important;
}

body.home .tour-main-box .hp-vip-modern__hotel,
body.front-page .tour-main-box .hp-vip-modern__hotel{
  margin: 0 !important;
  color: #ed8b0b !important;
  font-family: var(--wp--preset--font-family--josefin-sans, inherit) !important;
  font-size: 17px !important;
  font-weight: 850 !important;
  line-height: 1.08 !important;
  letter-spacing: .01em !important;
}

body.home .tour-main-box .hp-vip-modern__package,
body.front-page .tour-main-box .hp-vip-modern__package{
  margin: 0 !important;
  color: rgba(15, 23, 42, .78) !important;
  font-family: var(--wp--preset--font-family--raleway, inherit) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.32 !important;
  white-space: pre-line !important;
}


body.home .tour-main-box .hp-vip-modern__package--fallback,
body.front-page .tour-main-box .hp-vip-modern__package--fallback{
  color: rgba(15, 23, 42, .82) !important;
}

body.home .tour-main-box .hp-vip-modern__desc,
body.front-page .tour-main-box .hp-vip-modern__desc{
  margin: -2px 0 0 !important;
  color: rgba(15, 23, 42, .62) !important;
  font-family: var(--wp--preset--font-family--raleway, inherit) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1.28 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

body.home .tour-main-box .hp-vip-modern__footer,
body.front-page .tour-main-box .hp-vip-modern__footer{
  margin-top: auto !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
  gap: 10px !important;
  padding-top: 12px !important;
}

body.home .tour-main-box .hp-vip-modern__price,
body.front-page .tour-main-box .hp-vip-modern__price{
  display: inline-flex !important;
  flex-direction: column !important;
  color: rgba(15, 23, 42, .86) !important;
  font-family: var(--wp--preset--font-family--raleway, inherit) !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  line-height: 1.18 !important;
}

body.home .tour-main-box .hp-vip-modern__price strong,
body.front-page .tour-main-box .hp-vip-modern__price strong{
  color: #101010 !important;
  font-size: 15px !important;
  font-weight: 900 !important;
}

body.home .tour-main-box .hp-vip-modern__price--fallback,
body.front-page .tour-main-box .hp-vip-modern__price--fallback{
  max-width: 132px !important;
  color: rgba(15, 23, 42, .74) !important;
}

body.home .tour-main-box .hp-vip-modern__cta,
body.front-page .tour-main-box .hp-vip-modern__cta{
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 34px !important;
  padding: 8px 12px !important;
  border-radius: 999px !important;
  background: #ed8b0b !important;
  color: #ffffff !important;
  text-decoration: none !important;
  font-family: var(--wp--preset--font-family--raleway, inherit) !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  box-shadow: 0 8px 18px rgba(237, 139, 11, .24) !important;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease !important;
}

body.home .tour-main-box .hp-vip-modern__cta:hover,
body.front-page .tour-main-box .hp-vip-modern__cta:hover{
  transform: translateY(-1px) !important;
  background: #d97600 !important;
  box-shadow: 0 12px 24px rgba(237, 139, 11, .32) !important;
}

body.home .tour-main-box .hp-vip-modern--fallback,
body.front-page .tour-main-box .hp-vip-modern--fallback,
body.home .tour-main-box .hp-vip-modern--contract-empty,
body.front-page .tour-main-box .hp-vip-modern--contract-empty{
  background: linear-gradient(180deg, #ffffff 0%, #fff8ef 100%) !important;
}

body.home .tour-main-box .hp-vip-modern--fallback .hp-vip-modern__hotel,
body.front-page .tour-main-box .hp-vip-modern--fallback .hp-vip-modern__hotel{
  color: #101010 !important;
}

@media (max-width: 1180px){
  body.home .tour-main-box .hp-vip-modern,
  body.front-page .tour-main-box .hp-vip-modern{
    min-height: 410px !important;
  }

  body.home .tour-main-box .hp-vip-modern__media,
  body.front-page .tour-main-box .hp-vip-modern__media{
    height: 210px !important;
    min-height: 210px !important;
  }
}

@media (max-width: 780px){
  body.home .tour-main-box .hp-vip-modern,
  body.front-page .tour-main-box .hp-vip-modern{
    min-height: 392px !important;
  }

  body.home .tour-main-box .hp-vip-modern__media,
  body.front-page .tour-main-box .hp-vip-modern__media{
    height: 208px !important;
    min-height: 208px !important;
  }
}

@media (max-width: 520px){
  body.home .tour-main-box .hp-vip-modern,
  body.front-page .tour-main-box .hp-vip-modern{
    min-height: 0 !important;
  }

  body.home .tour-main-box .hp-vip-modern__media,
  body.front-page .tour-main-box .hp-vip-modern__media{
    height: 245px !important;
    min-height: 245px !important;
  }
}


/* ============================================================
   HotelPack — Discovery destinations spacing normalized v4
   Scope: solo blocco città/destinazioni dentro .hp-home-discovery.
   Nota: il valore desktop è la taratura visiva attuale; in responsive
   viene ridotto/annullato per evitare sovrapposizioni.
   ============================================================ */

body.home .hp-home-discovery,
body.front-page .hp-home-discovery{
  margin-top: 24px !important;
}

body.home .hp-home-discovery__header,
body.front-page .hp-home-discovery__header{
  margin-top: 18px !important;
  margin-bottom: 10px !important;
}

body.home .hp-home-discovery__header h2,
body.front-page .hp-home-discovery__header h2{
  margin-bottom: 4px !important;
  line-height: 1.04 !important;
}

body.home .hp-home-discovery__header p,
body.front-page .hp-home-discovery__header p{
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

body.home .hp-cities-panel,
body.front-page .hp-cities-panel{
  margin-top: 0 !important;
}

@media (max-width: 1366px){
  body.home .hp-cities-panel,
  body.front-page .hp-cities-panel{
    margin-top: 0 !important;
  }
}

@media (max-width: 1024px){
  body.home .hp-home-discovery,
  body.front-page .hp-home-discovery{
    margin-top: 18px !important;
  }

  body.home .hp-cities-panel,
  body.front-page .hp-cities-panel{
    margin-top: 0 !important;
  }
}

@media (max-width: 768px){
  body.home .hp-cities-panel,
  body.front-page .hp-cities-panel{
    margin-top: 16px !important;
  }
}


/* ============================================================
   HotelPack — Hero/header micro refinement
   2026-05-20
   Scope: home header + hero benefit column only.
   ============================================================ */

/* Logo: leggermente più basso, senza cambiare dimensioni esistenti */
body.home header .wp-block-site-title a.hp-admin-controlled-logo,
body.front-page header .wp-block-site-title a.hp-admin-controlled-logo,
body.home .wp-block-site-title a.hp-admin-controlled-logo,
body.front-page .wp-block-site-title a.hp-admin-controlled-logo{
  transform: translateY(8px) !important;
}

/* Header partner actions: sostituisce il dropdown "Property" con due CTA */
.hp-header-partner-actions{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  white-space: nowrap !important;
}

.hp-header-partner-btn{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 44px !important;
  padding: 12px 18px !important;
  border-radius: 14px !important;
  font-family: var(--wp--preset--font-family--raleway, inherit) !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease !important;
}

.hp-header-partner-btn--login{
  color: #ed8b0b !important;
  background: rgba(255,255,255,.92) !important;
  border: 1px solid rgba(237,139,11,.34) !important;
  box-shadow: 0 8px 20px rgba(15,23,42,.06) !important;
}

.hp-header-partner-btn--register{
  color: #ffffff !important;
  background: #ed8b0b !important;
  border: 1px solid #ed8b0b !important;
  box-shadow: 0 10px 24px rgba(237,139,11,.24) !important;
}

.hp-header-partner-btn:hover{
  transform: translateY(-1px) !important;
  text-decoration: none !important;
}

.hp-header-partner-btn--login:hover{
  color: #d97600 !important;
  background: #ffffff !important;
  border-color: rgba(237,139,11,.58) !important;
  box-shadow: 0 12px 28px rgba(15,23,42,.10) !important;
}

.hp-header-partner-btn--register:hover{
  color: #ffffff !important;
  background: #d97600 !important;
  border-color: #d97600 !important;
  box-shadow: 0 14px 30px rgba(237,139,11,.32) !important;
}

.hp-property-dropdown[hidden]{
  display: none !important;
}

/* Hero benefit column: allineamento stabile icona/testi + hover anche senza URL */
.slider-info-main-box.hp-hero-benefits{
  gap: 34px !important;
  align-items: flex-start !important;
}

.hp-hero-benefit{
  width: 100% !important;
  max-width: 230px !important;
}

.hp-hero-benefit-link{
  display: grid !important;
  grid-template-columns: 56px minmax(0, 1fr) !important;
  align-items: center !important;
  column-gap: 16px !important;
  width: 100% !important;
  min-height: 104px !important;
  padding: 12px 14px !important;
  margin: -12px -14px !important;
  border-radius: 20px !important;
  color: inherit !important;
  text-decoration: none !important;
  transition: transform .22s ease, background-color .22s ease, box-shadow .22s ease, opacity .22s ease !important;
}

.hp-hero-benefit-link:not(.hp-hero-benefit-link--static){
  cursor: pointer !important;
}

.hp-hero-benefit-link--static{
  cursor: default !important;
}

.hp-hero-benefit-link:hover{
  transform: translateX(8px) !important;
  background: rgba(237,139,11,.075) !important;
  box-shadow: 0 14px 30px rgba(15,23,42,.09) !important;
}

.hp-hero-benefit-icon{
  grid-column: 1 !important;
  grid-row: 1 !important;
  width: 48px !important;
  height: 48px !important;
  margin: 0 !important;
  align-self: center !important;
  justify-self: center !important;
  transition: transform .22s ease, filter .22s ease !important;
}

.hp-hero-benefit-icon img{
  width: 48px !important;
  height: 48px !important;
  object-fit: contain !important;
  display: block !important;
}

.hp-hero-benefit-link:hover .hp-hero-benefit-icon{
  transform: scale(1.12) rotate(-2deg) !important;
  filter: drop-shadow(0 8px 12px rgba(15,23,42,.14)) !important;
}

.hp-hero-benefit-copy{
  grid-column: 2 !important;
  grid-row: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 8px !important;
  min-width: 0 !important;
}

.hp-hero-benefit-title{
  margin: 0 !important;
  line-height: 1.16 !important;
  font-weight: 800 !important;
}

.hp-hero-benefit-sub{
  margin: 0 !important;
  line-height: 1.35 !important;
  opacity: .88 !important;
}

@media (max-width: 1366px){
  .hp-header-partner-actions{
    gap: 8px !important;
  }

  .hp-header-partner-btn{
    min-height: 42px !important;
    padding: 11px 14px !important;
    font-size: 13px !important;
  }

  .hp-hero-benefit{
    max-width: 210px !important;
  }

  .hp-hero-benefit-link{
    grid-template-columns: 52px minmax(0, 1fr) !important;
    column-gap: 14px !important;
    min-height: 96px !important;
  }
}

@media (max-width: 768px){
  body.home header .wp-block-site-title a.hp-admin-controlled-logo,
  body.front-page header .wp-block-site-title a.hp-admin-controlled-logo,
  body.home .wp-block-site-title a.hp-admin-controlled-logo,
  body.front-page .wp-block-site-title a.hp-admin-controlled-logo{
    transform: translateY(4px) !important;
  }

  .hp-header-partner-actions{
    flex-wrap: wrap !important;
    justify-content: center !important;
  }

  .hp-header-partner-btn{
    min-height: 38px !important;
    padding: 0 !important;
    font-size: 12px !important;
  }

  .hp-hero-benefit-link{
    min-height: 0 !important;
  }
}


/* ============================================================
   HotelPack — Home discovery/advertising flow normalization
   2026-05-23
   Scope: removes legacy overlap between cities panel and ad/news flow.
   ============================================================ */
body.home .hp-home-discovery,
body.front-page .hp-home-discovery{
  margin-top: 24px !important;
  gap: 28px !important;
}

body.home .hp-cities-panel,
body.front-page .hp-cities-panel{
  margin-top: 0 !important;
  position: relative !important;
  z-index: 1 !important;
}

body.home .hp-home-bn1-slot,
body.front-page .hp-home-bn1-slot{
  display: block !important;
  width: 100% !important;
}

body.home .hp-bottom-wrap--home-final,
body.front-page .hp-bottom-wrap--home-final{
  width: min(1760px, calc(100% - 48px)) !important;
  max-width: 1760px !important;
  margin: 42px auto 72px !important;
  padding: 0 !important;
  clear: both !important;
}

body.home .hp-bottom-wrap--home-final > *,
body.front-page .hp-bottom-wrap--home-final > *{
  width: 100% !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.home .hp-bottom-wrap--home-final .hp-bottom-news,
body.front-page .hp-bottom-wrap--home-final .hp-bottom-news{
  width: 100% !important;
  max-width: 100% !important;
  border-radius: 18px !important;
  overflow: hidden !important;
}

body.home .hp-bottom-wrap--home-final .hp-bottom-news__visual,
body.front-page .hp-bottom-wrap--home-final .hp-bottom-news__visual{
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
  object-fit: cover !important;
}

@media (max-width: 1024px){
  body.home .hp-home-discovery,
  body.front-page .hp-home-discovery{
    margin-top: 18px !important;
  }
}

@media (max-width: 768px){
  body.home .hp-bottom-wrap--home-final,
  body.front-page .hp-bottom-wrap--home-final{
    width: min(100% - 24px, 1760px) !important;
    margin-top: 30px !important;
  }
}

/* ============================================================
   HotelPack — Home discovery/news compact alignment patch
   2026-05-23
   Scope: CSS only.
   Obiettivo:
   - NON trascinare più le città con margini negativi aggressivi
   - ridurre realmente il respiro del blocco news/ads sotto il core
   - sovrascrivere il layout inline di latest-news.php senza toccare query/PHP
   ============================================================ */

/* Core: il blocco città torna nel flusso naturale. */
body.home .hp-results-shell,
body.front-page .hp-results-shell{
  margin-top: 34px !important;
  align-items: flex-start !important;
}

body.home .hp-results-main,
body.front-page .hp-results-main{
  height: auto !important;
  min-height: 0 !important;
}

body.home .hp-home-discovery,
body.front-page .hp-home-discovery{
  height: auto !important;
  min-height: 0 !important;
  justify-content: flex-start !important;
  gap: 18px !important;
  margin-top: 0 !important;
}

body.home .hp-home-discovery__header,
body.front-page .hp-home-discovery__header{
  margin: 0 0 2px !important;
}

body.home .hp-cities-panel,
body.front-page .hp-cities-panel{
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 24px 26px !important;
  position: relative !important;
  z-index: 1 !important;
}

body.home .hp-cities-panel h2,
body.front-page .hp-cities-panel h2{
  margin-bottom: 16px !important;
}

body.home .hp-cities-grid,
body.front-page .hp-cities-grid{
  gap: 16px !important;
}

body.home .hp-city-card,
body.front-page .hp-city-card{
  min-height: 132px !important;
}

/* BN/news/ads sotto: niente chilometri di margine o padding. */
body.home .hp-bottom-wrap--home-final,
body.front-page .hp-bottom-wrap--home-final{
  width: min(1760px, calc(100% - 48px)) !important;
  max-width: 1760px !important;
  margin: 18px auto 34px !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  clear: both !important;
}

body.home .hp-bottom-wrap--home-final > *,
body.front-page .hp-bottom-wrap--home-final > *{
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

body.home .hp-bottom-wrap--home-final .hp-bottom-news,
body.front-page .hp-bottom-wrap--home-final .hp-bottom-news,
body.home .hp-bottom-wrap--home-final .hp-ad,
body.front-page .hp-bottom-wrap--home-final .hp-ad,
body.home .hp-bottom-wrap--home-final .hp-ad--wide,
body.front-page .hp-bottom-wrap--home-final .hp-ad--wide{
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 18px !important;
  overflow: hidden !important;
}

body.home .hp-bottom-wrap--home-final .hp-bottom-news--mode-image,
body.front-page .hp-bottom-wrap--home-final .hp-bottom-news--mode-image,
body.home .hp-bottom-wrap--home-final .hp-bottom-news--mode-text_photo,
body.front-page .hp-bottom-wrap--home-final .hp-bottom-news--mode-text_photo,
body.home .hp-bottom-wrap--home-final .hp-ad.hp-ad--photo-panel,
body.front-page .hp-bottom-wrap--home-final .hp-ad.hp-ad--photo-panel{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
}

body.home .hp-bottom-wrap--home-final .hp-bottom-news__body,
body.front-page .hp-bottom-wrap--home-final .hp-bottom-news__body{
  padding: 16px 20px !important;
}

body.home .hp-bottom-wrap--home-final .hp-ad__media,
body.front-page .hp-bottom-wrap--home-final .hp-ad__media{
  padding: 0 !important;
  margin: 0 !important;
}

body.home .hp-bottom-wrap--home-final .hp-bottom-news__visual,
body.front-page .hp-bottom-wrap--home-final .hp-bottom-news__visual,
body.home .hp-bottom-wrap--home-final .hp-ad img,
body.front-page .hp-bottom-wrap--home-final .hp-ad img,
body.home .hp-bottom-wrap--home-final .hp-ad__media img,
body.front-page .hp-bottom-wrap--home-final .hp-ad__media img,
body.home .hp-bottom-wrap--home-final .hp-ad-link img,
body.front-page .hp-bottom-wrap--home-final .hp-ad-link img{
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  max-height: 320px !important;
  height: auto !important;
  object-fit: cover !important;
  object-position: center !important;
}

/* Il vecchio slot BN1 interno al core resta spento: ora il bottom governa il flusso. */
body.home .hp-home-bn1-slot,
body.front-page .hp-home-bn1-slot{
  display: block !important;
  width: 100% !important;
}

@media (max-width: 1240px){
  body.home .hp-results-shell,
  body.front-page .hp-results-shell{
    margin-top: 28px !important;
  }

  body.home .hp-cities-panel,
  body.front-page .hp-cities-panel{
    padding: 22px 20px !important;
  }
}

@media (max-width: 980px){
  body.home .hp-results-shell,
  body.front-page .hp-results-shell{
    margin-top: 24px !important;
  }

  body.home .hp-home-discovery,
  body.front-page .hp-home-discovery{
    gap: 16px !important;
  }

  body.home .hp-city-card,
  body.front-page .hp-city-card{
    min-height: 118px !important;
  }

  body.home .hp-bottom-wrap--home-final,
  body.front-page .hp-bottom-wrap--home-final{
    width: min(100% - 28px, 1760px) !important;
    margin-top: 16px !important;
    margin-bottom: 28px !important;
  }
}

@media (max-width: 640px){
  body.home .hp-cities-panel,
  body.front-page .hp-cities-panel{
    padding: 18px 14px !important;
  }

  body.home .hp-bottom-wrap--home-final,
  body.front-page .hp-bottom-wrap--home-final{
    width: min(100% - 22px, 1760px) !important;
    gap: 14px !important;
  }

  body.home .hp-bottom-wrap--home-final .hp-bottom-news__visual,
  body.front-page .hp-bottom-wrap--home-final .hp-bottom-news__visual,
  body.home .hp-bottom-wrap--home-final .hp-ad img,
  body.front-page .hp-bottom-wrap--home-final .hp-ad img,
  body.home .hp-bottom-wrap--home-final .hp-ad__media img,
  body.front-page .hp-bottom-wrap--home-final .hp-ad__media img,
  body.home .hp-bottom-wrap--home-final .hp-ad-link img,
  body.front-page .hp-bottom-wrap--home-final .hp-ad-link img{
    max-height: 240px !important;
  }
}


/* ============================================================
   HotelPack — Small banners 600x180 proportional layout
   2026-05-24
   Scope: Banner corto 1/2 nel core home.
   Regola matematica:
   - immagine dichiarata 600x180 = rapporto 10:3
   - nessuna altezza fissa arbitraria
   - nessun object-fit: cover sui banner corti
   - nessun margine negativo
   - il banner occupa tutta la colonna utile e mantiene proporzione reale
   ============================================================ */

body.home .hp-home-small-ads-grid,
body.front-page .hp-home-small-ads-grid,
body.home .hp-home-small-banners,
body.front-page .hp-home-small-banners{
  width: 100% !important;
  max-width: 100% !important;

  margin: 26px auto 34px !important;
  padding: 0 !important;

  display: flex !important;
  flex-direction: column !important;
  gap: 18px !important;

  align-items: stretch !important;
  justify-content: flex-start !important;
  clear: both !important;
}

body.home .hp-home-small-ads-grid .hp-home-ad-slot,
body.front-page .hp-home-small-ads-grid .hp-home-ad-slot,
body.home .hp-home-small-banners .hp-home-ad-slot,
body.front-page .hp-home-small-banners .hp-home-ad-slot{
  width: 100% !important;
  max-width: 100% !important;

  margin: 0 auto !important;
  padding: 0 !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;

  border-radius: 22px !important;
  overflow: hidden !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.home .hp-home-small-ads-grid .hp-ad,
body.front-page .hp-home-small-ads-grid .hp-ad,
body.home .hp-home-small-ads-grid .hp-ad__media,
body.front-page .hp-home-small-ads-grid .hp-ad__media,
body.home .hp-home-small-ads-grid .hp-ad-link,
body.front-page .hp-home-small-ads-grid .hp-ad-link,
body.home .hp-home-small-banners .hp-ad,
body.front-page .hp-home-small-banners .hp-ad,
body.home .hp-home-small-banners .hp-ad__media,
body.front-page .hp-home-small-banners .hp-ad__media,
body.home .hp-home-small-banners .hp-ad-link,
body.front-page .hp-home-small-banners .hp-ad-link{
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
}

body.home .hp-home-small-ads-grid img,
body.front-page .hp-home-small-ads-grid img,
body.home .hp-home-small-banners img,
body.front-page .hp-home-small-banners img{
  display: block !important;

  width: 100% !important;
  max-width: 100% !important;

  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;

  aspect-ratio: 10 / 3 !important;
  object-fit: contain !important;
  object-position: center !important;

  border: 0 !important;
  border-radius: 22px !important;
}

/* Desktop stretto */
@media (max-width: 1366px){
  body.home .hp-home-small-ads-grid,
  body.front-page .hp-home-small-ads-grid,
  body.home .hp-home-small-banners,
  body.front-page .hp-home-small-banners{
    margin-top: 24px !important;
    margin-bottom: 32px !important;
    gap: 18px !important;
  }

  body.home .hp-home-small-ads-grid .hp-home-ad-slot,
  body.front-page .hp-home-small-ads-grid .hp-home-ad-slot,
  body.home .hp-home-small-banners .hp-home-ad-slot,
  body.front-page .hp-home-small-banners .hp-home-ad-slot{
    padding: 0 !important;
  }
}

/* Tablet */
@media (max-width: 980px){
  body.home .hp-home-small-ads-grid,
  body.front-page .hp-home-small-ads-grid,
  body.home .hp-home-small-banners,
  body.front-page .hp-home-small-banners{
    margin: 22px auto 28px !important;
    gap: 18px !important;
  }

  body.home .hp-home-small-ads-grid .hp-home-ad-slot,
  body.front-page .hp-home-small-ads-grid .hp-home-ad-slot,
  body.home .hp-home-small-banners .hp-home-ad-slot,
  body.front-page .hp-home-small-banners .hp-home-ad-slot{
    padding: 0 !important;
  }
}

/* Mobile */
@media (max-width: 640px){
  body.home .hp-home-small-ads-grid,
  body.front-page .hp-home-small-ads-grid,
  body.home .hp-home-small-banners,
  body.front-page .hp-home-small-banners{
    margin: 22px auto 28px !important;
    gap: 18px !important;
  }

  body.home .hp-home-small-ads-grid .hp-home-ad-slot,
  body.front-page .hp-home-small-ads-grid .hp-home-ad-slot,
  body.home .hp-home-small-banners .hp-home-ad-slot,
  body.front-page .hp-home-small-banners .hp-home-ad-slot{
    padding: 8px !important;
    border-radius: 16px !important;
  }

  body.home .hp-home-small-ads-grid img,
  body.front-page .hp-home-small-ads-grid img,
  body.home .hp-home-small-banners img,
  body.front-page .hp-home-small-banners img{
    border-radius: 12px !important;
  }
}

