/* =========================================================
   Gennaro Di Nunzio - Agente in Attività Finanziaria
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700;800&display=swap');

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #333333;
  background: #ffffff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 70px;
  background: #1a1a2e;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0,0,0,0.3);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.logo img {
  height: 42px;
  width: auto;
}
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}
.main-nav ul li a {
  color: #ffffff;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 14px;
  border-radius: 4px;
  transition: background 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.main-nav ul li a:hover,
.main-nav ul li a.active {
  background: rgba(255,255,255,0.15);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}
.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background: #ffffff;
  transition: all 0.3s ease;
}

/* ===== HERO SLIDER ===== */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 500px;
  overflow: hidden;
  margin-top: 70px;
}
.slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.slide.active { opacity: 1; }
.slide-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.45);
}
.slide-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  padding: 0 24px;
  max-width: 800px;
}
.slide-content h2 {
  font-size: 3rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.1;
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.slide-content p {
  font-size: 1.3rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 32px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.btn-slide {
  display: inline-block;
  padding: 14px 40px;
  background: transparent;
  border: 2px solid #ffffff;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.btn-slide:hover {
  background: #ffffff;
  color: #1a1a2e;
}
/* Slider controls */
.slider-prev,
.slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  font-size: 1.8rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.slider-prev { left: 20px; }
.slider-next { right: 20px; }
.slider-prev:hover,
.slider-next:hover { background: rgba(255,255,255,0.4); }
.slider-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.2s;
  border: none;
}
.dot.active { background: #ffffff; }

/* ===== PAGE HERO (pagine interne) ===== */
.page-hero {
  position: relative;
  height: 400px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 70px;
}
.page-hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
}
.page-hero-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
}
.page-hero-content h1 {
  font-size: 2.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.page-hero-content .hero-sub {
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.btn-hero {
  display: inline-block;
  padding: 12px 36px;
  background: transparent;
  border: 2px solid #ffffff;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 2px;
  transition: all 0.3s;
}
.btn-hero:hover {
  background: #ffffff;
  color: #1a1a2e;
}

/* ===== SEZIONI CONTENUTO ===== */
.content-section {
  padding: 70px 0;
}
.content-section:nth-child(even) {
  background: #f5f5f5;
}
.section-title-img {
  display: block;
  max-width: 280px;
  margin: 0 auto 30px;
}
.section-text {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  font-size: 1rem;
  color: #444;
  line-height: 1.8;
}
.section-text p { margin-bottom: 16px; }

/* Liste a punti nelle sezioni */
.feature-list {
  max-width: 700px;
  margin: 24px auto 0;
  text-align: left;
}
.feature-list li {
  padding: 8px 0 8px 28px;
  position: relative;
  font-size: 1rem;
  color: #444;
  border-bottom: 1px solid #e8e8e8;
}
.feature-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: #1a1a2e;
  font-weight: bold;
}
.feature-list li:last-child { border-bottom: none; }

/* Sottogruppo dipendenti */
.target-group {
  margin-top: 10px;
  font-weight: 700;
  color: #1a1a2e;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}
.target-group + .feature-list {
  margin-top: 8px;
}

/* ===== CONDIZIONI AGE CARDS ===== */
.age-cards {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.age-card {
  text-align: center;
}
.age-card img {
  height: 80px;
  margin: 0 auto 12px;
}
.age-card p {
  font-size: 0.85rem;
  color: #666;
  max-width: 140px;
}

/* ===== TIMELINE ===== */
.timeline-wrap {
  margin-top: 30px;
  text-align: center;
}
.timeline-desktop { display: block; max-width: 800px; margin: 0 auto; }
.timeline-mobile  { display: none; max-width: 300px; margin: 0 auto; }

/* ===== CTA BUTTONS ===== */
.cta-center {
  text-align: center;
  margin-top: 40px;
}
.btn-cta {
  display: inline-block;
  padding: 14px 44px;
  background: #1a1a2e;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 3px;
  transition: background 0.3s;
}
.btn-cta:hover { background: #2d2d50; }
.btn-cta.outline {
  background: transparent;
  border: 2px solid #1a1a2e;
  color: #1a1a2e;
}
.btn-cta.outline:hover {
  background: #1a1a2e;
  color: #ffffff;
}

/* ===== ABOUT SECTION ===== */
.about-section {
  padding: 80px 0;
  background: #ffffff;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  align-items: center;
}
.about-text h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.about-text p {
  font-size: 0.98rem;
  color: #555;
  line-height: 1.85;
  margin-bottom: 16px;
}
.about-photo {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}
.about-photo img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== FORM CONTATTI ===== */
.contact-section {
  padding: 80px 0;
  background: #f5f5f5;
}
.contact-section h2 {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: #1a1a2e;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 40px;
}
.contact-form {
  max-width: 680px;
  margin: 0 auto;
  background: #ffffff;
  padding: 40px;
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #444;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.95rem;
  color: #333;
  background: #fafafa;
  transition: border 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #1a1a2e;
  background: #fff;
}
.form-group textarea {
  min-height: 100px;
  resize: vertical;
}
.form-submit {
  text-align: center;
  margin-top: 10px;
}
.btn-submit {
  padding: 14px 50px;
  background: #1a1a2e;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}
.btn-submit:hover { background: #2d2d50; }

/* ===== FOOTER ===== */
.site-footer {
  background: #1a1a2e;
  color: #cccccc;
  padding: 40px 0 20px;
}
.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-col h4 {
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.footer-col ul li {
  margin-bottom: 8px;
}
.footer-col ul li a {
  color: #aaaaaa;
  font-size: 0.88rem;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: #ffffff; }
.social-icons {
  display: flex;
  gap: 14px;
  margin-top: 8px;
}
.social-icons a img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.social-icons a:hover img { opacity: 1; }
.footer-copy {
  text-align: center;
  padding-top: 20px;
  font-size: 0.82rem;
  color: #888888;
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1a1a2e;
  color: #cccccc;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 9999;
  flex-wrap: wrap;
  font-size: 0.88rem;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}
.cookie-banner p { flex: 1; min-width: 200px; }
.cookie-banner p a { color: #88aaff; text-decoration: underline; }
.cookie-btns {
  display: flex;
  gap: 10px;
}
.btn-cookie {
  padding: 8px 22px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 3px;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: all 0.2s;
}
.btn-cookie.accept {
  background: #ffffff;
  color: #1a1a2e;
  border: 2px solid #ffffff;
}
.btn-cookie.accept:hover { background: #ddd; }
.btn-cookie.reject {
  background: transparent;
  color: #cccccc;
  border: 2px solid #888;
}
.btn-cookie.reject:hover { border-color: #ccc; color: #fff; }
.cookie-banner.hidden { display: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .main-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: #1a1a2e;
    padding: 20px;
    display: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  }
  .main-nav.open { display: block; }
  .main-nav ul {
    flex-direction: column;
    gap: 4px;
  }
  .main-nav ul li a { display: block; padding: 12px 16px; }

  .hero-slider { height: 70vh; }
  .slide-content h2 { font-size: 1.8rem; }
  .slide-content p { font-size: 1rem; }

  .page-hero { height: 280px; }
  .page-hero-content h1 { font-size: 1.8rem; }

  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 320px; margin: 0 auto; }

  .form-row { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; gap: 24px; }

  .timeline-desktop { display: none; }
  .timeline-mobile  { display: block; }

  .age-cards { gap: 20px; }
}
