/* Visitia base styles */

/* Buttons & links */
.btn { padding: 16px 28px; border-radius: var(--button-radius); text-transform: none; border-width: 2px; border-style: solid; letter-spacing: .02em; font-weight: 700; }
.btn-outline { border: 2px solid var(--button-color); color: var(--button-color); background: transparent; }
/* Pill filled button (vecchio sito) */
.btn-primary {
  background: var(--brand-accent) !important;
  color: #000 !important;
  border-color: var(--brand-accent) !important;
  border-radius: 30px;
  box-shadow: 0 6px 18px rgba(246, 141, 69, 0.35);
}
.btn-primary:hover { filter: brightness(0.95); }
.btn + .btn { margin-left: 12px; }

/* Link CTA con freccia → (vecchio sito) */
.link-cta {
  display: inline-block;
  color: var(--brand-accent) !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  font-weight: 700;
  text-decoration: none;
}
.link-cta::after {
  content: "\2192"; /* → */
  margin-left: 10px;
  transition: transform .2s ease;
}
.link-cta:hover::after { transform: translateX(4px); }
.btn-outline:hover { background: var(--button-color); color: #fff; }
a { color: var(--muted-color); }
a:hover { color: var(--muted-color); text-decoration: none; }
:root {
  --brand-accent: #f68d45;
  --brand-dark: #0f172a;
  --text-color: #808080;
  --muted-color: #8f8f8f;
  --radius-lg: 14px;
  --button-color: #808080;
  --button-radius: 30px;
}

html, body { height: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 25.5px;
  color: var(--text-color);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Josefin Sans', Arial, sans-serif;
  color: var(--brand-dark);
}
h1 { font-size: 57px; line-height: 62.7px; font-weight: 700; letter-spacing: normal; }
h2 { font-size: 43px; font-weight: 700; }
h3 { font-size: 36px; font-weight: 700; }

#page-container { padding: 0 0 60px 0; }
/* .container override rimosso: usiamo il container Bootstrap di default */
/* Container responsive widths (align with Bootstrap container breakpoints) */
.container-xxl { padding-left: 15px; padding-right: 15px; margin-left: auto; margin-right: auto; width: 100%; }
@media (min-width: 576px) { .container-xxl { max-width: 540px; } }
@media (min-width: 768px) { .container-xxl { max-width: 720px; } }
@media (min-width: 992px) { .container-xxl { max-width: 960px; } }
@media (min-width: 1200px) { .container-xxl { max-width: 1140px; } }
@media (min-width: 1400px) { .container-xxl { max-width: 1320px; } }

/* Header */
.visitia-header .navbar { padding: 0; min-height: 83px; }
.visitia-header .navbar > .container-xxl { display: flex; align-items: center; min-height: 83px; }
.visitia-header .navbar-brand { display: flex; align-items: center; font-weight: 700; }
.visitia-header .brand-logo { height: 70px !important; width: 70px !important; display: block; }
@media (max-width: 576px) {
  .visitia-header .brand-logo { height: 60px !important; width: 60px !important; }
}
.visitia-header .nav-link { padding: 0 15px; color: #808080; display: inline-flex; align-items: center; height: 83px; }
/* Active link gradient color */
.visitia-header .nav-link.active {
  background: none !important;
  color: #f68d45 !important;
  -webkit-text-fill-color: #f68d45;
}
.visitia-header .nav-link.active:hover { color: #f68d45 !important; }
.visitia-header .nav-link:hover { color: var(--muted-color); text-decoration: none; }

/* Hero slider */
.hero-swiper { position: relative; width: 100%; min-height: 560px; }
.hero-swiper .swiper-wrapper, .hero-swiper .swiper-slide { height: 100%; }
.hero-slide { position: relative; display: flex; align-items: center; justify-content: center; background-size: cover; background-position: center; }
.hero-static__overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.15) 100%); }
.hero-static__inner { position: relative; max-width: 920px; text-align: center; padding: 72px 0; color: #fff; }
.hero-static__title { margin-bottom: 16px; font-size: 57px; line-height: 62.7px; font-weight: 700; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.45); }
@media (max-width: 576px) {
  .hero-swiper { min-height: 420px; }
  .hero-static__title { font-size: 28px; }
}
.hero-static__text { margin-bottom: 20px; font-size: 20px; line-height: 1.8; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.35); }
.hero-ctas { margin-top: 16px; }
.hero-swiper .btn.btn-primary, .hero-swiper .btn.btn-outline { font-weight: 600; }
.hero-swiper .swiper-pagination-bullet { background: #fff; opacity: .7; }
.hero-swiper .swiper-pagination-bullet-active { opacity: 1; }

/* Feature list */
.features-list { margin-top: 12px; }
.features-list li { margin-bottom: 10px; }
.accent-label { color: var(--brand-accent); letter-spacing: .02em; }
.store-badge { height: 56px; width: auto; margin-right: 12px; }
.store-badge:last-child { margin-right: 0; }
.phone-mock { max-height: 560px; }

/* Cards slider */
.cards-swiper { padding: 4px 4px 32px 4px; }
.cards-swiper .swiper-pagination-bullet { background: #333; opacity: .35; }
.cards-swiper .swiper-pagination-bullet-active { opacity: .9; }

/* Gallery slider */
.gallery-swiper { padding: 4px 4px 28px 4px; }
.gallery-swiper .swiper-slide { text-align: center; }
.gallery-swiper img { border-radius: 12px; max-height: 380px; object-fit: cover; }

/* Visual cards */
.card-hero { position: relative; display: block; width: 100%; min-height: 260px; border-radius: 14px; overflow: hidden; background-size: cover; background-position: center; color: #fff; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.card-hero:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.card-hero__overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.2) 100%); transition: background .2s ease; }
.card-hero:hover .card-hero__overlay { background: linear-gradient(0deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 100%); }
.card-hero__body { position: relative; padding: 24px; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.card-hero h4, .card-hero h5, .card-hero p { color: #fff; margin: 0 0 6px 0; }

/* Trust badges */
.trust-badge { display: flex; flex-direction: column; align-items: center; }
.trust-badge__icon { width: 64px; height: 64px; background-size: contain; background-repeat: no-repeat; background-position: center; margin: 0 auto 10px; }

/* Analytics card */
.analytics-card { border: 1px solid #eee; border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.analytics-card__header { padding: 12px 16px; border-bottom: 1px solid #f2f2f2; background: #fafafa; }
.analytics-card__body { padding: 10px 16px; }
.analytics-card__footer { padding: 10px 16px; border-top: 1px solid #f2f2f2; }
.analytics-mock { border-radius: 8px; }
.stat { font-size: 14px; color: var(--muted-color); }
.stat strong { display: block; font-size: 18px; color: var(--brand-dark); }

/* Footer */
.visitia-footer { border-top: 1px solid #eee; color: #808080; }

/* Feature cards */
.feature-card { background: #fff; border: 1px solid #eee; border-radius: var(--radius-lg); padding: 16px; height: 100%; }
.feature-card h4 { margin-bottom: 6px; color: var(--brand-dark); }

/* Event card layout: immagine a fianco del testo */
.event-card { display: grid; grid-template-columns: 260px 1fr; gap: 20px; align-items: start; }
@media (max-width: 576px) { .event-card { grid-template-columns: 1fr; } }
.event-card__thumb { width: 100%; height: 180px; object-fit: cover; border-radius: 12px; display: block; }

/* Dettaglio evento */
.event-cover { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius-lg); margin-bottom: 16px; }

/* Event detail: map and gallery */
.event-map { position: relative; width: 100%; height: 360px; border: 1px solid #eee; border-radius: var(--radius-lg); overflow: hidden; margin: 16px 0; background: #fafafa; }
.event-map iframe { width: 100%; height: 100%; display: block; }
.event-map__link { position: absolute; right: 10px; bottom: 10px; background: rgba(255,255,255,.9); padding: 6px 10px; border-radius: 8px; font-size: 13px; }
.event-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 20px 0; }
@media (max-width: 992px) { .event-gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 576px) { .event-gallery { grid-template-columns: repeat(2, 1fr); } }
.event-gallery__item { border-radius: 10px; overflow: hidden; border: 1px solid #eee; background: #fff; }
.event-gallery__item img { width: 100%; height: 140px; object-fit: cover; display: block; }

/* illustrazione sezione turismo smart */
.feature-illustration { max-height: 420px; border-radius: var(--radius-lg); }

/* Hero align left */
.hero-static__inner { text-align: left; max-width: none; }
/* Sezione muta (grigia) */
.muted-section { background: #f8f8f8; color: #8f8f8f !important; }
/* Ripristina la griglia dei testi dell'hero: width come container-xxl */
.hero-static__inner.container-xxl { width: 100%; margin-left: auto; margin-right: auto; }
@media (min-width: 576px) { .hero-static__inner.container-xxl { max-width: 540px; } }
@media (min-width: 768px) { .hero-static__inner.container-xxl { max-width: 720px; } }
@media (min-width: 992px) { .hero-static__inner.container-xxl { max-width: 960px; } }
@media (min-width: 1200px) { .hero-static__inner.container-xxl { max-width: 1140px; } }
@media (min-width: 1400px) { .hero-static__inner.container-xxl { max-width: 1320px; } }

/* Sotto 520px: non fluido per il testo dell'hero */
@media (max-width: 519.98px) {
  .hero-static__inner.container-xxl { max-width: 480px; }
  .hero-static__content { width: 100%; max-width: 100%; }
}
.hero-static__title, .hero-static__text, .hero-ctas { text-align: left; }

/* Hero half-width content */
.hero-static__content { width: 50%; max-width: 50%; }
@media (max-width: 992px) { .hero-static__content { width: 100%; max-width: 100%; } }

/* Come funziona: immagine a fianco con overlap header */
.cf-image-wrap { position: relative; }
@media (min-width: 992px) {
  .cf-image-overlap {
    position: relative;
    margin-top: -103%;
    transform: none;
    z-index: 2;
    box-shadow: 0 0 25px #000;
    border-radius: 30px !important;
    border: none;
    width: 90%;
  }
  /* spostato in regola globale sotto */
}

/* Pay buttons (Apple Pay / Google Pay) */
.pay-buttons .btn-pay {
  width: 189px;
  height: 56px;
  color: #ffffff !important;
  background-color: #f68d45 !important;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border: none;
  padding: 0 16px;
}
.pay-buttons { display: flex; gap: 12px; justify-content: center; align-items: center; }
@media (max-width: 576px) { .pay-buttons { flex-direction: column; gap: 10px; } }
.pay-buttons .btn-pay .pay-label { margin-left: 8px; }
.pay-buttons .btn-pay .pay-icon, .pay-buttons .btn-pay .pay-svg {
  width: 26px;
  height: 26px;
  display: block;
}

/* Carousel styles */
.news_modulo { padding: 60px 0 80px 0; }
.news_modulo.colori_4 { background-color: #ffffff; }
.news_modulo .intro { margin-bottom: 30px; }
.intro h6 { margin-bottom: 10px; }
.intro h2 { margin-bottom: 20px; }

.row_news { position: relative; }
.gap_vertical_30 > div { margin-bottom: 0; }
.gap_horizontal_60 > div { padding-left: 0; padding-right: 0; }

/* Override per carousel - rimuove gap per utilizzare al massimo lo spazio */
.owl-carousel.gap_horizontal_60 .owl-item { padding: 0; }
.owl-carousel.gap_vertical_30 .owl-item { margin-bottom: 0; }

.owl-carousel { display: flex; flex-wrap: nowrap; overflow: hidden; }
.owl-stage-outer { overflow: hidden; position: relative; }
.owl-stage { display: flex; transition: transform 0.8s ease; }
.owl-item { display: flex; min-height: 1px; }
/* .owl-item.active - Item attivo (stili da aggiungere se necessario) */

.news_with_img figure { 
  margin: 0; 
  position: relative; 
  overflow: hidden; 
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}
.news_with_img .img-responsive { 
  width: 100%; 
  height: auto; 
  object-fit: contain;
  display: block; 
}
.img-rounded { border-radius: 0; }

/* Layout specifico per i carousel items */
.new_item { 
  padding: 0; 
  width: 100%;
  display: flex;
  flex-direction: column;
}
.new_item figure {
  width: 100%;
  flex: 1;
}

/* Override delle classi Bootstrap che potrebbero interferire */
.owl-carousel .new_item {
  max-width: none !important;
  flex-basis: auto !important;
}

/* Sincronizzazione altezza degli item del carousel */
.owl-carousel .owl-item {
  display: flex;
  align-items: stretch;
}

.owl-carousel .new_item {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.owl-nav { display: flex; justify-content: space-between; margin-top: 20px; }
.owl-nav button { background: #f5f5f5; border: none; padding: 10px 15px; border-radius: 50%; cursor: pointer; }
.owl-nav button:hover { background: #e0e0e0; }
.owl-nav .bi { font-size: 18px; }

.owl-dots { 
  display: flex; 
  justify-content: center; 
  margin-top: 25px; 
  margin-bottom: 15px;
  gap: 10px; 
  padding: 10px 0;
}
.owl-dot { 
  background: #ddd; 
  border: none; 
  width: 12px; 
  height: 12px; 
  border-radius: 50%; 
  cursor: pointer; 
  transition: background-color 0.3s ease;
}
.owl-dot.active { background: var(--brand-accent); }
.owl-dot:hover { background: #bbb; }
.owl-dot span.offscreen { position: absolute; left: -9999px; }

.offscreen { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Hide arrows if needed */
.nascondi_frecce .owl-nav { display: none !important; }

/* Owl Carousel base styles */
.owl-carousel.owl-theme { position: relative; }
.owl-carousel .owl-stage { display: flex; }
.owl-carousel .owl-item { min-height: 1px; float: left; -webkit-backface-visibility: hidden; backface-visibility: hidden; -webkit-touch-callout: none; position: relative; }

/* Specific news carousel styles */
.colori_4 { background-color: #fff; }
.more_pad { padding: 60px 0; }
.bg_no { background: none; }
/* .scritte - Base class for text sections */
/* .testo_sovrapposto_immagine - Text overlay on image sections */
/* .news6 - News style variant 6 */

/* Item specific styles */
.new_item { position: relative; }
/* .item_1009937, .item_1009939, .item_1009941, .item_1009943, .item_1009957 - Specific item styling (add properties if needed) */

/* Bootstrap Icon chevrons */
.bi-chevron-left::before { content: "\f282"; }
.bi-chevron-right::before { content: "\f285"; }

/* Image Text Section styles */
.img_testo.colori_1 {
  background-color: #ffffff;
}

/* Apply custom 1320px grid to standard container in components */
.img_testo .container,
.news_modulo .container {
  padding-left: 15px;
  padding-right: 15px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

@media (min-width: 576px) { 
  .img_testo .container,
  .news_modulo .container { max-width: 540px; } 
}
@media (min-width: 768px) { 
  .img_testo .container,
  .news_modulo .container { max-width: 720px; } 
}
@media (min-width: 992px) { 
  .img_testo .container,
  .news_modulo .container { max-width: 960px; } 
}
@media (min-width: 1200px) { 
  .img_testo .container,
  .news_modulo .container { max-width: 1140px; } 
}
@media (min-width: 1400px) { 
  .img_testo .container,
  .news_modulo .container { max-width: 1320px; } 
}

/* Outgrid effects - image extends from screen edge to grid */
.outgrid_l img {
  width: calc(100% + 17vw);
  margin-left: -17vw;
  max-height: none;
  max-width: none;
}

.outgrid_r img {
  width: calc(100% + 17vw);
  margin-right: -17vw;
  max-height: none;
  max-width: none;
}

.img_testo .main_container_obj {
  position: relative;
}

.img_testo .img-responsive {
  width: 100%;
  height: auto;
  display: block;
}

.img_testo .text_part .padd {
  padding: 30px;
}

.img_testo .fade_left,
.img_testo .fade_right {
  opacity: 1;
}

.allineamento_verticale_centro {
  display: flex;
  align-items: center;
}

.gap_vertical_30 > div {
  margin-bottom: 30px;
}

.gap_horizontal_60 > div {
  padding-left: 30px;
  padding-right: 30px;
}

.colori_1 h6 strong,
.colori_1 .subtitle-medium strong {
  color: #8f8f8f;
}

.colori_1 h2,
.colori_1 .title-large {
  color: rgba(0, 0, 0, 0.45);
}

.colori_1 p {
  color: #8f8f8f;
}

/* Specific btn-outline style from original CSS */
.btn-outline {
  padding-left: 0;
  padding-right: 0;
  position: relative;
  border-radius: 0 !important;
  border-color: transparent !important;
  background: transparent !important;
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 700;
  min-height: 45px;
}

.btn-outline::before {
  display: inline-block;
  -webkit-transition: all .5s ease-in-out;
  -o-transition: all .5s ease-in-out;
  transition: all .5s ease-in-out;
  content: "";
  position: absolute;
  bottom: 0;
  margin: auto;
  top: 4px;
  border: 2px solid;
  width: 8px;
  height: 8px;
  right: 0;
  transform-origin: 50%;
  transform: rotate(45deg);
  border-bottom-color: transparent;
  border-left-color: transparent;
}

.btn-outline::after {
  content: "";
  border-bottom: 2px solid;
  position: relative;
  left: 0;
  width: 20px;
  bottom: -2px;
  -webkit-transition: all .5s ease-in-out;
  -o-transition: all .5s ease-in-out;
  transition: all .5s ease-in-out;
}

.btn-outline:hover::after {
  width: 35px;
}

.btn-outline:hover {
  color: #444 !important;
  background: transparent !important;
}

.colori_1 .btn-outline,
.colori_1 .btn-outline::before,
.colori_1 .btn-outline::after {
  color: #8f8f8f;
  border-color: #8f8f8f;
}

.colori_1 .btn-outline:hover {
  color: #444 !important;
}

/* Cover image styles for image sections */
.cover_img .main_container_obj {
  overflow: hidden;
  position: relative;
  height: 100%;
}

.cover_img .obj_part img {
  width: auto;
  max-width: none;
  display: block;
  position: absolute;
  left: -10000%;
  right: -10000%;
  top: -10000%;
  bottom: -10000%;
  margin: auto auto;
  min-width: 1000%;
  min-height: 1000%;
  -webkit-transform: scale(0.1);
  transform: scale(0.1);
}

.cover_img .row {
  display: flex;
  align-items: stretch !important;
}

@media (max-width: 991px) {
  .outgrid_l img,
  .outgrid_r img {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  
  .gap_horizontal_60 > div {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* TextSection component styles */
.container_boxed {
  position: relative;
  width: 100%;
}

.testo_row {
  position: relative;
}

.scritte {
  position: relative;
}

.inner_p {
  padding: 30px 0;
}

.text-container-ck {
  position: relative;
  padding: 30px;
  border-radius: 0;
}

.bg_text_color {
  background-color: transparent;
}

.colori_4 {
  background-color: #fff;
  color: #8f8f8f;
}

.colori_4 h6,
.colori_4 .subtitle-medium {
  color: #8f8f8f;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 10px;
}

.colori_4 h2,
.colori_4 .title-large {
  color: rgba(0, 0, 0, 0.45);
  margin-bottom: 20px;
}

.colori_4 p {
  color: #8f8f8f;
  line-height: 1.6;
  margin-bottom: 15px;
}

/* Gap classes for spacing */
.gap_vertical_30 {
  gap: 30px 0;
}

.gap_horizontal_30 {
  margin-left: -15px;
  margin-right: -15px;
}

.gap_horizontal_30 > div {
  padding-left: 15px;
  padding-right: 15px;
}

/* Border radius styles */
.style_border_radius_br100,
.style_border_radius_bl100,
.style_border_radius_tr100,
.style_border_radius_tl100 {
  display: none; /* Hide the border radius elements for now */
}

/* Animation classes */
.fade_up {
  opacity: 1;
  transform: translateY(0);
}

.animated {
  animation-duration: 1s;
  animation-fill-mode: both;
}

.fadeIn {
  animation-name: fadeIn;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Mobile responsiveness for text sections */
@media (max-width: 767px) {
  .col-md-6.col-md-offset-3 {
    width: 100%;
    margin-left: 0;
  }
  
  .text-container-ck {
    padding: 20px;
  }
  
  .inner_p {
    padding: 20px 0;
  }
}
