
:root{
  --msgv-azure:#20B8E6;
  --msgv-blue:#005AA8;
  --msgv-deep:#003D73;
  --msgv-yellow:#F1E548;
  --msgv-ink:#243442;
  --msgv-muted:#687985;
  --msgv-paper:#F5FAFC;
  --msgv-border:rgba(0,61,115,.12);
  --msgv-shadow:0 14px 38px rgba(0,61,115,.10);
}
html{scroll-behavior:smooth}
body{text-rendering:optimizeLegibility}
a{transition:color .18s ease,opacity .18s ease,transform .18s ease}
a:hover{text-decoration:underline}
.wp-site-blocks{overflow:hidden}

.msgv-motto{
  background:var(--msgv-yellow);
  border-bottom:1px solid rgba(0,61,115,.10);
  font-weight:750;
  letter-spacing:.015em
}
.msgv-header{
  background:#fff;
  border-bottom:1px solid var(--msgv-border);
}
.msgv-header-inner{min-height:96px}
.msgv-brand-logo{display:flex;align-items:center}
.msgv-brand-logo img{display:block;object-fit:contain;max-height:74px;width:auto}
.msgv-brand-logo.local img{max-height:86px}
.msgv-header-title{text-align:center}
.msgv-header-title .wp-block-site-title{margin:0}
.msgv-header-title .wp-block-site-title a{color:var(--msgv-deep);text-decoration:none}
.msgv-header-kicker{margin:.15rem 0 0;color:var(--msgv-muted);font-size:.82rem;font-weight:650;letter-spacing:.035em;text-transform:uppercase}
.msgv-nav{border-top:1px solid var(--msgv-border)}
.msgv-nav .wp-block-navigation-item__content{color:var(--msgv-deep);font-weight:700}
.msgv-nav .wp-block-navigation-item__content:hover{color:var(--msgv-blue);text-decoration:none}

.msgv-home-hero{
  position:relative;
  min-height:580px;
  display:flex;
  align-items:center;
  background-image:
    linear-gradient(90deg,rgba(0,61,115,.94) 0%,rgba(0,90,168,.82) 45%,rgba(0,90,168,.22) 78%,rgba(0,90,168,.05) 100%),
    url('../images/hero-flotta.webp');
  background-size:cover;
  background-position:center;
}
.msgv-home-hero .wp-block-group{position:relative;z-index:2}
.msgv-home-hero h1{max-width:760px}
.msgv-home-hero p{max-width:700px}
.msgv-eyebrow{text-transform:uppercase;letter-spacing:.13em;font-size:.78rem;font-weight:850}
.msgv-hero-lead{font-size:clamp(1.08rem,2vw,1.35rem);line-height:1.55}
.msgv-home-hero .wp-block-button.is-style-outline .wp-block-button__link{
  color:#fff;border-color:rgba(255,255,255,.78);background:transparent
}
.msgv-home-hero .wp-block-button.is-style-outline .wp-block-button__link:hover{background:rgba(255,255,255,.10)}

.msgv-section{padding:clamp(3.2rem,7vw,6rem) 1.3rem}
.msgv-section-tight{padding:clamp(2.4rem,5vw,4rem) 1.3rem}
.msgv-section-title{max-width:760px;margin-bottom:2rem}
.msgv-section-title p{color:var(--msgv-muted)}
.msgv-paper{background:var(--msgv-paper)}
.msgv-blue-band{background:linear-gradient(135deg,var(--msgv-blue),var(--msgv-azure));color:#fff}
.msgv-blue-band h2,.msgv-blue-band h3,.msgv-blue-band p{color:#fff}

.msgv-card{
  height:100%;
  background:#fff;
  border:1px solid var(--msgv-border);
  border-radius:20px;
  box-shadow:var(--msgv-shadow);
  padding:1.55rem;
}
.msgv-card h3{margin-top:.7rem}
.msgv-card p:last-child{margin-bottom:0}
.msgv-icon{
  display:flex;align-items:center;justify-content:center;
  width:78px;height:78px;border-radius:22px;
  background:var(--msgv-yellow);
  border:1px solid rgba(0,90,168,.12);
  box-shadow:0 8px 18px rgba(0,90,168,.10)
}
.msgv-icon img{max-height:58px;max-width:58px;object-fit:contain}
.msgv-number{
  display:inline-flex;align-items:center;justify-content:center;
  width:42px;height:42px;border-radius:50%;
  background:var(--msgv-yellow);color:var(--msgv-deep);font-weight:850
}
.msgv-photo img{width:100%;height:auto;border-radius:24px;box-shadow:var(--msgv-shadow)}
.msgv-photo-flat img{width:100%;height:auto;border-radius:18px}
.msgv-logo-panel{
  display:flex;align-items:center;justify-content:center;
  min-height:250px;border-radius:24px;background:#fff;border:1px solid var(--msgv-border)
}
.msgv-logo-panel img{max-height:210px;max-width:80%;object-fit:contain}

.msgv-stat{
  border-left:5px solid var(--msgv-yellow);
  padding-left:1rem
}
.msgv-stat strong{display:block;color:var(--msgv-deep);font-size:1.35rem}

.msgv-callout{
  border-radius:26px;
  overflow:hidden;
  box-shadow:var(--msgv-shadow)
}
.msgv-callout-yellow{background:var(--msgv-yellow);color:var(--msgv-deep)}
.msgv-callout-yellow h2,.msgv-callout-yellow h3{color:var(--msgv-deep)}
.msgv-cf{
  display:inline-block;
  background:#fff;border:2px solid var(--msgv-deep);
  border-radius:14px;padding:.65rem 1rem;
  font-weight:900;letter-spacing:.05em;font-size:clamp(1.2rem,3vw,1.8rem)
}

.msgv-contact-card a{font-weight:750}
.msgv-contact-row{gap:1rem}
.msgv-contact-row .msgv-card{box-shadow:none}

.msgv-news-grid .wp-block-post{
  border:1px solid var(--msgv-border);
  border-radius:18px;
  overflow:hidden;
  background:#fff;
  box-shadow:0 8px 24px rgba(0,61,115,.07)
}
.msgv-news-grid .wp-block-post-featured-image{
  margin:0;aspect-ratio:16/9;overflow:hidden;background:#EDF5F8
}
.msgv-news-grid .wp-block-post-featured-image img{width:100%;height:100%;object-fit:cover}
.msgv-news-grid .wp-block-post-title,
.msgv-news-grid .wp-block-post-date,
.msgv-news-grid .wp-block-post-excerpt{padding-left:1.2rem;padding-right:1.2rem}
.msgv-news-grid .wp-block-post-title{margin-top:1.15rem}
.msgv-news-grid .wp-block-post-excerpt{padding-bottom:1.25rem}

.msgv-page-hero{
  background:linear-gradient(135deg,#EAF8FD 0%,#F9FCFD 72%);
  border-bottom:1px solid var(--msgv-border)
}
.msgv-page-content img{max-width:100%;height:auto}
.msgv-page-content table{width:100%;border-collapse:collapse}
.msgv-page-content td,.msgv-page-content th{border:1px solid var(--msgv-border);padding:.7rem}

.msgv-gallery figure{margin:0}
.msgv-gallery img{
  width:100%;height:310px;object-fit:cover;border-radius:18px
}
.msgv-gallery figcaption{color:var(--msgv-muted);font-size:.9rem}

.msgv-footer{
  background:var(--msgv-deep);color:#fff
}
.msgv-footer h2,.msgv-footer h3,.msgv-footer p,.msgv-footer li{color:#fff}
.msgv-footer a{color:#fff}
.msgv-footer a:hover{color:var(--msgv-yellow)}
.msgv-footer-logo img{max-height:105px;width:auto;object-fit:contain}
.msgv-footer-rule{opacity:.28}

.wp-block-button__link:hover{filter:brightness(.98);text-decoration:none}
.wp-block-post-title a{color:inherit;text-decoration:none}
.wp-block-post-title a:hover{color:var(--msgv-blue)}

@media(max-width:900px){
  .msgv-header-inner{min-height:auto}
  .msgv-brand-logo img{max-height:60px}
  .msgv-brand-logo.local img{max-height:68px}
  .msgv-home-hero{
    min-height:520px;
    background-image:
      linear-gradient(90deg,rgba(0,61,115,.94),rgba(0,90,168,.78)),
      url('../images/hero-flotta.webp');
  }
}
@media(max-width:781px){
  .msgv-header-title .wp-block-site-title{font-size:1.05rem!important}
  .msgv-header-kicker{display:none}
  .msgv-brand-logo img{max-height:50px}
  .msgv-brand-logo.local img{max-height:56px}
  .msgv-home-hero{min-height:500px}
  .msgv-gallery img{height:230px}
}


/* v4: maggiore contrasto visivo per i servizi */
.msgv-service-card{
  position:relative;
  overflow:hidden;
  border-top:5px solid var(--msgv-azure);
}
.msgv-service-card::after{
  content:"";
  position:absolute;
  width:92px;height:92px;
  border-radius:50%;
  right:-38px;top:-42px;
  background:rgba(32,184,230,.12);
}
.msgv-service-card h3{color:var(--msgv-blue)}

/* v4: blocco 5x1000 più compatto e leggibile */
.msgv-five-wrap{background:var(--msgv-paper)}
.msgv-five-card{
  position:relative;
  overflow:hidden;
  border-radius:26px;
  background:linear-gradient(135deg,#F7EC4A 0%,#F1E548 68%,#E8D936 100%);
  box-shadow:var(--msgv-shadow);
}
.msgv-five-card::before{
  content:"5×1000";
  position:absolute;
  right:-30px;bottom:-54px;
  font-size:clamp(5rem,14vw,12rem);
  font-weight:900;
  line-height:1;
  color:rgba(0,61,115,.055);
  pointer-events:none;
}
.msgv-five-copy{position:relative;z-index:2}
.msgv-five-side{
  position:relative;z-index:2;
  background:rgba(255,255,255,.94);
  border:1px solid rgba(0,61,115,.12);
  border-radius:20px;
  padding:1.5rem;
  box-shadow:0 10px 28px rgba(0,61,115,.08);
}
.msgv-five-side .msgv-cf{
  display:block;
  width:max-content;
  max-width:100%;
  margin:.55rem 0 1rem;
}
.msgv-five-side p{margin:.35rem 0}
.msgv-five-side .wp-block-buttons{margin-top:1rem}

/* contatti e orari */
.msgv-hours{
  display:inline-flex;
  align-items:center;
  gap:.55rem;
  padding:.55rem .8rem;
  border-radius:999px;
  background:#EAF8FD;
  color:var(--msgv-deep);
  font-weight:750
}

@media(max-width:781px){
  .msgv-five-card{padding:1.4rem!important}
  .msgv-five-side{margin-top:1rem}
}
