/* assets/css/theme.css */
/* Truck Rental - clean theme */

:root{
  --bg: #f6f8fc;
  --surface: #ffffff;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --brand: #313a97;
  --brand-dark: #232c76;
  --brand-soft: #eef1ff;
  --accent: #4f5fd1;
  --line: #e5eaf3;
  --footer: #232c76;
  --shadow: 0 10px 30px rgba(35, 44, 118, 0.08);
  --radius: 18px;
}

html,
body{
  height: 100%;
  overflow-x: hidden;
}

body{
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  padding-top: 92px;
}

/* NAVBAR */
.navbar{
  min-height: 100px;
  border: 0;
  background: rgba(255,255,255,.97);
  box-shadow: 0 6px 24px rgba(35, 44, 118, 0.05);
  border-bottom: 1px solid rgba(49,58,151,.08);
}

.navbar .navbar-brand{
  padding: 10px 15px;
  height: auto;
  display: flex;
  align-items: center;
}

.navbar .navbar-brand img{
  display: block;
  width: auto;
  height: 100px;
}

.navbar-default .navbar-nav > li > a{
  color: var(--brand-dark);
  font-weight: 800;
  letter-spacing: .2px;
  padding: 16px 14px;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

body {
    padding-top: 140px; /* aumenta in base all'altezza della navbar */
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus,
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus{
  color: var(--accent);
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

.navbar-default .navbar-nav > li > a::before,
.navbar-default .navbar-nav > li > a::after{
  display: none !important;
  content: none !important;
}

.navbar-default .navbar-toggle{
  border-color: rgba(49,58,151,.20);
  margin-top: 18px;
  margin-bottom: 18px;
}

.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus{
  background: transparent;
}

.navbar-default .navbar-toggle .icon-bar{
  background: var(--brand);
}

/* stop eventuali effetti del template */
.navbar,
.navbar .navbar-brand,
.navbar .navbar-brand img{
  opacity: 1 !important;
  visibility: visible !important;
}

.navbar.top-nav-collapse,
.navbar.affix,
.navbar.shrink{
  background: rgba(255,255,255,.98) !important;
}

/* LAYOUT */
.page{
  padding-top: 16px;
  padding-bottom: 44px;
}

.container-narrow{
  max-width: 980px;
}

/* HERO */
.hero{
  background:
    radial-gradient(1100px 420px at 20% 20%, rgba(90,103,216,.08), transparent 60%),
    radial-gradient(850px 420px at 80% 30%, rgba(49,58,151,.07), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f6f8fc 100%);
  color: var(--text);
  border-bottom: 1px solid rgba(49,58,151,.06);
  padding: 48px 0 34px;
}

.hero h1{
  font-size: 48px;
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -1px;
  margin: 12px 0 16px;
  color: var(--brand-dark);
}

.hero p{
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
  margin-bottom: 22px;
}

.badge-lite,
.hero .badge-lite{
  display: inline-block;
  padding: 9px 14px;
  border: 1px solid rgba(49,58,151,.08);
  border-radius: 999px;
  color: var(--brand);
  font-weight: 800;
  background: var(--brand-soft);
  box-shadow: none;
}

.hero-card{
  background: rgba(255,255,255,.98);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin-top: 18px;
  box-shadow: var(--shadow);
}

.hero-card img{
  border-radius: 12px;
}

/* BUTTONS */
.btn{
  border-radius: 12px;
  font-weight: 800;
  padding: 11px 16px;
  transition: none;
  box-shadow: none !important;
  outline: none !important;
}

.btn:focus,
.btn:active{
  outline: none !important;
  box-shadow: none !important;
}

.btn-brand{
  background: linear-gradient(135deg, var(--brand), var(--accent));
  border: 0;
  color: #ffffff;
}

.btn-brand:hover,
.btn-brand:focus{
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #ffffff;
  transform: none;
}

.btn-ghost{
  background: #ffffff;
  border: 1px solid rgba(49,58,151,.16);
  color: var(--brand);
  font-weight: 800;
}

.btn-ghost:hover,
.btn-ghost:focus{
  color: var(--brand);
  border-color: rgba(49,58,151,.16);
  background: #ffffff;
}

.btn-numero-unico{
  background: linear-gradient(135deg, #3d7bff, #275fd3);
  color: #ffffff;
  font-weight: 800;
  border-radius: 12px;
  padding: 11px 16px;
  border: 0;
}

.btn-numero-unico:hover,
.btn-numero-unico:focus{
  background: linear-gradient(135deg, #3d7bff, #275fd3);
  color: #ffffff;
}

.btn-wa{
  background: #25D366;
  color: #ffffff;
  font-weight: 800;
  border-radius: 12px;
  padding: 11px 16px;
  border: 0;
}

.btn-wa:hover,
.btn-wa:focus{
  background: #25D366;
  color: #ffffff;
}

/* SECTION */
.section{
  padding: 34px 0;
}

.section-title{
  font-size: 34px;
  font-weight: 900;
  color: var(--brand-dark);
  margin: 0 0 10px;
  text-align: center;
  letter-spacing: -.5px;
}

.section-sub{
  color: var(--muted);
  margin-bottom: 30px;
  text-align: center;
  font-size: 17px;
}

/* CARD */
.card{
  background: var(--card);
  border: 1px solid rgba(16,24,40,.06);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 8px 24px rgba(16,24,40,.04);
  height: 100%;
  transition: none;
}

.card:hover{
  transform: none;
  box-shadow: 0 8px 24px rgba(16,24,40,.04);
}

.card h3{
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 900;
  color: var(--brand-dark);
}

.card p{
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.icon-bubble{
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand-soft) 0%, #dde4ff 100%);
  color: var(--brand);
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 14px;
  box-shadow: none;
}

/* TABLE */
.table-wrap{
  background: #fff;
  border: 1px solid rgba(16,24,40,.08);
  border-radius: var(--radius);
  padding: 10px;
  box-shadow: 0 8px 24px rgba(16,24,40,.04);
}

.table > thead > tr > th{
  border-bottom: 1px solid rgba(16,24,40,.10);
  font-weight: 900;
  color: var(--brand-dark);
}

.table > tbody > tr > td{
  border-top: 1px solid rgba(16,24,40,.08);
  vertical-align: middle;
}

.price{
  font-weight: 900;
  color: var(--brand-dark);
}

/* FORMS */
.form-control{
  border-radius: 12px;
  border: 1px solid #d7dee8;
  box-shadow: none;
  min-height: 44px;
}

.form-control:focus{
  border-color: var(--accent);
  box-shadow: none;
}

textarea.form-control{
  min-height: 120px;
}

/* CONTACT LIST */
.uffici-list{
  margin: 0;
  padding-left: 0;
  list-style: none;
  color: rgba(16,24,40,.78);
}

.uffici-list li{
  margin-bottom: 12px;
  line-height: 1.6;
}

.uffici-list a{
  color: var(--brand);
  text-decoration: none;
  font-weight: 700;
}

.uffici-list a:hover{
  color: var(--accent);
  text-decoration: underline;
}

.ufficio-mail{
  display: inline;
}

/* FOOTER */
.site-footer{
  background: var(--footer);
  color: rgba(233,238,251,.86);
  padding: 20px 0;
  border-top: 1px solid rgba(233,238,251,.08);
  margin-top: 34px;
}

.site-footer a{
  color: rgba(255,255,255,.96);
  text-decoration: none;
  font-weight: 700;
}

.site-footer a:hover{
  color: #cfd6ff;
}

/* utility: elimina eventuali focus box del template */
a,
a:hover,
a:focus,
a:active{
  outline: none;
}

button,
button:hover,
button:focus,
button:active{
  outline: none;
}

/* RESPONSIVE */
@media (max-width: 991px){
  .hero h1{
    font-size: 38px;
  }

  .navbar .navbar-brand img{
    max-height: 56px;
    max-width: 230px;
  }
}

@media (max-width: 767px){
   .navbar{
    min-height: 90px;
  }

  .navbar .navbar-brand img{
    max-height: 60px;   /* 🔥 molto più visibile */
    max-width: 240px;
  }

  body{
    padding-top: 104px;
  }

  .navbar .navbar-brand{
    padding: 12px 15px;
  }

  .page{
    padding-top: 14px;
  }

  .hero{
    padding: 34px 0 24px;
    text-align: center;
  }

  .hero h1{
    font-size: 30px;
  }

  .hero p{
    font-size: 16px;
  }

  .navbar-default .navbar-nav > li > a{
    padding: 12px 14px;
  }

  .section-title{
    font-size: 28px;
  }

  .ufficio-mail{
    display: block;
    margin-left: 22px;
  }

  .site-footer .text-right{
    text-align: left !important;
    margin-top: 8px;
  }
}