/*
 Theme Name:  TT25 Child – RomeMiniCab
 Template:    twentytwentyfive
 Version:     1.0.0
 Text Domain: tt25-child
*/

/* ===========================
   Variabili
=========================== */
:root{
  --rmc-bg-dark: #0e0e0e;
  --rmc-white: #ffffff;
  --rmc-header-glass: rgba(0,0,0,.60);

  --rmc-header-h: 84px;   /* più aria */
  --rmc-gap: 28px;
  --rmc-radius: 16px;

  --wp-adminbar-h: 0px;   /* impostata da app.js */
}

/* Base */
*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
img,svg,video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.screen-reader-text {
  position: absolute !important; clip: rect(1px,1px,1px,1px);
  padding: 0; border: 0; height: 1px; width: 1px; overflow: hidden;
}
.screen-reader-text:focus {
  clip: auto !important; width: auto; height: auto;
  background:#000; color:#fff; padding:.5rem .75rem; z-index:100000;
}




/* Assicura che il contenuto dell'hero (form + mappa) stia sopra l'overlay */
.rmc-hero { position: relative; }
.rmc-hero__bg { position: absolute; inset: 0; z-index: 0; }
.rmc-hero__overlay { position: absolute; inset: 0; z-index: 1; pointer-events: none; } /* non blocca click/render */
.rmc-hero__content { position: relative; z-index: 3; }

/* Il wrapper del form */
.rmc-hero__form { position: relative; z-index: 3; }

/* Contenitore mappa CHBS: garantisci dimensioni e “piano” sopra */
.rmc-hero__form .chbs-google-map,
.rmc-hero__form .chbs-map,
.rmc-hero__form #chbs_map {
  position: relative;
  width: 100%;
  min-height: 380px; /* aumenta se serve */
  height: 380px;
  z-index: 3;
  overflow: visible;
}






/* ===========================
   Header overlay + Nav centrato (desktop)
=========================== */
.rmc-header{
  position: fixed; left:0; right:0;
  top: var(--wp-adminbar-h);
  z-index: 10000;
  background: transparent;
  transition: background-color .3s, box-shadow .3s, backdrop-filter .3s, top .2s;
}
.rmc-header--scrolled{
  background: var(--rmc-header-glass);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
}

/* griglia 3 colonne: [logo][nav centrato][hamburger] */
.rmc-header__inner{
  min-height: var(--rmc-header-h);
  padding: 18px 28px 12px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center; column-gap: 16px;
}
.rmc-logo{ grid-column: 1; justify-self: start; }
.rmc-logo img{ height: 44px; }

.rmc-burger{
  grid-column: 3; justify-self: end;
  display: none;
  background: transparent; border:0; color: var(--rmc-white);
  cursor: pointer; padding: 10px;
}

/* Nav desktop centrato */
.rmc-nav{ grid-column: 2; justify-self: center; }
.rmc-menu{
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: var(--rmc-gap);
}
.rmc-menu > li > a{
  color: var(--rmc-white); font-weight: 600;
  padding: 12px 6px; line-height: 1; display: inline-block;
}

/* Dropdown desktop (hover) */
.rmc-menu .menu-item-has-children{ position: relative; }
.rmc-menu .menu-item-has-children > a::after{
  content: 'expand_more';
  font-family: 'Material Icons Outlined';
  font-size: 18px; margin-left: 6px; vertical-align: middle;
}
.rmc-menu .sub-menu{
  position: absolute; left:0; top: calc(100% + 10px);
  min-width: 220px; padding: 10px 0; margin: 0; list-style: none;
  background: rgba(0,0,0,.88);
  border-radius: 12px; box-shadow: 0 10px 24px rgba(0,0,0,.25);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s step-end;
}
.rmc-menu .sub-menu a{
  display:block; padding:10px 14px; color:#fff; white-space:nowrap; font-weight:500;
}
.rmc-menu > li:hover > .sub-menu,
.rmc-menu > li:focus-within > .sub-menu{
  opacity:1; visibility:visible; transform: translateY(0);
  transition: opacity .2s ease, transform .2s ease, visibility .2s step-start;
}

/* ===========================
   HERO full-screen
=========================== */
.rmc-hero{
  position: relative;
  min-height: 100svh;
  display: grid; place-items: center;
  text-align: center; color: #fff; overflow: clip;
  padding-top: calc(var(--wp-adminbar-h) / 2);
}
.rmc-hero__bg{
  position: absolute; inset:0;
  background-image: url('https://romeminicab.it/wp-content/uploads/2025/10/Cover_upscale-1.webp ');
  background-size: cover; background-position: center; background-repeat: no-repeat;
  transform: translateZ(0);
}
.rmc-hero__overlay{ position:absolute; inset:0; background: linear-gradient(180deg, rgba(0,0,0,.40), rgba(0,0,0,.60)); }
.rmc-hero__content{
  position: relative; z-index:1; width: min(1100px, 92vw);
  padding-top: 7vh; padding-bottom: 7vh;
}
.rmc-hero__title{ font-size: clamp(24px, 4vw, 44px); margin: 0 0 16px; font-weight: 700; letter-spacing:.2px; color: #fff}
.rmc-hero__form{ background: rgba(0,0,0,.35); padding: 16px; border-radius: var(--rmc-radius); backdrop-filter: blur(4px); }
.rmc-hero__caption{ margin-top: 14px; font-size: clamp(14px, 2vw, 16px); opacity:.9; }

/* ===========================
   Footer
=========================== */
.rmc-footer{ padding: 32px 20px; background: var(--rmc-bg-dark); color:#eee; text-align:center; }
.rmc-footer__links{ display:flex; gap:16px; flex-wrap:wrap; justify-content:center; margin-bottom:8px; }
.rmc-footer a{ color:#eee; }

/* ===========================
   Mobile / Tablet
=========================== */
@media (max-width: 1024px){
  :root{ --rmc-header-h: 72px; }

  .rmc-burger{ display: inline-flex; }

  /* OFF-CANVAS: pannello ancorato a destra, nascosto di default */
  .rmc-nav{
    position: fixed;
    top: calc(var(--wp-adminbar-h) + var(--rmc-header-h));
    right: 0;
    left: auto;
    bottom: 0;
    width: min(88vw, 360px);
    max-width: 92vw;
    background: rgba(0,0,0,.94);
    z-index: 9999;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    padding: 18px 16px 28px;

    /* stato CHIUSO */
    transform: translateX(110%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform .3s ease, opacity .2s ease, visibility 0s linear .3s; /* visibile dopo l'animazione */
  }

  /* stato APERTO */
  .rmc-nav.is-open{
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: transform .3s ease, opacity .2s ease;
  }

  /* blocca lo scroll del body quando il menu è aperto */
  body.rmc-no-scroll{ overflow: hidden; }

  /* Lista voci */
  .rmc-menu{
    display: flex; flex-direction: column;
    gap: 0; margin: 0; padding: 0;
    list-style: none;
  }
  .rmc-menu > li{
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .rmc-menu > li > a{
    display: block;
    padding: 14px 48px 14px 8px;  /* spazio per caret a destra */
    font-size: 16px;
    color: #fff; font-weight: 600;
  }

  /* Su mobile rimuoviamo il caret ::after del link padre (usiamo solo il bottone JS) */
  .rmc-menu .menu-item-has-children > a::after{ display: none; }

  /* Bottone caret mobile (inserito via JS) */
  .rmc-subtoggle{
    position: absolute; right: 8px; top: 8px;
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    background: transparent;
    border: 1px solid rgba(255,255,255,.18);
    color: #fff; border-radius: 10px;
  }
  .rmc-subtoggle:focus{ outline: 2px solid rgba(255,255,255,.35); outline-offset: 2px; }

  /* Submenu collassabile */
  .rmc-menu .sub-menu{
    position: static;
    min-width: 0;
    margin: 0;
    padding: 6px 0 10px 12px;
    background: transparent;
    border-radius: 0;
    box-shadow: none;

    /* chiuso di default */
    display: none;
    opacity: 1; visibility: visible; transform: none;
  }
  .rmc-menu .sub-menu.is-open{ display: block; }

  /* Hero & dettagli (restano invariati) */
}


/* ===========================
   Phone piccoli
=========================== */
@media (max-width: 480px){
  :root{ --rmc-header-h: 64px; }
  .rmc-header__inner{ padding: 16px 20px 10px; }
  .rmc-logo img{ height: 38px; }
  .rmc-hero__content{ width: 92vw; padding-top: 8vh; padding-bottom: 8vh; }
  .rmc-hero__form{ padding: 12px; border-radius: 12px; }
}

/* Motion */
@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; }
}

/* =========================================================
   RMC BOOKING - COMPACT VEHICLE CARDS
   Custom CSS - 06/10/2026
   ========================================================= */
/* =========================================================
   RMC BOOKING - COMPACT VEHICLE CARDS
   ========================================================= */

/* DESKTOP */
.rmc-booking-form .rmc-vehicle-types-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.rmc-booking-form .rmc-vehicle-type-card {
    background: #fff;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Immagine più compatta e mai tagliata */
.rmc-booking-form .rmc-vehicle-type-image {
    width: 100%;
    height: 125px;
    object-fit: contain;
    object-position: center;
    background: #f7f7f7;
    padding: 8px;
    box-sizing: border-box;
}

/* Riduce lo spazio interno */
.rmc-booking-form .rmc-vehicle-type-content {
    padding: 14px;
}

/* Titolo + prezzo */
.rmc-booking-form .rmc-vehicle-type-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 7px;
}

.rmc-booking-form .rmc-vehicle-type-name {
    font-size: 17px;
    line-height: 1.2;
    margin: 0;
}

.rmc-booking-form .rmc-vehicle-type-price {
    font-size: 20px;
    line-height: 1.1;
    white-space: nowrap;
}

/* Passeggeri + bagagli */
.rmc-booking-form .rmc-vehicle-type-specs {
    gap: 12px;
    margin-bottom: 7px;
}

.rmc-booking-form .rmc-vehicle-type-spec {
    font-size: 13px;
}

/* Descrizione: massimo 2 righe */
.rmc-booking-form .rmc-vehicle-type-description {
    font-size: 13px;
    line-height: 1.35;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Pulsante molto meno ingombrante */
.rmc-booking-form .rmc-vehicle-type-select-btn {
    padding: 8px 10px;
    font-size: 13px;
}


/* TABLET */
@media (max-width: 900px) and (min-width: 701px) {

    .rmc-booking-form .rmc-vehicle-types-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* =========================================================
   MOBILE - CARD ORIZZONTALE TIPO RIDE BOOKING
   ========================================================= */

@media (max-width: 700px) {

    .rmc-booking-form .rmc-vehicle-types-grid {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 20px;
    }

    .rmc-booking-form .rmc-vehicle-type-card {
        display: grid;
        grid-template-columns: 110px minmax(0, 1fr);
        align-items: center;
        min-height: 105px;
        border-radius: 12px;
    }

    /* Auto piccola sulla sinistra */
    .rmc-booking-form .rmc-vehicle-type-image {
        width: 110px;
        height: 92px;
        padding: 6px;
        object-fit: contain;
        object-position: center;
        background: #f7f7f7;
    }

    .rmc-booking-form .rmc-vehicle-type-content {
        padding: 10px 12px 10px 5px;
        min-width: 0;
    }

    .rmc-booking-form .rmc-vehicle-type-header {
        margin-bottom: 4px;
        align-items: center;
    }

    .rmc-booking-form .rmc-vehicle-type-name {
        font-size: 15px;
        line-height: 1.15;
    }

    .rmc-booking-form .rmc-vehicle-type-price {
        font-size: 18px;
        font-weight: 700;
    }

    .rmc-booking-form .rmc-vehicle-type-specs {
        margin-bottom: 4px;
        gap: 10px;
    }

    .rmc-booking-form .rmc-vehicle-type-spec {
        font-size: 12px;
    }

    .rmc-booking-form .rmc-vehicle-type-description {
        font-size: 12px;
        line-height: 1.25;
        margin: 0;
        -webkit-line-clamp: 2;
    }

    /*
     * La card è già interamente cliccabile nel JS del plugin.
     * Nascondiamo quindi il grande pulsante Select su mobile.
     */
    .rmc-booking-form .rmc-vehicle-type-select-btn {
        display: none;
    }
}


/* Telefoni molto piccoli */
@media (max-width: 380px) {

    .rmc-booking-form .rmc-vehicle-type-card {
        grid-template-columns: 95px minmax(0, 1fr);
    }

    .rmc-booking-form .rmc-vehicle-type-image {
        width: 95px;
        height: 82px;
    }

    .rmc-booking-form .rmc-vehicle-type-name {
        font-size: 14px;
    }

    .rmc-booking-form .rmc-vehicle-type-price {
        font-size: 17px;
    }
}

/* RMC - rifinitura immagini veicoli mobile */
@media (max-width: 700px) {
    .rmc-booking-form .rmc-vehicle-type-image {
        transform: scale(1.12);
        transform-origin: center;
    }
}

@media (max-width: 700px) {
    .rmc-booking-form .rmc-vehicle-types-grid {
        width: 100%;
    }

    .rmc-booking-form .rmc-vehicle-type-card {
        width: 100%;
        max-width: none;
    }
}

/* =========================================================
   RMC BOOKING - COMPACT ROUTE INFO MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .rmc-booking-form .rmc-route-info {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: 0;
        padding: 9px 8px;
        margin: 8px 0 14px;
    }

    .rmc-booking-form .rmc-route-info-item {
        text-align: center;
        padding: 2px 8px;
        margin: 0;
    }

    .rmc-booking-form .rmc-route-info-item:first-child {
        border-right: 1px solid rgba(0, 0, 0, 0.08);
    }

    .rmc-booking-form .rmc-route-info-label {
        display: block;
        font-size: 9px;
        line-height: 1.1;
        margin: 0 0 3px;
        letter-spacing: 0.3px;
    }

    .rmc-booking-form .rmc-route-info-value {
        display: block;
        font-size: 17px;
        line-height: 1.1;
        font-weight: 700;
        margin: 0;
    }
}

/* =========================================================
   RMC BOOKING - VEHICLE SELECTED STATE
   ========================================================= */

.rmc-booking-form .rmc-vehicle-type-card.selected {
    border-color: rgba(220, 60, 80, 0.55);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}