/*
Theme Name: Filomarino CarWorld v1.2
Theme URI: https://filomarino.it/
Author: OpenAI
Description: Tema WordPress personalizzato per Filomarino CarWorld, con header completo, hero, servizi, contatti e Google Maps.
Version: 1.2.0
Text Domain: filomarino-carworld
*/

:root{
  --fm-blue:#0a4db3;
  --fm-blue-dark:#052d73;
  --fm-blue-deep:#031d4f;
  --fm-cyan:#2db4ff;
  --fm-light:#f6f9fe;
  --fm-text:#10233d;
  --fm-muted:#617087;
  --fm-white:#fff;
  --fm-border:#dbe7f4;
  --fm-shadow:0 15px 40px rgba(2,45,115,.12);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Arial,Helvetica,sans-serif;
  color:var(--fm-text);
  background:#fff;
}
a{text-decoration:none;color:inherit}
img{max-width:100%;height:auto}
.fm-container{width:min(1220px,calc(100% - 40px));margin-inline:auto}

.fm-topbar{
  background:linear-gradient(90deg,var(--fm-blue-dark),var(--fm-blue-deep));
  color:#fff;
  font-size:14px;
}
.fm-topbar-inner{
  min-height:38px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
}
.fm-topbar-left,.fm-topbar-right{
  display:flex;
  align-items:center;
  gap:22px;
  flex-wrap:wrap;
}
.fm-topbar a:hover{opacity:.82}

.fm-header{
  background:#fff;
  border-bottom:1px solid var(--fm-border);
  position:sticky;
  top:0;
  z-index:100;
}
.admin-bar .fm-header{top:32px}
.fm-header-inner{
  min-height:106px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:34px;
}
.fm-brand small{
  display:block;
  font-weight:800;
  font-size:14px;
  color:#111;
  letter-spacing:.2px;
}
.fm-brand strong{
  display:block;
  color:var(--fm-blue-dark);
  font-size:48px;
  line-height:.9;
  letter-spacing:-2px;
}
.fm-nav-wrap{
  display:flex;
  align-items:center;
  gap:28px;
}
.fm-nav .menu{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  align-items:center;
  gap:28px;
}
.fm-nav a{
  text-transform:uppercase;
  font-size:14px;
  font-weight:800;
}
.fm-nav a:hover,.fm-nav .current-menu-item>a{color:var(--fm-blue)}
.fm-call-btn{
  min-height:48px;
  padding:0 24px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:5px;
  background:var(--fm-blue);
  color:#fff;
  font-weight:800;
  text-transform:uppercase;
}
.fm-menu-toggle{
  display:none;
  border:0;
  background:transparent;
  font-size:28px;
  cursor:pointer;
}

.fm-hero{
  color:#fff;
  position:relative;
  overflow:hidden;
  background:
    linear-gradient(90deg,rgba(4,36,91,.97) 0%,rgba(4,49,122,.92) 54%,rgba(3,28,74,.82) 100%),
    url('assets/img/hero-car.svg') right center/auto 100% no-repeat,
    url('assets/img/network-bg.svg') center/cover no-repeat;
}
.fm-hero::after{
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(circle at 15% 20%,rgba(45,180,255,.22),transparent 32%);
  pointer-events:none;
}
.fm-hero-grid{
  min-height:540px;
  display:grid;
  grid-template-columns:.95fr 1.05fr;
  align-items:center;
  gap:70px;
  padding:55px 0;
  position:relative;
  z-index:2;
}
.fm-hero-copy h1{
  margin:0;
  font-size:clamp(48px,5vw,72px);
  line-height:.98;
  letter-spacing:-1.5px;
  color:#fff;
  font-weight:900;
}
.fm-hero-line{
  width:88px;
  height:4px;
  background:var(--fm-cyan);
  margin:20px 0 18px;
}
.fm-hero-copy p{
  margin:0 0 28px;
  max-width:590px;
  font-size:19px;
  line-height:1.55;
}
.fm-actions{display:flex;gap:14px;flex-wrap:wrap}
.fm-btn{
  min-height:50px;
  padding:0 24px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:5px;
  text-transform:uppercase;
  font-weight:800;
  transition:.2s ease;
}
.fm-btn:hover{transform:translateY(-2px)}
.fm-btn-primary{background:var(--fm-blue);color:#fff}
.fm-btn-light{background:#fff;color:var(--fm-blue-dark)}
.fm-btn-outline{border:2px solid rgba(255,255,255,.85);color:#fff}
.fm-btn-outline-blue{border:2px solid var(--fm-blue);color:var(--fm-blue)}

.fm-hero-services{
  padding-left:46px;
  border-left:1px solid rgba(255,255,255,.4);
  display:grid;
  gap:12px;
}
.fm-service-row{
  display:grid;
  grid-template-columns:34px 1fr;
  gap:12px;
  align-items:center;
  font-weight:800;
  text-transform:uppercase;
  font-size:16px;
}
.fm-service-row img{width:26px;height:26px}

.fm-services{
  padding:34px 0 42px;
  background:#fff;
}
.fm-section-title{
  margin:0 0 28px;
  text-align:center;
  color:var(--fm-blue-dark);
  font-size:34px;
  text-transform:uppercase;
  font-weight:900;
}
.fm-section-title::after{
  content:"";
  display:block;
  width:84px;
  height:4px;
  background:var(--fm-cyan);
  margin:12px auto 0;
}
.fm-services-grid{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:12px;
}
.fm-card{
  background:#fff;
  border:1px solid var(--fm-border);
  border-radius:10px;
  padding:24px 16px;
  text-align:center;
  box-shadow:var(--fm-shadow);
  min-height:170px;
  transition:.25s;
}
.fm-card:hover{transform:translateY(-5px)}
.fm-card img{width:46px;height:46px;margin-bottom:14px}
.fm-card h3{
  margin:0 0 10px;
  color:var(--fm-blue-dark);
  font-size:15px;
  text-transform:uppercase;
}
.fm-card p{
  margin:0;
  color:var(--fm-muted);
  font-size:14px;
  line-height:1.5;
}

.fm-contact{
  padding:28px 0 42px;
  background:var(--fm-light);
  border-top:1px solid var(--fm-border);
}
.fm-contact-grid{
  display:grid;
  grid-template-columns:300px 1fr;
  gap:28px;
  align-items:stretch;
}
.fm-contact-panel{
  padding:10px 0;
}
.fm-contact-panel h2{
  margin:0 0 8px;
  color:var(--fm-blue-dark);
  font-size:34px;
  text-transform:uppercase;
}
.fm-contact-panel h2::after{
  content:"";
  display:block;
  width:55px;
  height:4px;
  margin-top:10px;
  background:var(--fm-cyan);
}
.fm-contact-item{
  display:grid;
  grid-template-columns:38px 1fr;
  gap:10px;
  align-items:start;
  margin:18px 0;
}
.fm-contact-icon{
  width:34px;
  height:34px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:var(--fm-blue-dark);
  color:#fff;
  font-size:17px;
}
.fm-contact-item strong,.fm-contact-item a,.fm-contact-item span{
  font-size:16px;
  line-height:1.45;
}
.fm-map{
  min-height:430px;
  overflow:hidden;
  border-radius:10px;
  box-shadow:var(--fm-shadow);
  border:1px solid var(--fm-border);
  background:#dfe9f5;
}
.fm-map iframe{
  width:100%;
  height:100%;
  min-height:430px;
  border:0;
  display:block;
}

.fm-footer{
  background:var(--fm-blue-deep);
  color:#dbe8ff;
  padding:22px 0;
  font-size:13px;
}
.fm-footer-inner{
  display:flex;
  justify-content:space-between;
  gap:20px;
  flex-wrap:wrap;
}

@media(max-width:1050px){
  .fm-services-grid{grid-template-columns:repeat(3,1fr)}
  .fm-hero-grid{grid-template-columns:1fr;gap:35px}
  .fm-hero-services{padding-left:0;border-left:0}
  .fm-nav-wrap{
    display:none;
    position:absolute;
    top:100%;
    left:0;right:0;
    background:#fff;
    padding:20px;
    box-shadow:0 15px 30px rgba(0,0,0,.12);
  }
  .fm-nav-wrap.open{display:block}
  .fm-nav .menu{flex-direction:column;align-items:flex-start}
  .fm-call-btn{margin-top:18px}
  .fm-menu-toggle{display:block}
}
@media(max-width:760px){
  .fm-topbar-inner,.fm-topbar-left{align-items:flex-start;flex-direction:column}
  .fm-topbar-inner{padding:8px 0}
  .fm-topbar-right{display:none}
  .fm-brand strong{font-size:34px}
  .fm-brand small{font-size:11px}
  .fm-header-inner{min-height:82px}
  .fm-services-grid{grid-template-columns:repeat(2,1fr)}
  .fm-contact-grid{grid-template-columns:1fr}
}
@media(max-width:520px){
  .fm-container{width:min(100% - 26px,1220px)}
  .fm-hero-grid{min-height:auto;padding:45px 0}
  .fm-hero-copy h1{font-size:42px}
  .fm-services-grid{grid-template-columns:1fr}
}
