/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-color: #ffffff;
  --text-main: #1d1d1f; /* Nero morbido stile Apple */
  --text-muted: #86868b;
  --accent-color: #034ee3; /* Il tuo blu */
  --accent-hover: #0238a8;
  --box-bg: #f5f5f7; /* Grigio sfondi Apple */
  --nav-bg: rgba(255, 255, 255, 0.8);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.47059;
  letter-spacing: -0.022em;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Navigazione Premium con Blur */
header {
  position: sticky;
  top: 0;
  width: 100%;
  height: 64px;
  background-color: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-container {
  width: 100%;
  max-width: 1000px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.logo img {
  height: 45px;
  display: block;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
}

nav a {
  text-decoration: none;
  color: var(--text-main);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.01em;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

nav a:hover, nav a.active {
  opacity: 1;
}

/* Pulsanti stile Pillola */
.btn {
  display: inline-block;
  background-color: var(--accent-color);
  color: #fff;
  padding: 12px 24px;
  border-radius: 980px; /* Arrotondamento estremo */
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.1s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: var(--accent-hover);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-main);
  border: 1.5px solid var(--text-main);
  padding: 11px 23px; /* Aggiustato per compensare lo spessore del bordo */
}

.btn-secondary:hover {
  background-color: var(--text-main);
  color: var(--bg-color);
}

/* Tipografia e Sezioni */
.hero {
  text-align: center;
  padding: 120px 20px 80px 20px;
}

.hero h1 {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 20px;
}

.hero p {
  font-size: 24px;
  color: var(--text-muted);
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto 40px auto;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.hero-img-container {
  width: 100%;
  max-width: 1137px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-img-container img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
}

.card-img-wrapper {
  width: 100%;
  height: 350px;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  /* Ho rimosso il padding per dare il massimo dello spazio disponibile */
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transform: scale(1.05); /* Effetto zoom! Prova 1.3 o 1.5 per trovare la grandezza perfetta */
}

.placeholder-img {
  width: 100%;
  background-color: var(--box-bg);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-weight: 500;
  overflow: hidden;
}

.placeholder-hero { height: 500px; }
.placeholder-card { height: 300px; }

.section-padding { padding: 120px 20px; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background-color: var(--box-bg);
  border-radius: 24px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card h3 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.card p {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 30px;
}

/* Testo Istituzionale (About) */
.corporate-text {
  max-width: 800px;
  margin: 0 auto;
  font-size: 21px;
  color: var(--text-muted);
  line-height: 1.6;
}

.corporate-text strong {
  color: var(--text-main);
  font-weight: 600;
}

/* Modulo Contatti Minimal */
.contact-form {
  max-width: 500px;
  margin: 0 auto;
  width: 100%;
}

.input-field {
  width: 100%;
  background-color: var(--box-bg);
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 16px;
  font-size: 17px;
  margin-bottom: 16px;
  outline: none;
  transition: all 0.3s ease;
}

.input-field:focus {
  border-color: var(--accent-color);
  background-color: #fff;
}

textarea.input-field { min-height: 150px; resize: vertical; }

/* Footer */
footer {
  background-color: var(--box-bg);
  padding: 40px 20px;
  margin-top: auto;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

.footer-logo {
  margin-bottom: 20px;
}
.footer-logo img {
  height: 40px;
  opacity: 0.5;
}

/* Hamburger Menu Mobile */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  z-index: 2000;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--text-main);
  transition: 0.3s;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 40px; }
  .hero p { font-size: 19px; }
  .grid-2 { grid-template-columns: 1fr; }
  
  .hamburger { display: flex; }
  
  nav {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1500;
  }

  nav.active {
    opacity: 1;
    pointer-events: auto;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  nav a {
    font-size: 24px;
    font-weight: 600;
  }

  .hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.active span:nth-child(2) { opacity: 0; }
  .hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}