/* ============================================================
EXECUTIVE HUNTER — RESPONSIVE
Breakpoints: 1200 / 1024 / 900 / 768 / 640 / 480 / 375
============================================================ */

/* ============================================================
GLOBAL RESETS
============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
}

img, video, iframe {
  max-width: 100%;
}

/* ============================================================
GLOBAL SECTION
Riduce padding sulle sezioni a tutti i livelli
============================================================ */

@media (max-width: 1024px) {
  section {
    padding: 100px 0;
    min-height: auto;
  }
}

@media (max-width: 768px) {
  section {
    padding: 80px 0;
  }
}

@media (max-width: 480px) {
  section {
    padding: 64px 0;
  }
}

/* ============================================================
CONTAINER
============================================================ */

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
}

/* ============================================================
BUTTONS
============================================================ */

@media (max-width: 480px) {
  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================
HERO (index.html)
============================================================ */

@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image {
    max-width: 600px;
    margin: auto;
  }
}

@media (max-width: 768px) {
  .hero {
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-subtitle {
    font-size: 17px;
  }
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 34px;
    line-height: 1.15;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  .hero-buttons a {
    width: 100%;
    max-width: 320px;
  }
}

@media (max-width: 375px) {
  .hero h1 {
    font-size: 28px;
  }
}

/* ============================================================
FEATURES SECTION
============================================================ */

@media (max-width: 1024px) {
  .features {
    padding: 100px 0;
  }

  .features-header {
    margin-bottom: 60px;
  }

  .features-header h2 {
    font-size: 36px;
  }
}

@media (max-width: 900px) {
  .features-list {
    grid-template-columns: 1fr;
  }

  /* Rimuovi bordi griglia desktop */
  .feature-item:nth-child(odd) {
    border-right: none;
  }

  .feature-item:nth-child(n+2) {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
  }

  /* Rimuovi bordo feature-num/icon per layout compatto */
  .feature-item {
    padding: 28px 24px;
    grid-template-columns: 36px 44px 1fr;
    column-gap: 14px;
  }
}

@media (max-width: 640px) {
  .features-header h2 {
    font-size: 30px;
  }

  .feature-item {
    grid-template-columns: 1fr;
    row-gap: 14px;
  }

  .feature-num {
    display: none;
  }

  .feature-icon {
    width: 42px;
    height: 42px;
  }
}

/* ============================================================
FEATURES EYEBROW
============================================================ */

@media (max-width: 640px) {
  .features-eyebrow::before,
  .features-eyebrow::after {
    display: none;
  }
}

/* ============================================================
PRODUCT PREVIEW
============================================================ */

@media (max-width: 1024px) {
  .product-preview-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .product-text h2 {
    font-size: 34px;
  }

  .product-text .btn-primary {
    margin: auto;
  }

  .product-visual {
    max-width: 640px;
    margin: auto;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .product-text h2 {
    font-size: 28px;
  }

  .product-text p {
    font-size: 16px;
  }

  /* Floating cards — nascondile su mobile piccolo */
  .floating-card {
    display: none;
  }
}

/* ============================================================
PRICING SECTION
============================================================ */

@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: auto;
  }

  /* Rimuovi lo scale della featured card su tablet/mobile */
  .pricing-card.featured {
    transform: none;
    order: -1;
  }

  .pricing-card.featured:hover {
    transform: translateY(-6px);
  }

  .pricing-header h2 {
    font-size: 34px;
  }
}

@media (max-width: 640px) {
  .pricing {
    padding: 80px 0;
  }

  .pricing-header h2 {
    font-size: 28px;
  }

  .pricing-card {
    padding: 32px 24px;
  }

  .price-value {
    font-size: 52px;
  }

  .pricing-card .btn-primary,
  .pricing-card .btn-secondary {
    width: 100%;
    align-self: stretch;
    text-align: center;
    justify-content: center;
  }
}

/* ============================================================
TESTIMONIALS
============================================================ */

@media (max-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-header h2 {
    font-size: 34px;
  }
}

@media (max-width: 640px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-header {
    margin-bottom: 48px;
  }

  .testimonials-header h2 {
    font-size: 28px;
  }

  .testimonial-card {
    padding: 28px 20px;
  }
}

/* ============================================================
CONTACT SECTION
============================================================ */

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact-map iframe {
    height: 320px;
  }

  /* Nascondi pseudo-elementi decorativi che si tagliano */
  .contact-map::before,
  .contact-map::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .contact-form h2 {
    font-size: 30px;
  }

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

  .contact-map iframe {
    height: 260px;
  }

  .contact-form .btn-primary {
    width: 100%;
    align-self: stretch;
    justify-content: center;
  }
}

/* ============================================================
FOOTER
============================================================ */

@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-inner > .footer-col:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-inner > .footer-col:first-child {
    grid-column: auto;
  }

  .footer-description {
    max-width: 100%;
  }

  .footer-bottom-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* ============================================================
COMMAND PAGE
============================================================ */

@media (max-width: 1024px) {
  .command-hero-grid {
    grid-template-columns: 1fr;
    padding: 120px 0 80px;
  }

  .command-title {
    font-size: 48px;
  }

  .command-edition {
    font-size: 34px;
  }

  .command-hero-text h1 {
    font-size: 38px;
  }

  .command-subtitle {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .command-hero-grid {
    padding: 100px 0 60px;
  }

  .command-title {
    font-size: 38px;
  }

  .command-edition {
    font-size: 28px;
  }

  .command-grid,
  .command-clients-grid {
    grid-template-columns: 1fr;
  }

  .command-features,
  .command-clients {
    padding: 80px 0;
  }

  .command-cta {
    padding: 80px 0;
  }

  .command-cta-box h2 {
    font-size: 30px;
  }
}

@media (max-width: 480px) {
  .command-title {
    font-size: 32px;
  }

  .command-edition {
    font-size: 24px;
  }

  .command-hero-text p {
    font-size: 15px;
  }
}

/* ============================================================
SECTION HEADER (command page shared)
============================================================ */

@media (max-width: 768px) {
  .section-header h2 {
    font-size: 30px !important;
  }

  .section-header p {
    font-size: 15px;
  }
}

/* ============================================================
IGNITE / SCALE PLAN PAGES
============================================================ */

@media (max-width: 1024px) {
  .plan-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .plan-hero {
    padding: 120px 0 80px;
  }

  .plan-title {
    font-size: 44px;
  }

  .plan-feature-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .plan-hero {
    padding: 100px 0 60px;
  }

  .plan-title {
    font-size: 36px;
  }

  .plan-pricing-card,
  .plan-details {
    padding: 32px 24px;
  }

  .plan-feature-list {
    grid-template-columns: 1fr;
  }

  .plan-limits ul {
    grid-template-columns: 1fr;
  }

  .price-value {
    font-size: 52px;
  }

  .plan-cta {
    display: flex;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .plan-title {
    font-size: 30px;
  }

  .plan-subtitle {
    font-size: 16px;
  }

  .yearly-summary {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .payment-methods {
    flex-wrap: wrap;
  }
}

/* ============================================================
MODAL (command page)
============================================================ */

@media (max-width: 640px) {
  .modal-panel {
    padding: 32px 20px;
    max-height: 95vh;
  }

  .modal-header h3 {
    font-size: 26px;
  }

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

/* ============================================================
PRICING TOGGLE
============================================================ */

@media (max-width: 480px) {
  .pricing-toggle {
    gap: 10px;
  }

  .toggle-label {
    font-size: 13px;
  }
}

/* ============================================================
HERO BUTTONS — fix overflow
============================================================ */

@media (max-width: 400px) {
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .hero-buttons a {
    max-width: 100%;
  }
}

/* ============================================================
NAV — overflow fix su schermi molto stretti
============================================================ */

@media (max-width: 360px) {
  .logo-text {
    font-size: 18px;
  }

  .logo-img {
    height: 28px;
  }
}

/* ============================================================
FEATURES SECTION (features.jpg background)
Assicura che il background copra sempre
============================================================ */

@media (max-width: 768px) {
  .features {
    background-attachment: scroll; /* fix parallax su mobile */
  }

  .features-container {
    padding: 0 16px;
  }
}

/* ============================================================
CONTACT MAP — fix altezza su mobile
============================================================ */

@media (max-width: 480px) {
  .contact-map iframe {
    height: 220px;
  }
}

/* ============================================================
TYPOGRAPHY — scale globale su mobile
============================================================ */

@media (max-width: 768px) {
  .testimonials-header h2,
  .features-header h2,
  .contact-form h2,
  .pricing-header h2,
  .product-text h2 {
    font-size: clamp(26px, 7vw, 38px);
  }
}

/* ============================================================
COMMAND CTA MODAL BUTTON
============================================================ */

@media (max-width: 480px) {
  #cta-open-modal {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================
PLAN TRUST LINE
============================================================ */

@media (max-width: 480px) {
  .plan-trust {
    font-size: 12px;
    text-align: center;
  }
}

/* ============================================================
FOOTER LOGO
============================================================ */

@media (max-width: 640px) {
  .footer-logo {
    font-size: 22px;
  }
}

/* ============================================================
PREVENT HORIZONTAL SCROLL GLOBALLY
============================================================ */

html, body {
  overflow-x: hidden;
}

.navbar {
  overflow: visible; /* mantieni dropdown visibile */
}
