/* ---------- RESET / BASE ---------- */
:root{
  --pvt-bg: #f6f7fb;
  --pvt-text: #111111;
  --pvt-muted: #374151;
  --pvt-soft: #6b7280;

  --pvt-card: #ffffff;
  --pvt-border: rgba(17,17,17,.10);
  --pvt-shadow: 0 14px 35px rgba(0,0,0,.10);

  --pvt-green: #16a34a;
  --pvt-green-2: #15803d;
  --pvt-blue: #0ea5e9;
  --pvt-dark: #0b1220;

  --pvt-radius: 18px;
  --pvt-radius-sm: 12px;
}

html, body{
  height:100%;
}

body{
  background: var(--pvt-bg);
  color: var(--pvt-text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a{
  color: inherit;
  text-decoration: none;
}

a:hover{
  text-decoration: none;
}

img{
  max-width:100%;
  height:auto;
  display:block;
}

/* utility */
.pvt-small{
  font-size: 0.98rem;
  color: var(--pvt-muted);
}

.pvt-divider{
  height: 1px;
  width: 100%;
  background: rgba(17,17,17,.10);
}

.pvt-list{
  list-style: none;
  padding-left: 0;
}

.pvt-list li{
  margin: 10px 0;
  color: #1f2937;
}

.pvt-list li i{
  margin-right: 8px;
}

/* ---------- HERO ---------- */
.pvt-hero{
  position: relative;
  background:
    radial-gradient(1200px 600px at 10% 0%, rgba(14,165,233,.20), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(22,163,74,.18), transparent 55%),
    linear-gradient(180deg, #0b1220 0%, #111827 60%, #0b1220 100%);
  color: #fff;
  overflow: hidden;
}

.pvt-hero .container{
  position: relative;
  z-index: 2;
}

.pvt-hero::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(700px 260px at 50% 0%, rgba(255,255,255,.10), transparent 60%);
  pointer-events:none;
}

.pvt-badge{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  color:#fff;
  font-weight: 600;
  font-size: .95rem;
}

.pvt-title{
  color:#fff;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.pvt-title .highlight{
  color: #d1fae5;
  font-weight: 800;
}

.pvt-sub{
  color: rgba(255,255,255,.85);
  font-size: 1.06rem;
}

.pill{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.16);
  color: rgba(255,255,255,.92);
  font-weight: 600;
  font-size: .92rem;
}

/* hero media */
.pvt-hero-media{
  border-radius: var(--pvt-radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  box-shadow: 0 18px 40px rgba(0,0,0,.25);
}

.pvt-media-caption{
  padding: 12px 14px;
  font-size: .95rem;
  color: rgba(255,255,255,.85);
  border-top: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
}

/* ---------- CARDS ---------- */
.pvt-card{
  background: var(--pvt-card);
  border: 1px solid var(--pvt-border);
  border-radius: var(--pvt-radius);
  box-shadow: var(--pvt-shadow);
}

.pvt-card .pvt-section-title{
  color: #111111;
}

.pvt-section-title{
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #111111;
}

.pvt-card p,
.pvt-card .pvt-small,
.pvt-card .pvt-list li{
  color: #1f2937;
}

/* icone box */
.pvt-icon{
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(22,163,74,.10);
  border: 1px solid rgba(22,163,74,.22);
  color: var(--pvt-green);
  font-size: 22px;
}

/* ---------- BUTTONS ---------- */
.pvt-btn{
  font-weight: 800;
  border-radius: 14px;
  padding: 12px 18px;
  box-shadow: 0 12px 24px rgba(22,163,74,.18);
}

.btn-success.pvt-btn{
  background: var(--pvt-green);
  border-color: var(--pvt-green);
}

.btn-success.pvt-btn:hover{
  background: var(--pvt-green-2);
  border-color: var(--pvt-green-2);
  transform: translateY(-1px);
}

.pvt-outline{
  border-radius: 14px;
  padding: 12px 18px;
  font-weight: 800;
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255,255,255,.65);
}

.pvt-outline:hover{
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.85);
}

/* su sezioni chiare: outline scuro */
section .pvt-outline{
  color: #111111;
  border-color: #111111;
}
section .pvt-outline:hover{
  background: #111111;
  color:#fff;
}

/* ---------- SECTIONS ---------- */
section{
  scroll-margin-top: 90px;
}

section.py-5{
  padding-top: 56px !important;
  padding-bottom: 56px !important;
}

@media (max-width: 576px){
  section.py-5{
    padding-top: 42px !important;
    padding-bottom: 42px !important;
  }
}

/* ---------- VIDEO CARDS ---------- */
.ratio{
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(17,17,17,.10);
}

/* ---------- FORM ---------- */
.pvt-form-wrap{
  position: relative;
}

.form-label{
  font-weight: 800;
  color: #111111;
  margin-bottom: 6px;
}

.form-control,
.form-select{
  border-radius: 14px;
  border: 1px solid rgba(17,17,17,.14);
  padding: 12px 14px;
  color: #111111;
  background: #ffffff;
}

.form-control:focus,
.form-select:focus{
  border-color: rgba(14,165,233,.70);
  box-shadow: 0 0 0 4px rgba(14,165,233,.18);
}

.form-control::placeholder{
  color: #6b7280;
}

/* privacy inline */
.pvt-privacy-inline{
  display:flex;
  gap: 10px;
  align-items:flex-start;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(17,17,17,.03);
  border: 1px solid rgba(17,17,17,.08);
}

.pvt-privacy-inline input[type="checkbox"]{
  margin-top: 3px;
  width: 18px;
  height: 18px;
}

.pvt-privacy-inline label{
  font-size: .95rem;
  color: #1f2937;
}

.pvt-privacy-inline a{
  color: var(--pvt-blue);
  font-weight: 700;
}

.pvt-privacy-inline a:hover{
  text-decoration: underline;
}

/* ---------- OVERLAY LOADING ---------- */
.pvt-form-overlay{
  display:none;
  position:absolute;
  inset:0;
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(2px);
  border-radius: var(--pvt-radius);
  z-index: 50;
  align-items:center;
  justify-content:center;
  padding: 18px;
}

.pvt-overlay-box{
  width: min(420px, 92%);
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(17,17,17,.10);
  box-shadow: 0 18px 40px rgba(0,0,0,.12);
  padding: 20px 18px;
  text-align:center;
}

.pvt-spinner{
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 5px solid rgba(17,17,17,.12);
  border-top-color: var(--pvt-green);
  margin: 0 auto 12px;
  animation: pvtspin 1s linear infinite;
}

@keyframes pvtspin{
  to{ transform: rotate(360deg); }
}

.pvt-overlay-text{
  font-weight: 900;
  color: #111111;
  font-size: 1.05rem;
}

.pvt-overlay-sub{
  color: #374151;
  margin-top: 4px;
}

/* ---------- STICKY CTA (MOBILE) ---------- */
.sticky-cta{
  position: fixed;
  left:0;
  right:0;
  bottom:0;
  padding: 10px 0;
  background: rgba(255,255,255,.92);
  border-top: 1px solid rgba(17,17,17,.10);
  box-shadow: 0 -10px 30px rgba(0,0,0,.12);
  z-index: 999;
}

.sticky-cta .btn{
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 900;
}

@media (min-width: 992px){
  .sticky-cta{ display:none; }
}

/* ---------- SWEETALERT COMPAT ---------- */
.swal2-popup{
  border-radius: 18px !important;
}

/* ---------- MICRO TWEAKS ---------- */
.display-5{
  line-height: 1.08;
}

@media (max-width: 576px){
  .display-5{
    font-size: 2.1rem;
  }
  .pvt-sub{
    font-size: 1.02rem;
  }
}

/* jQuery Validate + Bootstrap look */
.pvt-field-error{
  display:block;
  margin-top:6px;
  font-size:.92rem;
  font-weight:700;
  color:#dc3545;
}
.is-invalid{
  border-color:#dc3545 !important;
}
.is-valid{
  border-color:#198754 !important;
}

/* FIX: Bootstrap + .is-invalid/.is-valid su <select> che tilano le icone */
.form-select.is-invalid,
.form-select.is-valid{
  background-repeat: no-repeat !important;
  background-size: 16px 12px, 1rem 1rem !important;
  background-position: right .75rem center, right 2.25rem center !important;
  padding-right: 3.5rem !important;
}

.pvt-hero-media img{
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}