/* ═══════════════════════════════════════════════════════
   Agenzia Levorato – Shared Stylesheet
   ═══════════════════════════════════════════════════════ */

:root {
  --primary:  #1A3A5C;
  --primary2: #2a5f8e;
  --dark:     #1C2B3A;
  --accent:   #E8601A;
  --accent2:  #c94e0e;
  --light:    #F4F6F8;
  --mid:      #D0D8E0;
  --text:     #1C2B3A;
  --muted:    #6B7A8D;
  --white:    #FFFFFF;
  --radius:   8px;
  --radius-lg:14px;
  --shadow:   0 4px 24px rgba(26,58,92,0.10);
  --shadow-lg:0 8px 40px rgba(26,58,92,0.15);
}

/* ── RESET ─────────────────────────────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

img { max-width:100%; display:block; }
a   { color: inherit; }

/* ── TOPBAR ────────────────────────────────────────────── */
.topbar {
  background: var(--primary);
  color: #A8BDD0;
  font-size: 0.78rem;
  padding: 6px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.topbar a { color: #A8BDD0; text-decoration:none; }
.topbar a:hover { color: var(--white); }
.topbar-right { display:flex; gap:18px; flex-wrap:wrap; }

/* ── HEADER ────────────────────────────────────────────── */
header {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.logo-mark {
  width: 46px;
  height: 46px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -1px;
  flex-shrink: 0;
}
.logo-text h1 { font-size:1.05rem; font-weight:800; color:var(--primary); line-height:1.1; }
.logo-text span { font-size:0.72rem; color:var(--muted); text-transform:uppercase; letter-spacing:1px; }

/* Nav */
nav ul { list-style:none; display:flex; gap:4px; }
nav ul li a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius);
  transition: all 0.15s;
  white-space: nowrap;
}
nav ul li a:hover { color:var(--primary); background:var(--light); }
nav ul li a.active { color:var(--primary); background:var(--light); font-weight:700; }
.nav-cta { background:var(--accent) !important; color:var(--white) !important; font-weight:700 !important; }
.nav-cta:hover { background:var(--accent2) !important; }

/* ── LAYOUT HELPERS ────────────────────────────────────── */
.container { max-width:1200px; margin:0 auto; padding:0 40px; }
.section-pad { padding:80px 0; }

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 10px;
}
h2.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-desc {
  font-size: 1rem;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.7;
}

/* ── BUTTONS ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  font-family: inherit;
}
.btn-primary  { background:var(--accent);  color:var(--white); }
.btn-primary:hover  { background:var(--accent2); transform:translateY(-1px); }
.btn-secondary { background:var(--primary); color:var(--white); }
.btn-secondary:hover { background:#154d7a; transform:translateY(-1px); }
.btn-outline-dark { background:transparent; color:var(--primary); border:2px solid var(--primary); }
.btn-outline-dark:hover { background:var(--primary); color:var(--white); }
.btn-outline-light { background:transparent; color:var(--white); border:2px solid rgba(255,255,255,0.4); }
.btn-outline-light:hover { border-color:rgba(255,255,255,0.8); background:rgba(255,255,255,0.07); }
.btn-light { background:var(--white); color:var(--primary); }
.btn-light:hover { background:var(--light); transform:translateY(-1px); }
.btn-ghost { background:var(--light); color:var(--primary); }
.btn-ghost:hover { background:var(--mid); }

.btn-sm {
  padding: 7px 14px;
  font-size: 0.78rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: inherit;
  transition: all 0.15s;
}
.btn-sm-primary { background:var(--primary); color:var(--white); }
.btn-sm-primary:hover { background:#154d7a; }
.btn-sm-outline { background:var(--white); color:var(--primary); border:1.5px solid var(--primary); }
.btn-sm-outline:hover { background:var(--light); }
.btn-sm-accent { background:var(--accent); color:var(--white); }
.btn-sm-accent:hover { background:var(--accent2); }

/* ── INNER PAGE HERO ───────────────────────────────────── */
.page-hero {
  background: linear-gradient(120deg, var(--primary) 0%, #2a5f8e 100%);
  padding: 64px 0;
  color: var(--white);
}
.page-hero-inner { max-width:1200px; margin:0 auto; padding:0 40px; }
.breadcrumb {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.breadcrumb a { text-decoration:none; color:rgba(255,255,255,0.55); }
.breadcrumb a:hover { color:rgba(255,255,255,0.85); }
.breadcrumb span { color:rgba(255,255,255,0.35); }
.page-hero h1 { font-size:2.4rem; font-weight:900; line-height:1.15; margin-bottom:12px; }
.page-hero h1 em { color:var(--accent); font-style:normal; }
.page-hero p { font-size:1rem; color:#A8C4D8; max-width:540px; line-height:1.7; }

/* ── CARDS ─────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--mid);
  overflow: hidden;
  transition: box-shadow 0.15s, transform 0.15s;
}
.card:hover { box-shadow:var(--shadow); }

/* ── PRODUCT CARD ──────────────────────────────────────── */
.product-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--mid);
  overflow: hidden;
  transition: box-shadow 0.15s;
  text-decoration: none;
  color: inherit;
  display: block;
  background: var(--white);
}
.product-card:hover { box-shadow:var(--shadow); transform:translateY(-2px); }
.product-img {
  height: 180px;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  position: relative;
}
.product-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--accent);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 4px;
}
.product-badge.blue { background: var(--primary); }
.product-info { padding:18px 20px; }
.product-brand { font-size:0.7rem; font-weight:700; text-transform:uppercase; letter-spacing:1px; color:var(--accent); margin-bottom:6px; }
.product-info h4 { font-size:0.95rem; font-weight:700; color:var(--primary); margin-bottom:6px; line-height:1.3; }
.product-info p { font-size:0.8rem; color:var(--muted); margin-bottom:14px; }
.product-actions { display:flex; gap:8px; flex-wrap:wrap; }

/* ── BRAND CARD ────────────────────────────────────────── */
.brand-card {
  background: var(--white);
  border-radius: 10px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--mid);
  text-decoration: none;
  transition: all 0.15s;
}
.brand-card:hover { box-shadow:var(--shadow); border-color:var(--primary); transform:translateY(-2px); }
.brand-logo-ph {
  width: 80px; height: 44px;
  background: var(--light);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 600;
}
.brand-card span { font-size:0.8rem; font-weight:600; color:var(--primary); text-align:center; }

/* ── NEWS CARD ─────────────────────────────────────────── */
.news-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--mid);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: box-shadow 0.15s;
}
.news-card:hover { box-shadow:var(--shadow); }
.news-img {
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--muted);
}
.news-body { padding:20px; }
.news-tag { font-size:0.68rem; font-weight:700; text-transform:uppercase; letter-spacing:1px; color:var(--accent); margin-bottom:8px; }
.news-body h4 { font-size:1rem; font-weight:700; color:var(--primary); margin-bottom:8px; line-height:1.3; }
.news-body p { font-size:0.82rem; color:var(--muted); line-height:1.5; }
.news-date { font-size:0.72rem; color:var(--muted); margin-top:10px; }

/* ── TESTIMONIAL CARD ──────────────────────────────────── */
.testi-card {
  background: var(--light);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  border-left: 4px solid var(--accent);
}
.testi-stars { color:#F5A623; margin-bottom:12px; }
.testi-card p { font-size:0.9rem; color:var(--text); font-style:italic; line-height:1.6; margin-bottom:16px; }
.testi-author { display:flex; align-items:center; gap:12px; }
.avatar { width:38px; height:38px; border-radius:50%; background:var(--primary); display:flex; align-items:center; justify-content:center; font-size:0.85rem; font-weight:700; color:var(--white); flex-shrink:0; }
.testi-author-info strong { display:block; font-size:0.85rem; font-weight:700; color:var(--primary); }
.testi-author-info span { font-size:0.75rem; color:var(--muted); }

/* ── ICON FEATURE CARD ─────────────────────────────────── */
.feature-card {
  background: var(--light);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  text-align: center;
}
.feature-card .icon { font-size:2.2rem; margin-bottom:14px; }
.feature-card h4 { font-size:0.95rem; font-weight:700; color:var(--primary); margin-bottom:6px; }
.feature-card p { font-size:0.82rem; color:var(--muted); line-height:1.5; }

/* ── STAT BOX ──────────────────────────────────────────── */
.stat-box { border-radius:10px; padding:22px 20px; text-align:center; }
.stat-box .num { font-size:2rem; font-weight:900; color:var(--accent); line-height:1; margin-bottom:4px; }
.stat-box .lbl { font-size:0.78rem; }

/* ── FORM ELEMENTS ─────────────────────────────────────── */
.form-group { margin-bottom:16px; }
.form-group label { display:block; font-size:0.8rem; font-weight:600; color:var(--muted); margin-bottom:6px; text-transform:uppercase; letter-spacing:0.5px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--white);
  border: 1.5px solid var(--mid);
  border-radius: var(--radius);
  padding: 11px 14px;
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border 0.15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color:var(--accent); }
.form-group input::placeholder,
.form-group textarea::placeholder { color:var(--mid); }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; }

/* Dark form variant (for dark bg sections) */
.form-dark .form-group label { color:#A8C4D8; }
.form-dark .form-group input,
.form-dark .form-group select,
.form-dark .form-group textarea {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
  color: var(--white);
}
.form-dark .form-group input::placeholder,
.form-dark .form-group textarea::placeholder { color:rgba(255,255,255,0.3); }
.form-dark .form-group select option { background:var(--primary); }

/* ── CATEGORY PILLS ────────────────────────────────────── */
.cat-pills { display:flex; gap:10px; flex-wrap:wrap; margin-bottom:32px; }
.cat-btn {
  padding: 8px 18px;
  border-radius: 20px;
  border: 2px solid var(--mid);
  background: var(--white);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.cat-btn.active, .cat-btn:hover { background:var(--primary); color:var(--white); border-color:var(--primary); }

/* ── TRUST BAR ─────────────────────────────────────────── */
.trust-bar { background:var(--light); border-bottom:1px solid var(--mid); padding:20px 40px; }
.trust-inner { max-width:1200px; margin:0 auto; display:flex; align-items:center; justify-content:space-between; gap:30px; flex-wrap:wrap; }
.trust-item { display:flex; align-items:center; gap:10px; font-size:0.85rem; font-weight:600; color:var(--primary); }
.trust-item .ico { font-size:1.3rem; }

/* ── FAQ ───────────────────────────────────────────────── */
.faq-item { border-bottom:1px solid var(--mid); }
.faq-question {
  width:100%; background:none; border:none; padding:18px 0; text-align:left;
  font-size:0.95rem; font-weight:700; color:var(--primary); cursor:pointer;
  display:flex; justify-content:space-between; align-items:center; gap:12px;
  font-family:inherit;
}
.faq-question:hover { color:var(--accent); }
.faq-answer { font-size:0.88rem; color:var(--muted); line-height:1.7; padding-bottom:18px; display:none; }
.faq-item.open .faq-answer { display:block; }
.faq-item.open .faq-arrow { transform:rotate(180deg); }
.faq-arrow { transition:transform 0.2s; font-size:0.8rem; color:var(--muted); flex-shrink:0; }

/* ── NEWSLETTER STRIP ──────────────────────────────────── */
.newsletter-strip {
  background: var(--primary);
  padding: 48px 0;
  color: var(--white);
}
.newsletter-inner { max-width:1200px; margin:0 auto; padding:0 40px; display:flex; align-items:center; justify-content:space-between; gap:40px; flex-wrap:wrap; }
.newsletter-strip h3 { font-size:1.3rem; font-weight:800; margin-bottom:4px; }
.newsletter-strip p { font-size:0.9rem; color:#A8C4D8; }
.newsletter-form { display:flex; gap:10px; }
.newsletter-form input { padding:12px 18px; border:1.5px solid rgba(255,255,255,0.2); border-radius:var(--radius); background:rgba(255,255,255,0.08); color:var(--white); font-size:0.88rem; outline:none; width:260px; font-family:inherit; }
.newsletter-form input::placeholder { color:rgba(255,255,255,0.35); }
.newsletter-form button { background:var(--accent); border:none; border-radius:var(--radius); padding:12px 20px; color:var(--white); font-weight:700; font-size:0.88rem; cursor:pointer; font-family:inherit; }
.newsletter-form button:hover { background:var(--accent2); }

/* ── FOOTER ────────────────────────────────────────────── */
footer { background:#0D1F30; color:#A8BDD0; padding:60px 0 0; }
.footer-grid { display:grid; grid-template-columns:2fr 1fr 1fr 1.5fr; gap:50px; padding-bottom:50px; }
.footer-logo-row { display:flex; align-items:center; gap:12px; margin-bottom:16px; }
.footer-logo-mark { width:40px; height:40px; background:var(--accent); border-radius:8px; display:flex; align-items:center; justify-content:center; font-size:1.1rem; font-weight:900; color:var(--white); }
.footer-brand-name { font-size:0.95rem; font-weight:700; color:var(--white); line-height:1.1; }
footer p { font-size:0.85rem; line-height:1.7; }
.footer-col h5 { font-size:0.8rem; font-weight:700; text-transform:uppercase; letter-spacing:1.5px; color:var(--white); margin-bottom:16px; }
.footer-col ul { list-style:none; }
.footer-col ul li { margin-bottom:8px; }
.footer-col ul li a { text-decoration:none; color:#A8BDD0; font-size:0.85rem; transition:color 0.15s; }
.footer-col ul li a:hover { color:var(--accent); }
.footer-social { display:flex; gap:10px; margin-top:18px; }
.social-btn { width:34px; height:34px; background:rgba(255,255,255,0.08); border-radius:6px; display:flex; align-items:center; justify-content:center; color:#A8BDD0; text-decoration:none; font-size:0.85rem; font-weight:700; transition:all 0.15s; }
.social-btn:hover { background:var(--accent); color:var(--white); }
.footer-nl-form { display:flex; gap:8px; margin-top:14px; }
.footer-nl-form input { flex:1; background:rgba(255,255,255,0.07); border:1px solid rgba(255,255,255,0.14); border-radius:6px; padding:10px 14px; color:var(--white); font-size:0.82rem; outline:none; font-family:inherit; }
.footer-nl-form input::placeholder { color:rgba(255,255,255,0.3); }
.footer-nl-form button { background:var(--accent); border:none; border-radius:6px; padding:10px 16px; color:var(--white); font-weight:700; font-size:0.82rem; cursor:pointer; }
.footer-bottom { border-top:1px solid rgba(255,255,255,0.08); padding:20px 0; display:flex; justify-content:space-between; align-items:center; font-size:0.78rem; flex-wrap:wrap; gap:10px; }
.footer-bottom a { color:#A8BDD0; text-decoration:none; }
.footer-bottom a:hover { color:var(--accent); }
.footer-links { display:flex; gap:20px; }

/* ── PAGINATION ────────────────────────────────────────── */
.pagination { display:flex; gap:6px; justify-content:center; margin-top:40px; }
.page-btn { width:38px; height:38px; border-radius:var(--radius); border:1.5px solid var(--mid); background:var(--white); color:var(--text); font-weight:600; font-size:0.85rem; cursor:pointer; display:flex; align-items:center; justify-content:center; text-decoration:none; transition:all 0.15s; font-family:inherit; }
.page-btn.active, .page-btn:hover { background:var(--primary); color:var(--white); border-color:var(--primary); }

/* ── UTILITY ───────────────────────────────────────────── */
.text-center { text-align:center; }
.text-muted { color:var(--muted); }
.text-accent { color:var(--accent); }
.text-primary { color:var(--primary); }
.mt-8  { margin-top:8px; }
.mt-16 { margin-top:16px; }
.mt-24 { margin-top:24px; }
.mt-32 { margin-top:32px; }
.mt-40 { margin-top:40px; }
.mb-0  { margin-bottom:0 !important; }
.bg-light { background:var(--light); }
.bg-primary { background:var(--primary); }
.gap-cta { display:flex; gap:14px; flex-wrap:wrap; }
.divider { border:none; border-top:1px solid var(--mid); margin:40px 0; }

/* CTA Banner */
.cta-banner {
  background: var(--light);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-banner h3 { font-size:1.1rem; font-weight:800; color:var(--primary); margin-bottom:4px; }
.cta-banner p  { font-size:0.88rem; color:var(--muted); }
.cta-banner-dark { background:linear-gradient(120deg, var(--dark) 0%, var(--primary) 100%); color:var(--white); }
.cta-banner-dark h3 { color:var(--white); }
.cta-banner-dark p  { color:#A8C4D8; }

/* ── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns:1fr 1fr; gap:30px; }
}

@media (max-width: 768px) {
  .topbar { padding:6px 20px; }
  .topbar-right { display:none; }
  .nav-inner { padding:0 20px; }
  .container { padding:0 20px; }
  .page-hero { padding:40px 0; }
  .page-hero h1 { font-size:1.8rem; }
  h2.section-title { font-size:1.5rem; }
  .section-pad { padding:56px 0; }
  nav ul { display:none; }
  .form-row { grid-template-columns:1fr; }
  .footer-grid { grid-template-columns:1fr; gap:24px; }
  .footer-bottom { flex-direction:column; text-align:center; }
  .footer-links { flex-wrap:wrap; justify-content:center; }
  .newsletter-inner { flex-direction:column; text-align:center; }
  .newsletter-form { flex-direction:column; width:100%; }
  .newsletter-form input { width:100%; }
  .cta-banner { flex-direction:column; text-align:center; }
  .trust-inner { justify-content:center; }
}
