/* ============================================
   Servimpresa 2026 SRL - Style
   ============================================ */
:root {
  --blu: #1a4fa0;
  --blu-accent: #2563eb;
  --blu-dark: #143d7d;
  --grigio: #3d3d3d;
  --grigio-2: #555555;
  --grigio-light: #6b7280;
  --bianco: #ffffff;
  --bg-light: #f5f7fa;
  --border: #e2e8f0;
  --whatsapp: #25d366;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
  --radius: 12px;
  --max: 1200px;
  --header-h: 78px;
  --ff: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--ff);
  color: var(--grigio);
  line-height: 1.65;
  background: var(--bianco);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blu); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blu-accent); }
ul { list-style: none; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 56px 0; }
.bg-light { background: var(--bg-light); }
.bg-blu { background: var(--blu); color: #fff; }
.text-center { text-align: center; }

h1,h2,h3,h4 { color: var(--grigio); line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin-bottom: 1rem; color: var(--grigio-2); }
.lead { font-size: 1.15rem; color: var(--grigio-2); }

.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head .eyebrow { color: var(--blu-accent); font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; font-size: .8rem; display: block; margin-bottom: 12px; }
.section-head p { font-size: 1.1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 8px; font-weight: 600;
  font-size: 1rem; cursor: pointer; border: 2px solid transparent;
  transition: all .25s; text-align: center;
}
.btn-primary { background: var(--blu); color: #fff; }
.btn-primary:hover { background: var(--blu-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-accent { background: var(--blu-accent); color: #fff; }
.btn-accent:hover { background: var(--blu-dark); color:#fff; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--blu); border-color: var(--blu); }
.btn-outline:hover { background: var(--blu); color: #fff; }
.btn-white { background: #fff; color: var(--blu); }
.btn-white:hover { background: var(--bg-light); color: var(--blu-dark); transform: translateY(-2px); }
.btn-lg { padding: 16px 36px; font-size: 1.08rem; }

/* ============ HEADER ============ */
.site-header {
  position: sticky; top: 0; z-index: 1000; background: #fff;
  transition: box-shadow .3s; border-bottom: 1px solid transparent;
}
.site-header.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,0.08); border-bottom-color: var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo img { height: 46px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > ul { display: flex; align-items: center; gap: 4px; }
.main-nav a { color: var(--grigio); font-weight: 500; padding: 10px 14px; border-radius: 6px; font-size: .97rem; }
.main-nav a:hover, .main-nav a.active { color: var(--blu); background: var(--bg-light); }
.header-cta { display: flex; align-items: center; gap: 14px; }

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 250px; background: #fff;
  box-shadow: var(--shadow-lg); border-radius: 10px; padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all .22s; border: 1px solid var(--border);
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 10px 14px; font-size: .93rem; border-radius: 6px; }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 26px; height: 3px; background: var(--grigio); margin: 5px 0; border-radius: 2px; transition: .3s; }
.menu-toggle.open span:nth-child(1){ transform: translateY(8px) rotate(45deg); }
.menu-toggle.open span:nth-child(2){ opacity: 0; }
.menu-toggle.open span:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
  background: linear-gradient(135deg, var(--blu) 0%, var(--blu-dark) 55%, var(--grigio) 130%);
  color: #fff; padding: 90px 0; position: relative; overflow: hidden;
}
.hero::after {
  content:''; position:absolute; right:-100px; top:-100px; width:420px; height:420px;
  background: radial-gradient(circle, rgba(37,99,235,.35), transparent 70%); border-radius:50%;
}
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero p { color: rgba(255,255,255,.9); font-size: 1.2rem; max-width: 620px; margin-bottom: 32px; }
.hero .btn-group { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-inner { position: relative; z-index: 2; max-width: 760px; }

/* Page hero (interior) */
.page-hero {
  background: linear-gradient(135deg, var(--blu) 0%, var(--blu-dark) 100%);
  color: #fff; padding: 60px 0;
}
.page-hero h1 { color: #fff; margin-bottom: 8px; }
.page-hero p { color: rgba(255,255,255,.9); max-width: 640px; margin: 0; }
.breadcrumb { font-size: .9rem; margin-bottom: 16px; color: rgba(255,255,255,.75); }
.breadcrumb a { color: rgba(255,255,255,.9); }
.breadcrumb a:hover { color: #fff; }

/* ============ CARDS / GRID ============ */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2,1fr); }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-4 { grid-template-columns: repeat(4,1fr); }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 28px; transition: all .28s; height: 100%;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card .icon {
  width: 56px; height: 56px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--blu), var(--blu-accent)); color: #fff; margin-bottom: 20px;
}
.card .icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: .96rem; margin-bottom: 16px; }
.card .card-link { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.card .card-link:hover { gap: 10px; }

/* Feature list */
.feature { display: flex; gap: 18px; }
.feature .fnum, .feature .ficon {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 10px; display:flex; align-items:center; justify-content:center;
  background: var(--bg-light); color: var(--blu); font-weight: 700; font-size: 1.2rem;
}
.feature .ficon { background: linear-gradient(135deg,var(--blu),var(--blu-accent)); color:#fff; }
.feature h3 { font-size: 1.1rem; margin-bottom: 6px; }
.feature p { font-size: .95rem; margin: 0; }

/* Check list */
.check-list li { position: relative; padding-left: 34px; margin-bottom: 14px; color: var(--grigio-2); }
.check-list li::before {
  content:''; position:absolute; left:0; top:3px; width:22px; height:22px; border-radius:50%;
  background: var(--blu) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* Steps */
.steps { counter-reset: step; }
.step { display:flex; gap:20px; margin-bottom: 28px; }
.step .step-num {
  flex-shrink:0; width:44px; height:44px; border-radius:50%; background:var(--blu); color:#fff;
  display:flex; align-items:center; justify-content:center; font-weight:700; font-size:1.1rem;
}
.step h4 { margin-bottom: 4px; }
.step p { margin: 0; font-size: .96rem; }

.info-box { background: var(--bg-light); border-left: 4px solid var(--blu); padding: 20px 24px; border-radius: 8px; }
.info-box strong { color: var(--grigio); }

/* Two column layout */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.two-col.narrow { gap: 40px; }

/* ============ FAQ ACCORDION ============ */
.accordion-item { background:#fff; border:1px solid var(--border); border-radius:10px; margin-bottom:14px; overflow:hidden; }
.accordion-header {
  width:100%; text-align:left; background:none; border:none; cursor:pointer;
  padding: 20px 24px; font-size:1.05rem; font-weight:600; color:var(--grigio);
  display:flex; justify-content:space-between; align-items:center; gap:16px; font-family:var(--ff);
}
.accordion-header:hover { color: var(--blu); }
.accordion-header .plus { flex-shrink:0; width:24px; height:24px; position:relative; transition:.3s; }
.accordion-header .plus::before, .accordion-header .plus::after {
  content:''; position:absolute; background:var(--blu); border-radius:2px;
}
.accordion-header .plus::before { width:16px; height:3px; top:11px; left:4px; }
.accordion-header .plus::after { width:3px; height:16px; top:4px; left:11px; transition:.3s; }
.accordion-item.active .plus::after { transform: rotate(90deg); opacity:0; }
.accordion-body { max-height:0; overflow:hidden; transition:max-height .35s ease; }
.accordion-body-inner { padding: 0 24px 22px; color: var(--grigio-2); }

/* ============ FORMS ============ */
.form-card { background:#fff; border:1px solid var(--border); border-radius:var(--radius); padding:36px; box-shadow:var(--shadow); }
.form-group { margin-bottom: 20px; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
label { display:block; font-weight:600; margin-bottom:7px; font-size:.93rem; color:var(--grigio); }
label .req { color:#dc2626; }
input, select, textarea {
  width:100%; padding:13px 16px; border:1.5px solid var(--border); border-radius:8px;
  font-family:var(--ff); font-size:1rem; color:var(--grigio); background:#fff; transition:border-color .2s;
}
input:focus, select:focus, textarea:focus { outline:none; border-color:var(--blu-accent); box-shadow:0 0 0 3px rgba(37,99,235,.12); }
textarea { resize:vertical; min-height:130px; }
.checkbox-group { display:flex; align-items:flex-start; gap:10px; }
.checkbox-group input { width:auto; margin-top:5px; flex-shrink:0; }
.checkbox-group label { font-weight:400; font-size:.9rem; color:var(--grigio-2); margin:0; }
.form-msg { padding:14px 18px; border-radius:8px; margin-top:16px; display:none; font-weight:500; }
.form-msg.success { display:block; background:#dcfce7; color:#15803d; border:1px solid #86efac; }
.form-msg.error { display:block; background:#fee2e2; color:#b91c1c; border:1px solid #fca5a5; }

/* ============ CTA STRIP ============ */
.cta-strip { background: linear-gradient(135deg, var(--blu), var(--blu-dark)); color:#fff; text-align:center; padding:64px 0; border-radius:0; }
.cta-strip h2 { color:#fff; margin-bottom:14px; }
.cta-strip p { color:rgba(255,255,255,.9); font-size:1.15rem; margin-bottom:28px; }

/* ============ BLOG ============ */
.article-card { background:#fff; border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; transition:all .28s; display:flex; flex-direction:column; }
.article-card:hover { transform:translateY(-6px); box-shadow:var(--shadow-lg); }
.article-card .art-top { height:8px; background:linear-gradient(90deg,var(--blu),var(--blu-accent)); }
.article-card .art-body { padding:26px; flex:1; display:flex; flex-direction:column; }
.art-meta { font-size:.82rem; color:var(--grigio-light); margin-bottom:12px; display:flex; gap:12px; }
.art-meta .cat { color:var(--blu-accent); font-weight:700; text-transform:uppercase; letter-spacing:.5px; }
.article-card h3 { font-size:1.15rem; margin-bottom:10px; }
.article-card p { font-size:.94rem; flex:1; }

/* Article content */
.article-content { max-width: 780px; margin:0 auto; }
.article-content h2 { font-size:1.6rem; margin:36px 0 14px; }
.article-content h3 { margin:28px 0 10px; }
.article-content p { font-size:1.05rem; line-height:1.8; }
.article-content ul { margin:0 0 20px; }
.article-content ul li { position:relative; padding-left:26px; margin-bottom:10px; color:var(--grigio-2); }
.article-content ul li::before { content:''; position:absolute; left:0; top:10px; width:8px; height:8px; border-radius:50%; background:var(--blu-accent); }

/* ============ CONTACT INFO ============ */
.contact-item { display:flex; gap:16px; margin-bottom:26px; }
.contact-item .ci-icon { flex-shrink:0; width:48px; height:48px; border-radius:10px; background:linear-gradient(135deg,var(--blu),var(--blu-accent)); color:#fff; display:flex; align-items:center; justify-content:center; }
.contact-item h4 { font-size:1rem; margin-bottom:2px; }
.contact-item p, .contact-item a { font-size:.98rem; color:var(--grigio-2); margin:0; }
.contact-item a:hover { color:var(--blu); }
.map-embed { border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow); border:1px solid var(--border); }
.map-embed iframe { width:100%; height:340px; border:0; display:block; }

/* ============ FOOTER ============ */
.site-footer { background:var(--grigio); color:#cbd0d6; padding:64px 0 0; }
.footer-grid { display:grid; grid-template-columns:1.4fr 1fr 1fr 1.2fr; gap:40px; margin-bottom:48px; }
.site-footer h4 { color:#fff; font-size:1.05rem; margin-bottom:18px; }
.site-footer a { color:#cbd0d6; font-size:.94rem; }
.site-footer a:hover { color:#fff; }
.site-footer li { margin-bottom:10px; }
.footer-logo img { height:52px; margin-bottom:16px; filter: brightness(0) invert(1); }
.footer-about p { font-size:.94rem; color:#a8afb8; }
.footer-social { display:flex; gap:12px; margin-top:14px; }
.footer-social a { width:40px; height:40px; border-radius:8px; background:rgba(255,255,255,.1); display:flex; align-items:center; justify-content:center; }
.footer-social a:hover { background:var(--blu-accent); }
.footer-bottom { border-top:1px solid rgba(255,255,255,.12); padding:22px 0; font-size:.88rem; display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; color:#a8afb8; }
.footer-bottom a { color:#a8afb8; }
.footer-bottom .fb-links { display:flex; gap:20px; }

/* ============ WHATSAPP FLOAT ============ */
.wa-float {
  position:fixed; bottom:24px; right:24px; width:60px; height:60px; border-radius:50%;
  background:var(--whatsapp); color:#fff; display:flex; align-items:center; justify-content:center;
  box-shadow:0 6px 24px rgba(37,211,102,.5); z-index:999; transition:transform .25s; animation: waPulse 2.5s infinite;
}
.wa-float:hover { transform:scale(1.1); color:#fff; }
.wa-float svg { width:32px; height:32px; }
@keyframes waPulse { 0%{box-shadow:0 0 0 0 rgba(37,211,102,.5);} 70%{box-shadow:0 0 0 16px rgba(37,211,102,0);} 100%{box-shadow:0 0 0 0 rgba(37,211,102,0);} }

/* ============ COOKIE BANNER ============ */
.cookie-banner {
  position:fixed; bottom:0; left:0; right:0; background:var(--grigio); color:#e5e7eb;
  padding:20px 24px; z-index:1001; box-shadow:0 -4px 20px rgba(0,0,0,.15);
  display:none; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap;
}
.cookie-banner.show { display:flex; }
.cookie-banner p { margin:0; font-size:.92rem; color:#cbd0d6; flex:1; min-width:260px; }
.cookie-banner a { color:#7ab0ff; }
.cookie-actions { display:flex; gap:12px; }
.cookie-actions .btn { padding:10px 22px; font-size:.92rem; }

/* ============ SCROLL ANIMATION ============ */
.reveal { opacity:0; transform:translateY(30px); transition:opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity:1; transform:translateY(0); }

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns:repeat(2,1fr); }
  .grid-3 { grid-template-columns:repeat(2,1fr); }
  .footer-grid { grid-template-columns:repeat(2,1fr); gap:32px; }
  .two-col { grid-template-columns:1fr; gap:36px; }
}
@media (max-width: 820px) {
  .menu-toggle { display:block; }
  .main-nav {
    position:fixed; top:var(--header-h); left:0; right:0; bottom:0; background:#fff;
    flex-direction:column; align-items:stretch; padding:20px 24px; gap:0;
    transform:translateX(100%); transition:transform .3s; overflow-y:auto; box-shadow:var(--shadow-lg);
  }
  .main-nav.open { transform:translateX(0); }
  .main-nav > ul { flex-direction:column; align-items:stretch; gap:0; width:100%; }
  .main-nav a { padding:14px 8px; border-bottom:1px solid var(--border); border-radius:0; }
  .dropdown { position:static; opacity:1; visibility:visible; transform:none; box-shadow:none; border:none; padding:0 0 0 16px; max-height:0; overflow:hidden; transition:max-height .3s; }
  .has-dropdown.open .dropdown { max-height:400px; }
  .header-cta .btn { display:none; }
  .header-cta .btn.mobile-show { display:none; }
}
@media (max-width: 560px) {
  .grid-4, .grid-3, .grid-2, .footer-grid, .form-row { grid-template-columns:1fr; }
  .section { padding:56px 0; }
  .hero { padding:64px 0; }
  .hero .btn-group .btn { width:100%; justify-content:center; }
  .form-card { padding:24px; }
  .footer-bottom { flex-direction:column; }
  .wa-float { width:54px; height:54px; bottom:18px; right:18px; }
}
