/* =========================================================
   Travel Club — Modern 2026 (CLEAN)
   Un solo file coerente (no rattoppi).
   ========================================================= */

:root{
  --ink: #08399c;
  --ink2: #06286d;
  --line: rgba(21, 14, 114, 0.12);
  --bg1: #f6f7fb;
  --bg2: lch(91.02% 2.08 349.37);

  --accent: #f6c000;     /* oro */
  --accent2: #00aaff;    /* azzurro soft */

  --radius: 22px;
  --shadow: 0 14px 40px rgba(11,18,32,.10);
  --shadow2: 0 26px 70px rgba(11,18,32,.16);
}

html{ scroll-behavior: smooth; }
body{
  background: linear-gradient(180deg, var(--bg1) 0%, var(--bg2) 100%);
  color: var(--ink);
}

/* =========================
   NAVBAR: trasparente -> shrink + effetti moderni
   ========================= */
#mainNav{
  background: transparent !important;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
#mainNav.navbar-shrink{
  background: rgba(5,10,20,.78) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 14px 40px rgba(0,0,0,.25);
}

/* link nav: underline animata + active */
#mainNav .navbar-nav .nav-link{
  position: relative;
  color: rgba(255,255,255,.82);
  transition: color .18s ease, opacity .18s ease;
}
#mainNav .navbar-nav .nav-link:hover{
  color: rgba(255,255,255,.98);
}
#mainNav .navbar-nav .nav-link::after{
  content:"";
  position:absolute;
  left: .55rem;
  right: .55rem;
  bottom: .35rem;
  height: 2px;
  border-radius: 999px;
  background: rgba(246,192,0,.75);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
#mainNav .navbar-nav .nav-link:hover::after{
  transform: scaleX(1);
}
#mainNav .navbar-nav .nav-link.active{
  color: rgba(255,255,255,.98);
}
#mainNav .navbar-nav .nav-link.active::after{
  transform: scaleX(1);
}

/* =========================
   BOTTONI (2026)
   ========================= */
.btn{ border-radius: 999px !important; letter-spacing: .02em; }
.btn-primary{
  box-shadow: 0 10px 30px rgba(246,192,0,.22);
}
.btn-outline-primary{
  border-color: rgba(11,18,32,.22) !important;
  color: var(--ink) !important;
  background: rgba(255,255,255,.70);
}
.btn-outline-primary:hover{
  background: rgba(246,192,0,.14) !important;
  border-color: rgba(246,192,0,.55) !important;
}

/* =========================
   HERO (scuro elegante)
   ========================= */
header.masthead{
  position: relative;
  isolation: isolate;
  min-height: 88vh;
}
header.masthead::before{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(900px 550px at 20% 20%, rgba(246,192,0,.18), transparent 60%),
    radial-gradient(900px 550px at 82% 20%, rgba(0,170,255,.16), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,.58) 80%);
  z-index:0;
}
header.masthead .container{ position:relative; z-index:1; }

.masthead-heading{
  font-size: clamp(2.4rem, 5vw, 4.1rem) !important;
  line-height: 1.04 !important;
  text-shadow: 0 18px 50px rgba(0,0,0,.45);
}
.masthead-subheading{
  opacity: .92;
  letter-spacing: .06em;
}

/* pill */
.tc-pill{
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  padding:.35rem .8rem;
  border-radius:999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.88);
}

/* =========================
   SEZIONI (coerenti, leggere)
   ========================= */
.page-section{ padding: 5.2rem 0; }

.section-heading{
  color: var(--ink) !important;
  letter-spacing: .06em;
}
.section-subheading, .text-muted{
  color: var(--ink2) !important;
}

/* sfondo soft uguale per tutte #featured-hotels,*/
#services,  #about, #advantages{
  background:
    radial-gradient(900px 600px at 18% 10%, rgba(246,192,0,.10), transparent 62%),
    radial-gradient(900px 600px at 82% 12%, rgba(0,170,255,.08), transparent 62%),
    linear-gradient(180deg, var(--bg1) 0%, var(--bg2) 100%);
}

/* =========================
   PATTERN: AIR ROUTES (opzionale su 1 sezione)
   ========================= */
.tc-bg-routes{
  background-color: var(--bg1);
  background-image:
    radial-gradient(900px 600px at 18% 10%, rgba(246,192,0,.10), transparent 62%),
    radial-gradient(900px 600px at 82% 12%, rgba(0,170,255,.08), transparent 62%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1000' height='700' viewBox='0 0 1000 700'%3E%3Cg fill='none' stroke='%230b1220' stroke-opacity='.06' stroke-width='1.2'%3E%3Cpath d='M-60,140 C140,60 280,280 470,190 C650,110 720,70 1060,140'/%3E%3Cpath d='M-80,350 C160,270 260,480 480,400 C680,320 780,320 1100,380'/%3E%3Cpath d='M-60,560 C170,450 290,660 520,560 C710,480 790,430 1060,540'/%3E%3C/g%3E%3Cg fill='%230b1220' fill-opacity='.06'%3E%3Ccircle cx='210' cy='110' r='3'/%3E%3Ccircle cx='560' cy='185' r='3'/%3E%3Ccircle cx='780' cy='125' r='3'/%3E%3Ccircle cx='240' cy='310' r='3'/%3E%3Ccircle cx='600' cy='395' r='3'/%3E%3Ccircle cx='820' cy='360' r='3'/%3E%3Ccircle cx='260' cy='545' r='3'/%3E%3Ccircle cx='620' cy='575' r='3'/%3E%3Ccircle cx='830' cy='520' r='3'/%3E%3C/g%3E%3Cg fill='%230b1220' fill-opacity='.055'%3E%3Cpath d='M316 104l20 6-20 6-5 18-5-18-20-6 20-6 5-18z'/%3E%3Cpath d='M705 165l16 5-16 5-4 14-4-14-16-5 16-5 4-14z'/%3E%3Cpath d='M690 390l18 6-18 6-5 16-5-16-18-6 18-6 5-16z'/%3E%3Cpath d='M740 520l16 5-16 5-4 14-4-14-16-5 16-5 4-14z'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat, repeat;
  background-size: auto, auto, 1000px 700px;
  background-position: center, center, center;
}

/* =========================
   CARD BASE (chiara, moderna)
   ========================= */
.tc-glass{
  background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.74));
  border: none;
  border-radius: var(--radius);
  box-shadow:
    0 12px 35px rgba(11,18,32,.10),
    0 2px 8px rgba(11,18,32,.05);
  transition: transform .22s ease, box-shadow .22s ease;
}
.tc-glass:hover{
  transform: translateY(-8px);
  box-shadow:
    0 28px 70px rgba(11,18,32,.16),
    0 6px 16px rgba(11,18,32,.08);
}

/* =========================
   GLOW CARD (effetto luce dietro)
   ========================= */

.tc-glow::before{
  content:"";
  position:absolute;
  inset:-18px;
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(420px 220px at 20% 20%, rgba(0,170,255,.22), transparent 60%),
    radial-gradient(420px 220px at 80% 30%, rgba(246,192,0,.20), transparent 60%);
  filter: blur(14px);
  opacity: 1;
  z-index: -1;
  transition: opacity .22s ease;
}

.tc-glow{
  position: relative;
  isolation: isolate;
  border-radius: 22px;

  /* più vicino allo screen: card quasi uguale allo sfondo */
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);

  box-shadow: 0 12px 30px rgba(11,18,32,.10), 0 2px 6px rgba(11,18,32,.06);
  transition: transform .28s ease, box-shadow .28s ease, background .28s ease;
}

.tc-glow:hover{
  transform: translateY(-10px);
  background: rgba(255,255,255,.10);
  box-shadow: 0 30px 80px rgba(11,18,32,.18);
}

@media (hover:hover) and (pointer:fine){
  .tc-glow:hover::before{ opacity: 1; }
}

/* =========================
   HOTEL CARDS
   ========================= */
.tc-hotelCard{
  display:block;
  border-radius: var(--radius);
  background: rgba(255,255,255,.88);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease;
}
.tc-hotelCard:hover{
  transform: translateY(-7px);
  box-shadow: var(--shadow2);
}
.tc-hotelMedia{ overflow:hidden; }
.tc-hotelMedia img{
  width:100%;
  height:100%;
  object-fit: cover;
  transform: translateZ(0);
  transition: transform .65s ease;
}
.tc-hotelCard:hover .tc-hotelMedia img{
  transform: scale(1.05) translateY(-2px);
}
.tc-hotelBadges{ transition: transform .25s ease; }
.tc-hotelCard:hover .tc-hotelBadges{ transform: translateY(-2px); }
.tc-hotelBody{ color: var(--ink); }
.tc-hotelMeta, .tc-hotelDesc, .tc-muted{ color: var(--ink2) !important; }

/* CTA finale vetrina: uguale a regole */
#featured-hotels .btn-outline-primary{
  background: rgba(255,255,255,.78);
  border-color: rgba(11,18,32,.18) !important;
}
#featured-hotels .btn-outline-primary:hover{
  background: rgba(246,192,0,.14) !important;
  border-color: rgba(246,192,0,.55) !important;
}

/* =========================
   VANTAGGI CARD (foto + testo + click modale)
   ========================= */
.tc-adv-card{
  display:block;
  text-decoration:none;
  color: inherit;
}
.tc-adv{
  overflow:hidden;
  border-radius: var(--radius);
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(11,18,32,.10);
  box-shadow: var(--shadow);
  transition: transform .22s ease, box-shadow .22s ease;
}
.tc-adv-card:hover .tc-adv{
  transform: translateY(-8px);
  box-shadow: var(--shadow2);
}
.tc-adv-media{
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, rgba(0,170,255,.18), rgba(246,192,0,.16));
}
.tc-adv-media img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
  transition: transform .6s ease;
}
.tc-adv-card:hover .tc-adv-media img{ transform: scale(1.05); }
.tc-adv-media::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.28));
  opacity:.9;
  pointer-events:none;
}
.tc-adv-body{ padding: 1.05rem 1.1rem 1.15rem; }
.tc-adv-title{ font-weight: 800; margin: 0 0 .2rem; }
.tc-adv-sub{ margin:0; color: rgba(11,18,32,.70); }

/* =========================
   LINK LANGUAGE (underline + arrow slide)
   ========================= */
.tc-link{
  position: relative;
  display: inline-flex;
  gap: .35rem;
  align-items: center;
  color: inherit;
  text-decoration: none;
  font-weight: 650;
}
.tc-link::after{
  content:"";
  position: absolute;
  left: 0;
  bottom: -3px;
  height: 1px;
  width: 100%;
  background: rgba(11,18,32,.35);
  transform: scaleX(.12);
  transform-origin: left;
  transition: transform .22s ease;
}
.tc-link .tc-arrow{ display:inline-block; transition: transform .22s ease; }
@media (hover:hover) and (pointer:fine){
  .tc-link:hover::after{ transform: scaleX(1); }
  .tc-link:hover .tc-arrow{ transform: translateX(4px); }
}
.tc-link:focus-visible{
  outline: 3px solid rgba(246,192,0,.35);
  outline-offset: 4px;
  border-radius: 8px;
}

/* =========================
   CLICKABLE SURFACES (focus + pressed)
   ========================= */
.tc-click{
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.tc-click:active{ transform: translateY(-2px) scale(.99); }
.tc-click:focus-visible{
  outline: 3px solid rgba(0,170,255,.25);
  outline-offset: 6px;
  border-radius: var(--radius);
}

/* =========================
   REVEAL (visibile e morbido)
   ========================= */
.tc-reveal{
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .85s ease, transform .85s cubic-bezier(.2,.9,.2,1);
  will-change: opacity, transform;
}

/* =========================
   SECTION TITLES: slide-in più evidente
   ========================= */

/* solo per i titoli delle sezioni (h2 e h3 dentro .text-center) */
.page-section .text-center[data-tc-reveal].tc-reveal{
  will-change: transform, opacity;
}

/* entra molto da fuori */
.page-section .text-center[data-tc-reveal].tc-reveal.tc-left{
  transform: translateX(-140px);
}
.page-section .text-center[data-tc-reveal].tc-reveal.tc-right{
  transform: translateX(140px);
}

/* quando è visibile */
.page-section .text-center[data-tc-reveal].tc-reveal.tc-in{
  transform: translateX(0);
  opacity: 1;
}

/* fai durare un po' di più rispetto alle card */
.page-section .text-center[data-tc-reveal].tc-reveal{
  transition-duration: 1.05s;
}



/* HERO animation */

header .tc-reveal{
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 1.1s ease, transform 1.1s cubic-bezier(.2,.8,.2,1);
}

header .tc-reveal.tc-left{
  transform: translateX(-90px);
}
header .tc-reveal.tc-right{
  transform: translateX(90px);
}

header .tc-reveal.tc-in{
  opacity:1;
  transform: translate(0,0);
}


/* =========================
   CONTACT (mappa Agency + form vetro)
   ========================= */

   #contact{
  background:
    linear-gradient(180deg, rgba(11,18,32,.60), rgba(11,18,32,.80)),
    url("/static/travelclub/assets/img/map-image.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
#contactForm{
  border-radius: var(--radius);
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 18px 55px rgba(0,0,0,.25);
  padding: 1.25rem;
}
#contact .form-control{
  border-radius: 14px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.92);
}
#contact .form-control::placeholder{ color: rgba(255,255,255,.62); }

/* =========================
   MODALS (2026 glass scuro)
   ========================= */
.portfolio-modal .modal-content{
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(11,18,32,.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 26px 80px rgba(0,0,0,.45);
  color: rgba(255,255,255,.92);
}
.portfolio-modal .item-intro,
.portfolio-modal .text-muted{ color: rgba(255,255,255,.70) !important; }
.portfolio-modal .modal-body img{
  border-radius: 16px;
  box-shadow: 0 16px 55px rgba(0,0,0,.35);
}
/* X piccola */
.portfolio-modal .close-modal{
  width: 44px;
  height: 44px;
  top: 18px;
  right: 18px;
  opacity: .95;
}
.portfolio-modal .close-modal img{
  width: 16px;
  height: 16px;
  filter: invert(1);
  opacity: .9;
}

/* =========================
   HOTEL SHOWCASE: swipe / slider (mobile + desktop)
   ========================= */
.tc-slider-wrapper{ position: relative; }
.tc-slider{ scroll-behavior: smooth; }

/* mobile: swipe */
@media (max-width: 991.98px){
  .tc-hscroll{
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-left: -8px;
    margin-right: -8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 14px;
  }
  .tc-hscroll > [class*="col-"]{
    flex: 0 0 auto;
    width: 85%;
    max-width: 420px;
    scroll-snap-align: start;
    padding-left: 8px;
    padding-right: 8px;
  }
}

/* desktop: swipe + frecce (autoplay gestito dal JS) */
@media (min-width: 992px){
  .tc-slider{
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 24px;
    scroll-snap-type: x mandatory;
  }
  .tc-slider > [class*="col-"]{
    flex: 0 0 auto;
    width: 32%;
    max-width: 420px;
    scroll-snap-align: start;
  }

  .tc-slider-btn{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: none;
    background: rgba(255,255,255,.85);
    box-shadow: 0 14px 35px rgba(0,0,0,.18);
    cursor: pointer;
    z-index: 5;
    transition: all .2s ease;
  }
  .tc-slider-btn:hover{
    background: white;
    transform: translateY(-50%) scale(1.08);
  }
  .tc-prev{ left: -18px; }
  .tc-next{ right: -18px; }
  .tc-slider::-webkit-scrollbar{ display:none; }
}

/* =========================
   FOOTER: stesso mood del sito
   ========================= */
footer.footer{
  background: transparent !important;
  border-top: 1px solid var(--line);
}
footer.footer, footer.footer a{ color: var(--ink2) !important; }
footer.footer a:hover{ color: var(--ink) !important; }

header [data-tc-reveal].tc-reveal{ opacity:0 !important; }
header [data-tc-reveal].tc-reveal.tc-in{ opacity:1 !important; }

/* =========================
    ROTAIE.. 
   ========================= */

/* =========================
   CONTACT headings: sempre bianchi (override su globali)
   ========================= */
#contact .section-heading{
  color: rgba(255,255,255,.96) !important;
}
#contact .section-subheading{
  color: rgba(255,255,255,.72) !important;
}

/* se hai elementi con .text-muted dentro contact */
#contact .text-muted{
  color: rgba(255,255,255,.72) !important;
}

.page-section .text-center[data-tc-reveal] h2{
  transition-delay: .05s;
}
.page-section .text-center[data-tc-reveal] h3{
  transition-delay: .22s;
}

/* ===== Reveal direction by attribute (NO JS changes) ===== */
.tc-reveal[data-tc-reveal="left"]{ transform: translateX(-140px); }
.tc-reveal[data-tc-reveal="right"]{ transform: translateX(140px); }
.tc-reveal[data-tc-reveal="up"]{ transform: translateY(34px); }

.tc-reveal.tc-in[data-tc-reveal="left"],
.tc-reveal.tc-in[data-tc-reveal="right"],
.tc-reveal.tc-in[data-tc-reveal="up"]{
  transform: translate(0,0);
  opacity: 1;
}

/* ===== Modern Form 2026 ===== */


.masthead-full{
  min-height: 88vh;
}


/* ===== Auth Modern 2026 ===== */

.tc-auth-card{
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.88));
  box-shadow: 0 30px 80px rgba(11,18,32,.12);
}

.tc-field{
  position: relative;
  margin-bottom: 1.6rem;
}

.tc-field input{
  width:100%;
  padding: 1.2rem 1rem .6rem 1rem;
  border: none;
  border-radius: 14px;
  background: rgba(8,57,156,.06);
  font-size: 1rem;
  transition: all .25s ease;
}

.tc-field input:focus{
  outline: none;
  background: rgba(0,170,255,.10);
  box-shadow: 0 0 0 3px rgba(0,170,255,.18);
}

.tc-field label{
  position:absolute;
  left: 1rem;
  top: 1rem;
  font-size: .95rem;
  color: rgba(7, 31, 250, 0.7);
  pointer-events:none;
  transition: all .2s ease;
}

.tc-field input:focus + label,
.tc-field input:not(:placeholder-shown) + label{
  top: .4rem;
  font-size: .7rem;
  opacity: .7;
}



#mainNav.navbar-shrink{
  background: rgba(5,10,20,.82) !important;
}

.masthead-compact::before{
  background:
    linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.65));
}
/* Compact hero override */
.masthead-compact{
  min-height: 34vh !important;
  padding-top: 6rem !important;
  padding-bottom: 3rem !important;
}

.tc-field-select select{
  width:100%;
  padding: 1rem;
  border-radius: 14px;
  border: none;
  background: rgba(8,57,156,.06);
  transition: all .25s ease;
}

.tc-field-select select:focus{
  background: rgba(0,170,255,.10);
  box-shadow: 0 0 0 3px rgba(0,170,255,.18);
  outline:none;
}


:root{
  --ink-strong: #0b3ccf;
}

.form-label,
.tc-field label{
  color: var(--ink-strong) !important;
  font-weight: 600;
  letter-spacing: .02em;
}

.section-heading{
  color: var(--ink-strong) !important;
}

/* ===== Animated Validation ===== */

.form-control,
.tc-field input,
.tc-field-select select{
  transition: all .25s ease;
}

.form-control:focus,
.tc-field input:focus,
.tc-field-select select:focus{
  outline: none;
  box-shadow: 0 0 0 3px rgba(11,60,207,.25);
}

.form-control:invalid:focus{
  box-shadow: 0 0 0 3px rgba(220,53,69,.25);
}

.form-control:valid:focus{
  box-shadow: 0 0 0 3px rgba(25,135,84,.25);
}

/* ===== Modern Select ===== */

.tc-field-select{
  position: relative;
}

.tc-field-select select{
  width:100%;
  padding: 1rem;
  border-radius: 14px;
  border: none;
  background: rgba(11,60,207,.06);
  appearance: none;
  cursor: pointer;
  transition: all .25s ease;
}

.tc-field-select::after{
  content:"▼";
  position:absolute;
  right:1rem;
  top:50%;
  transform: translateY(-50%);
  font-size:.7rem;
  pointer-events:none;
  color: var(--ink-strong);
}