/* Correzioni grafiche da telefono (2026-12-05). Caricato dopo gli altri CSS in index.html. */

/* Badge del team ("Senior Designer presso Meta"): testo bianco su fondo chiaro, illeggibile */
.team-card-international > div[style*="inline-flex"] {
  color: var(--text-primary, #111) !important;
  background: rgba(0, 0, 0, 0.05) !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
}

/* Tendina del modulo contatti: stessa grafica dei campi di testo */
.form-group select {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  min-height: 48px;
  padding-right: 44px !important;
  background-color: rgba(255, 255, 255, 0.02);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23839b9a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
  color: #000 !important;
  cursor: pointer;
  line-height: 1.3;
}
.form-group:has(select) { margin-bottom: 1.25rem; }
.form-group select option { color: #000; }

/* Riga del copyright: era quasi invisibile */
.footer-bottom p { color: var(--text-secondary, #555) !important; }

/* ---------- Tablet e telefono ---------- */
@media (max-width: 968px) {
  /* Footer: una colonna sola, niente più testo fuori dallo schermo */
  footer { padding: 3rem 20px calc(2rem + env(safe-area-inset-bottom, 0px)) !important; }
  .footer-container {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 2.25rem !important;
    width: 100%;
  }
  .footer-brand { max-width: none !important; width: 100%; }
  .footer-company-info { gap: 0.85rem !important; }
  .footer-company-info p {
    display: flex !important;
    align-items: baseline;
    flex-wrap: wrap;
    column-gap: 6px;
    row-gap: 2px;
    line-height: 1.5;
  }
  .footer-company-info p > i {
    flex: 0 0 18px;
    width: 18px;
    margin-right: 4px !important;
    text-align: center;
  }
  .footer-company-info p a { white-space: nowrap; }
  .footer-links {
    justify-self: stretch !important;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0 1.5rem !important;
  }
  .footer-links h4 { margin-bottom: 0.4rem !important; }
  .footer-links a {
    display: flex;
    align-items: center;
    min-height: 44px;
  }
  .footer-bottom {
    grid-column: 1 / -1 !important;
    width: 100%;
    margin-top: 0.5rem !important;
  }
  .footer-bottom p {
    font-size: 0.8rem !important;
    line-height: 1.7;
    overflow-wrap: anywhere;
  }
  .footer-bottom p a { white-space: nowrap; }

  /* Contatti: icona email sulla stessa riga del testo */
  .contact-info-panel .info-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 12px !important;
    text-align: left !important;
  }
  .contact-info-panel .info-item > i { flex: 0 0 auto; margin: 4px 0 0 !important; font-size: 1.1rem; }

  /* Menu: selettore lingua allineato alle altre voci */
  header .main-nav .lang-switcher {
    display: flex !important;
    align-items: center;
    gap: 8px;
    padding: 14px 12px !important;
    border-bottom: 1px solid #dce3e5;
  }
  header .main-nav .lang-switcher > span { display: none !important; }
  header .main-nav .lang-switcher button {
    min-width: 52px !important;
    min-height: 40px !important;
    padding: 0 14px !important;
    border: 1px solid #dce3e5 !important;
    border-radius: 8px !important;
    font-size: 15px !important;
  }
}

/* ---------- Telefono ---------- */
@media (max-width: 640px) {
  /* Slider dei progetti: la scheda centrale entra tutta nello schermo */
  div[style*="width: 560px"][style*="height: 330px"] {
    width: calc(100vw - 32px) !important;
    max-width: 560px;
    height: auto !important;
    aspect-ratio: 4 / 3;
    border-radius: 16px !important;
  }
  div[style*="width: 560px"][style*="height: 330px"] h4 {
    font-size: 1.02rem !important;
    line-height: 1.25 !important;
  }
  div[style*="width: 560px"][style*="height: 330px"] div[style*="bottom: 0px"][style*="padding: 1.2rem 1.4rem"] {
    padding: 0.8rem 1rem !important;
  }
  div[style*="max-width: 1600px"][style*="height: 440px"] { height: 300px !important; }
  div[style*="perspective: 1400px"][style*="min-height: 480px"] { min-height: 320px !important; }
}
