/* =========================================================
   Resanar — 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);
}

/* =========================================
   BACK OFFICE — allineato al markup reale
   Sostituisce il vecchio blocco backend.
========================================= */

/* menu sinistro reale (#tc-menu) */
#tc-menu{
  background: #fff;
  border: 1px solid rgba(11,18,32,.07);
  border-radius: 1.15rem;
  box-shadow: 0 12px 30px rgba(11,18,32,.08);
  overflow: hidden;
}

#tc-menu.list-group,
#tc-menu .list-group{
  border: 0;
  border-radius: inherit;
}

#tc-menu .list-group-item{
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(11,18,32,.06);
  color: #0b1220;
  font-size: .98rem;
  font-weight: 500;
  padding: .95rem 1rem;
  transition: background .18s ease, color .18s ease, padding-left .18s ease;
}

#tc-menu .list-group-item:last-child{
  border-bottom: 0;
}

#tc-menu .list-group-item:hover{
  background: rgba(246,192,0,.10);
  color: #08399c;
  padding-left: 1.15rem;
}

#tc-menu .list-group-item.active{
  background: rgba(246,192,0,.16);
  color: #08399c;
  font-weight: 700;
}

#tc-menu .list-group-item.text-danger{
  color: #dc3545 !important;
}

/* pannello principale reale (#tc-view dentro card Bootstrap) */
#tc-view > .card{
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(11,18,32,.07);
  border-radius: 1.35rem;
  box-shadow: 0 18px 40px rgba(11,18,32,.08);
  overflow: hidden;
}

#tc-view > .card > .card-body{
  padding: 1.45rem 1.45rem 1.6rem;
}

#tc-view > .card hr{
  border-color: rgba(11,18,32,.08);
}

/* box interne reali */
.tc-panel-main,
#tc-view .border.rounded{
  background: #fff;
  border: 1px solid rgba(11,18,32,.06) !important;
  border-radius: 1rem !important;
  box-shadow: 0 10px 24px rgba(11,18,32,.05);
  transition: box-shadow .22s ease, transform .22s ease;
}

.tc-panel-main:hover,
#tc-view .border.rounded:hover{
  box-shadow: 0 16px 32px rgba(11,18,32,.08);
}

.tc-panel-main{
  padding: 1.2rem;
}

/* padding coerente anche per i box generati da altri JS */
#tc-view .border.rounded{
  padding: 1rem;
}

/* header pannello */
#tc-title{
  color: var(--ink);
  font-weight: 800;
}

#tc-subtitle{
  color: rgba(11,18,32,.62) !important;
}

#tc-role{
  border-radius: 999px;
  padding: .42rem .72rem;
  font-size: .75rem;
  letter-spacing: .02em;
}

/* form controls backend */
#tc-view input.form-control,
#tc-view textarea.form-control,
#tc-view select.form-select{
  border-radius: .75rem;
  border: 1px solid rgba(11,18,32,.12);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.04);
  background: #fff;
}

#tc-view input.form-control:focus,
#tc-view textarea.form-control:focus,
#tc-view select.form-select:focus{
  box-shadow: 0 0 0 3px rgba(11,60,207,.14);
  border-color: rgba(11,60,207,.28);
}

/* tabelle backend */
#tc-view .table-responsive{
  border-radius: .9rem;
}

#tc-view .table{
  margin-bottom: 0;
}

#tc-view .table thead th{
  color: rgba(11,18,32,.62);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  border-bottom-color: rgba(11,18,32,.08);
}

#tc-view .table td{
  border-color: rgba(11,18,32,.06);
}

/* modali backend */
#tc-view .modal-content{
  border-radius: 1.15rem;
  border: 1px solid rgba(11,18,32,.07);
  box-shadow: 0 24px 60px rgba(11,18,32,.14);
}

#tc-view .modal-header,
#tc-view .modal-footer{
  border-color: rgba(11,18,32,.07);
}

/* spacing più pulito nelle griglie */
.tc-panel-main .row,
#tc-view .border.rounded .row{
  row-gap: 1rem;
}

/* piccoli badge e pill */
#tc-view .badge.bg-warning{
  color: #4f3a00 !important;
}

/* mobile */
@media (max-width: 991.98px){
  #tc-menu{
    margin-bottom: 1rem;
  }

  #tc-view > .card > .card-body{
    padding: 1rem 1rem 1.15rem;
  }

  .tc-panel-main{
    padding: 1rem;
  }
}
#tc-view .tc-soft-card{
  background: #fff;
  border: 1px solid rgba(11,18,32,.06);
  border-radius: 1rem;
  box-shadow: 0 10px 24px rgba(11,18,32,.05);
  transition: box-shadow .22s ease, transform .22s ease;
}

#tc-view .tc-soft-card:hover{
  box-shadow: 0 16px 32px rgba(11,18,32,.08);
}

/* =========================================
   BACK OFFICE — wallet / movimenti mobile-first
========================================= */

.tc-kpi-card{
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.94));
  border: 1px solid rgba(11,18,32,.06);
  border-radius: 1.1rem;
  box-shadow: 0 12px 28px rgba(11,18,32,.06);
  padding: 1rem 1.05rem;
  transition: transform .18s ease, box-shadow .18s ease;
}

.tc-kpi-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(11,18,32,.08);
}

.tc-kpi-label{
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: rgba(11,18,32,.54);
  margin-bottom: .3rem;
}

.tc-kpi-value{
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
}

.tc-kpi-sub{
  font-size: .9rem;
  color: rgba(11,18,32,.66);
  margin-top: .35rem;
}

.tc-section-box{
  background: #fff;
  border: 1px solid rgba(11,18,32,.06);
  border-radius: 1rem;
  box-shadow: 0 10px 24px rgba(11,18,32,.05);
  padding: 1rem;
}

.tc-section-title-sm{
  font-weight: 800;
  color: var(--ink);
  margin-bottom: .2rem;
}

.tc-section-copy{
  color: rgba(11,18,32,.68);
  font-size: .94rem;
}

.tc-filter-bar{
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  align-items: center;
}

.tc-filter-bar .form-select,
.tc-filter-bar .btn{
  min-height: 42px;
}

.tc-mobile-stack{
  display: grid;
  gap: 1rem;
}

@media (max-width: 767.98px){
  #tc-view > .card > .card-body{
    padding: .95rem;
  }

  .tc-panel-main,
  .tc-soft-card,
  .tc-section-box,
  .tc-kpi-card{
    border-radius: .95rem !important;
  }

  .tc-filter-bar{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .6rem;
  }

  .tc-filter-bar .btn{
    width: 100%;
  }

  .tc-filter-bar .tc-filter-full{
    grid-column: 1 / -1;
  }

  .tc-mobile-scroll{
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .tc-mobile-scroll table{
    min-width: 760px;
  }
}

#qrManualPanel{
  padding: 1rem;
}

@media (max-width: 767.98px){
  #qrReader{
    max-width: 100% !important;
  }
}

#partnerModeTabs .btn{
  min-width: 150px;
}

#qrCanvas.tc-soft-card{
  min-height: 260px;
}

@media (max-width: 767.98px){
  #partnerModeTabs{
    display: grid !important;
    grid-template-columns: 1fr;
  }

  #partnerModeTabs .btn{
    width: 100%;
  }
}


.tc-checklist-item,
.tc-quick-link {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}

.tc-checklist-item:hover,
.tc-quick-link:hover {
  background: #fff3cd;
  border-color: #f0d98a;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

.tc-checklist-item:focus,
.tc-quick-link:focus {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

.tc-checklist-item .text-dark {
  color: #212529 !important;
}

.tc-checklist-item .small.text-muted {
  color: #6c757d !important;
}

#tc-menu a.tc-menu-disabled {
  opacity: 0.45;
  filter: grayscale(0.2);
  cursor: not-allowed;
  pointer-events: auto;
}

#tc-menu a.tc-menu-disabled:hover {
  background: inherit;
  color: inherit;
}

.tc-tier-card {
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 1rem;
  background: #fff;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  transition: transform .18s ease, box-shadow .18s ease;
}

.tc-tier-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.10);
}

.tc-tier-badge {
  display: inline-block;
  padding: .35rem .7rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.tc-tier-sub {
  font-size: .92rem;
  color: #6b7280;
}

.tc-tier-rules {
  margin: 0;
  padding-left: 1rem;
  color: #4b5563;
  font-size: .92rem;
}

.tc-tier-rules li + li {
  margin-top: .45rem;
}

.tc-tier-note {
  font-size: .85rem;
  color: #6b7280;
  border-top: 1px dashed rgba(0,0,0,.08);
  padding-top: .85rem;
}

.tc-tier-diamond {
  border-color: rgba(246,192,0,.28);
  background: linear-gradient(180deg, rgba(246,192,0,.10), rgba(255,255,255,1));
}
.tc-tier-diamond .tc-tier-badge {
  background: rgba(246,192,0,.18);
  color: #6b4f00;
}

.tc-tier-gold {
  border-color: rgba(25,135,84,.20);
  background: linear-gradient(180deg, rgba(25,135,84,.08), rgba(255,255,255,1));
}
.tc-tier-gold .tc-tier-badge {
  background: rgba(25,135,84,.14);
  color: #146c43;
}

.tc-tier-silver {
  border-color: rgba(13,110,253,.20);
  background: linear-gradient(180deg, rgba(13,110,253,.08), rgba(255,255,255,1));
}
.tc-tier-silver .tc-tier-badge {
  background: rgba(13,110,253,.14);
  color: #0a58ca;
}

.tc-tier-bronze {
  border-color: rgba(108,117,125,.22);
  background: linear-gradient(180deg, rgba(108,117,125,.08), rgba(255,255,255,1));
}
.tc-tier-bronze .tc-tier-badge {
  background: rgba(108,117,125,.14);
  color: #495057;
}

.tc-points-choice-card {
  border: 1px solid rgba(13,110,253,.18);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(13,110,253,.08), rgba(255,255,255,1));
  padding: 1.25rem 1.25rem 1rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.tc-points-choice-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.10);
  border-color: rgba(13,110,253,.30);
}

.tc-points-choice-kicker {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #0a58ca;
  margin-bottom: .35rem;
}

.tc-points-choice-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: .35rem;
}

.tc-points-choice-copy {
  font-size: .92rem;
  color: #6b7280;
  line-height: 1.5;
  max-width: 62ch;
}

.tc-points-choice-switch .form-check-input {
  transform: scale(1.15);
}

.tc-points-choice-note {
  font-size: .88rem;
  color: #4b5563;
  border-top: 1px dashed rgba(0,0,0,.08);
  padding-top: .85rem;
}

/* Select disabilitata: aspetto più opaco e chiaro */
select:disabled,
.form-select:disabled {
  background-color: #e9ecef !important;
  color: #6c757d !important;
  border-color: #ced4da !important;
  opacity: 1 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}

/* opzionale: icona freccia meno evidente */
.form-select:disabled {
  filter: grayscale(20%);
}

.tc-fund-shell {
  max-width: 1040px;
  margin: 0 auto;
}

.tc-fund-main {
  border-radius: 20px;
  overflow: hidden;
}

.tc-fund-topup-box,
.tc-fund-wallet-box,
.tc-inline-estimate,
.tc-soft-card,
.tc-kpi-card {
  background: #fff;
  border: 1px solid rgba(10, 42, 110, 0.08);
  border-radius: 18px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.tc-fund-topup-box,
.tc-fund-wallet-box {
  padding: 1rem;
}

.tc-soft-card,
.tc-kpi-card {
  box-shadow: 0 6px 20px rgba(7, 33, 79, 0.05);
}

.tc-soft-card:hover,
.tc-kpi-card:hover,
.tc-fund-topup-box:hover,
.tc-fund-wallet-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(7, 33, 79, 0.09);
  border-color: rgba(10, 42, 110, 0.14);
}

.tc-inline-estimate {
  padding: 1rem;
  text-align: center;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tc-inline-estimate-value {
  font-size: 1.65rem;
  font-weight: 700;
  color: #0d47a1;
  line-height: 1.1;
  margin-top: .15rem;
}

.tc-inline-link {
  margin-top: .35rem;
  text-decoration: none;
}

.tc-fund-semaphore-box {
  min-width: 240px;
  padding: .9rem 1rem;
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border: 1px solid rgba(10, 42, 110, 0.08);
  box-shadow: 0 6px 20px rgba(7, 33, 79, 0.05);
}

.tc-semaforo-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 4px rgba(0,0,0,.05);
}

.tc-fund-balance {
  font-size: 2rem;
  font-weight: 700;
  color: #0d47a1;
  line-height: 1.1;
}

.tc-fund-legend {
  display: flex;
  gap: .85rem;
  flex-wrap: wrap;
}

.tc-fund-legend-item {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .92rem;
  color: #5f6b7a;
}

.tc-legend-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.tc-kpi-card {
  padding: 1rem;
}

.tc-kpi-label {
  font-size: .88rem;
  color: #6c757d;
  margin-bottom: .35rem;
}

.tc-kpi-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0d47a1;
  line-height: 1.15;
}

@media (max-width: 991.98px) {
  .tc-fund-semaphore-box {
    width: 100%;
    min-width: 100%;
  }

  .tc-fund-balance {
    font-size: 1.7rem;
  }

  .tc-inline-estimate-value {
    font-size: 1.4rem;
  }
}

.tc-inline-estimate-value {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.tc-scroll-target {
  scroll-margin-top: 110px;
}
.tc-inline-estimate-value{
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.tc-status-dot{
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 4px rgba(0,0,0,.05);
}

.tc-scroll-target{
  scroll-margin-top: 110px;
}
.tc-topup-inline-row .form-label {
  margin-bottom: 0.5rem;
}


.tc-inline-output-box .tc-inline-estimate-value {
  width: 100%;
  text-align: center;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.tc-topup-inline-row .form-label {
  margin-bottom: 0.5rem;
}

.tc-inline-output-box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(3.5rem + 2px);
  text-align: center;
  background: #fff;
}

.tc-topup-inline-row .form-text{
  max-width: 36ch;
}

.tc-move-card{
  background:#fff;
  border:1px solid rgba(11,18,32,.08);
  border-radius:1rem;
  box-shadow:0 10px 24px rgba(11,18,32,.05);
  padding:1rem;
}

.tc-move-card + .tc-move-card{
  margin-top:.85rem;
}

.tc-move-card-empty{
  text-align:center;
}

.tc-move-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:.75rem;
  margin-bottom:.65rem;
  flex-wrap:wrap;
}

.tc-move-date{
  font-weight:700;
  color:var(--ink,#08399c);
}

.tc-move-role{
  font-size:.92rem;
  color:rgba(11,18,32,.72);
  margin-bottom:.75rem;
}


.tc-move-note{
  font-size:.9rem;
  color:rgba(11,18,32,.72);
  line-height:1.4;
  overflow-wrap:anywhere;
  word-break:break-word;
}

.tc-move-mobile-list{
  display:none;
}

@media (max-width: 767.98px){
  .tc-move-desktop-table{
    display:none;
  }

  .tc-move-mobile-list{
    display:block;
  }
}

.tc-move-lines{
  display:flex;
  flex-direction:column;
  gap:.35rem;
  margin-bottom:.8rem;
}

.tc-move-line{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:.75rem;
  padding:.45rem 0;
  border-bottom:1px solid rgba(11,18,32,.08);
  background:transparent;
  border-radius:0;
}

.tc-move-line:last-child{
  border-bottom:none;
}

.tc-move-line-label{
  font-size:.88rem;
  color:rgba(11,18,32,.68);
  white-space:nowrap;
}

.tc-move-line-value{
  font-weight:700;
  color:#0b1220;
  text-align:right;
  overflow-wrap:anywhere;
  word-break:break-word;
}

/* =========================================
   BLOG POST HERO — fix titolo lungo mobile
   Override mirato: non altera gli altri masthead
========================================= */

body.page-blog header.masthead.blog-post-hero .container{
  max-width: 100% !important;
  padding-left: 16px !important;
  padding-right: 16px !important;
}

body.page-blog header.masthead.blog-post-hero .masthead-heading{
  display: block !important;
  width: 100%;
  max-width: 100% !important;
  margin-left: auto;
  margin-right: auto;
  padding-left: 4px;
  padding-right: 4px;

  font-size: clamp(1.95rem, 5.6vw, 3rem) !important;
  line-height: 1.10 !important;
  text-transform: none !important;

  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  hyphens: auto;
  text-wrap: balance;
}

@media (max-width: 767.98px){
  body.page-blog header.masthead.blog-post-hero .masthead-heading{
    font-size: clamp(1.65rem, 7.2vw, 2.2rem) !important;
    line-height: 1.08 !important;
  }
}

@media (max-width: 575.98px){
  body.page-blog header.masthead.blog-post-hero .masthead-heading{
    font-size: clamp(1.45rem, 8vw, 1.95rem) !important;
    line-height: 1.06 !important;
  }

  body.page-blog header.masthead.blog-post-hero .masthead-subheading{
    font-size: .9rem !important;
  }
}
