/* ============================================
   EFFETTO WEB — Foglio di stile condiviso
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;1,400&family=DM+Sans:wght@300;400;500&display=swap');

/* ── VARIABILI ── */
:root {
  --ew-dark: #2a3a52;
  --ew-darker: #1e2d42;
  --ew-cyan: #4a9bc4;
  --ew-cyan-light: #7bbfda;
  --ew-text-light: #c8d4e0;
  --ew-text-muted: #8a9bac;
  --ew-border: rgba(74,155,196,0.2);
  --ew-border-soft: rgba(255,255,255,0.08);
}

/* ── RESET & BASE ── */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'DM Sans', sans-serif; font-weight: 400; background: var(--ew-dark); color: #e8eef4; line-height: 1.6; }
.ew-wrap { max-width: 1200px; margin: 0 auto; }

/* ── NAVBAR ── */
.ew-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 3rem;
  border-bottom: 0.5px solid var(--ew-border-soft);
  position: sticky; top: 0; background: var(--ew-darker); z-index: 100;
}
.ew-logo { font-family: 'EB Garamond', serif; font-size: 22px; color: #fff; display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.ew-logo-icon { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--ew-cyan); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ew-logo-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ew-cyan); box-shadow: 0 0 0 2px rgba(74,155,196,0.25); }
.ew-nav-links { display: flex; gap: 1.25rem; list-style: none; }
.ew-nav-links a { font-size: 12px; color: var(--ew-text-muted); text-decoration: none; transition: color 0.15s; white-space: nowrap; }
.ew-nav-links a:hover, .ew-nav-links a.active { color: var(--ew-cyan-light); }
.ew-nav-cta { font-size: 13px; font-weight: 500; color: var(--ew-cyan); background: rgba(74,155,196,0.1); border: 0.5px solid rgba(74,155,196,0.4); padding: 6px 16px; border-radius: 20px; cursor: pointer; text-decoration: none; transition: background 0.15s; white-space: nowrap; flex-shrink: 0; }
.ew-nav-cta:hover { background: rgba(74,155,196,0.2); }
.ew-nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.ew-nav-hamburger span { display: block; width: 22px; height: 1.5px; background: var(--ew-text-light); border-radius: 2px; }

/* ── MENU MOBILE ── */
.ew-mobile-menu { display: none; position: fixed; inset: 0; background: var(--ew-darker); z-index: 200; flex-direction: column; align-items: center; justify-content: center; gap: 2rem; }
.ew-mobile-menu.open { display: flex; }
.ew-mobile-menu a { font-family: 'EB Garamond', serif; font-size: 32px; color: #fff; text-decoration: none; }
.ew-mobile-menu a:hover { color: var(--ew-cyan-light); }
.ew-mobile-menu-close { position: absolute; top: 1.5rem; right: 2rem; background: none; border: none; color: var(--ew-text-muted); font-size: 28px; cursor: pointer; }

/* ── ELEMENTI COMUNI ── */
.ew-eyebrow { font-size: 11px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: var(--ew-cyan); margin-bottom: 0.75rem; }
.ew-section-title { font-family: 'EB Garamond', serif; font-size: 32px; font-weight: 400; color: #fff; letter-spacing: -0.3px; margin-bottom: 0.5rem; }
.ew-section-sub { font-size: 14px; color: var(--ew-text-muted); margin-bottom: 2rem; }
.ew-section-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 2rem; }
.ew-section-link { font-size: 13px; color: var(--ew-cyan); text-decoration: none; border-bottom: 0.5px solid rgba(74,155,196,0.3); padding-bottom: 1px; }
.ew-breadcrumb { font-size: 11px; color: var(--ew-text-muted); margin-bottom: 1rem; display: flex; align-items: center; gap: 6px; }
.ew-breadcrumb a { color: var(--ew-text-muted); text-decoration: none; }
.ew-breadcrumb a:hover { color: var(--ew-cyan); }

/* ── BOTTONI ── */
.ew-btn-primary { font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 500; color: var(--ew-darker); background: var(--ew-cyan); border: none; padding: 10px 22px; border-radius: 24px; cursor: pointer; text-decoration: none; display: inline-block; transition: opacity 0.15s; }
.ew-btn-primary:hover { opacity: 0.85; }
.ew-btn-ghost { font-size: 14px; color: var(--ew-text-muted); background: none; border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; font-family: 'DM Sans', sans-serif; text-decoration: none; }
.ew-btn-ghost:hover { color: var(--ew-text-light); }
.ew-hero-actions { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }

/* ── SEZIONI ── */
.ew-section { padding: 4rem 3rem; border-bottom: 4px solid var(--ew-darker); }
.ew-section-alt { background: var(--ew-darker); border-bottom: 4px solid var(--ew-dark); }

/* ── HERO DI PAGINA (pagine interne) ── */
.ew-page-hero {
  min-height: calc(100vh - 64px);
  padding: 3rem 3rem 4rem;
  border-bottom: 4px solid var(--ew-darker);
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.ew-page-hero > div:first-child {
  display: flex; flex-direction: column; justify-content: center;
}
.ew-hero-visual,
.ew-ai-visual {
  max-height: 400px;
  overflow: hidden;
  align-self: center;
}
.ew-page-hero h1 { font-family: 'EB Garamond', serif; font-size: 52px; font-weight: 400; color: #fff; line-height: 1.1; letter-spacing: -0.3px; margin-bottom: 1.25rem; }
.ew-page-hero h1 em { font-style: italic; color: var(--ew-cyan-light); }
.ew-page-hero-sub { font-size: 14px; color: var(--ew-text-light); line-height: 1.7; margin-bottom: 1.75rem; }

/* ── CTA ── */
.ew-cta { padding: 3.5rem 3rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; background: linear-gradient(135deg, var(--ew-darker) 0%, #253448 100%); border-top: 0.5px solid var(--ew-border); }
.ew-cta h2 { font-family: 'EB Garamond', serif; font-size: 28px; font-weight: 400; color: #fff; line-height: 1.25; max-width: 480px; }
.ew-cta h2 em { font-style: italic; color: var(--ew-cyan-light); }
.ew-cta-right { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; flex-shrink: 0; }
.ew-cta-sub { font-size: 12px; color: var(--ew-text-muted); }

/* ── FOOTER ── */
.ew-footer { padding: 1.5rem 3rem; display: flex; align-items: center; justify-content: space-between; border-top: 0.5px solid var(--ew-border-soft); background: var(--ew-darker); flex-wrap: wrap; gap: 1rem; }
.ew-footer-copy { font-size: 12px; color: var(--ew-text-muted); }
.ew-footer-links { display: flex; gap: 1.5rem; list-style: none; }
.ew-footer-links a { font-size: 12px; color: var(--ew-text-muted); text-decoration: none; }
.ew-footer-links a:hover { color: var(--ew-cyan); }

/* ── VARIE ── */
.ew-tech-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 1.5rem; }
.ew-tech-pill { font-size: 12px; color: var(--ew-text-light); background: rgba(255,255,255,0.05); border: 0.5px solid var(--ew-border-soft); padding: 5px 14px; border-radius: 20px; }
.ew-new-badge { font-size: 10px; font-weight: 500; letter-spacing: 0.8px; text-transform: uppercase; color: var(--ew-cyan); background: rgba(74,155,196,0.12); border: 0.5px solid rgba(74,155,196,0.35); padding: 2px 8px; border-radius: 10px; margin-left: auto; }

/* ════════════════════════════
   TABLET (≤ 768px)
   ════════════════════════════ */
@media (max-width: 768px) {
  .ew-nav { padding: 1.25rem 1.5rem; }
  .ew-page-hero { grid-template-columns: 1fr; padding: 1.5rem 1.5rem 2.5rem; gap: 2rem; min-height: unset; }
  .ew-page-hero h1 { font-size: 36px; }
  .ew-section { padding: 3rem 1.5rem; }
  .ew-section-title { font-size: 26px; }
  .ew-cta { flex-direction: column; align-items: flex-start; padding: 3rem 1.5rem; }
  .ew-cta-right { align-items: flex-start; }
  .ew-footer { padding: 1.25rem 1.5rem; }
}

/* ════════════════════════════
   MOBILE (≤ 480px)
   ════════════════════════════ */
@media (max-width: 480px) {
  .ew-nav { padding: 1rem 1.25rem; }
  .ew-nav-links { display: none; }
  .ew-nav-cta { display: none; }
  .ew-nav-hamburger { display: flex; }
  .ew-page-hero { padding: 1.25rem 1.25rem 2rem; }
  .ew-page-hero h1 { font-size: 30px; }
  .ew-section { padding: 2.5rem 1.25rem; }
  .ew-section-title { font-size: 22px; }
  .ew-btn-primary { font-size: 13px; padding: 9px 18px; }
  .ew-hero-actions { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .ew-cta { padding: 2.5rem 1.25rem; }
  .ew-cta h2 { font-size: 24px; }
  .ew-cta-right .ew-btn-primary { width: 100%; text-align: center; }
  .ew-footer { flex-direction: column; align-items: flex-start; padding: 1.25rem; }
}
