/* style.css */
:root {
  --navy-blue: #113250; /* Blu scuro estratto dal testo del logo */
  --navy-light: #5B7894; /* Blu chiaro estratto dal faro */
  --amber: #F9A01B; /* Arancione/Ambra estratto dalla luce */
  --amber-hover: #D88710;
  --text-dark: #2C3E50;
  --text-light: #F8F9FA;
  --bg-light: #F8FAFC;
  --white: #FFFFFF;
  --font-main: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
}

/* Navigazione Elegante su Sfondo Bianco */
header {
  background-color: var(--white);
  padding: 0.5rem 5%;
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 15px rgba(17, 50, 80, 0.08);
}

.logo-img {
  height: 150px; /* Dimensione ideale per un logo elegante */
  width: auto;
  display: block;
  transition: transform 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.02);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav a {
  color: var(--navy-blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  transition: color 0.3s;
}

nav a:hover, nav a.active {
  color: var(--amber);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--navy-blue) 0%, #0c2339 100%);
  color: var(--white);
  padding: 7rem 5%;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(249, 160, 27, 0.15) 0%, rgba(249, 160, 27, 0) 70%);
  border-radius: 50%;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero h1 span {
  color: var(--amber);
}

.hero p {
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto 2.5rem;
  color: #E2E8F0;
}

/* Pulsanti */
.btn {
  display: inline-block;
  background-color: var(--amber);
  color: var(--white);
  padding: 0.8rem 2.2rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 50px;
  transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
  box-shadow: 0 4px 6px rgba(249, 160, 27, 0.3);
}

.btn:hover {
  background-color: var(--amber-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(249, 160, 27, 0.4);
}

.btn-outline {
  background-color: transparent;
  color: var(--amber);
  border: 2px solid var(--amber);
  box-shadow: none;
}

.btn-outline:hover {
  background-color: var(--amber);
  color: var(--white);
}

/* Sezioni Generiche */
.section {
  padding: 5rem 5%;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  color: var(--navy-blue);
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--amber);
  margin: 15px auto 0;
  border-radius: 2px;
}

/* Griglie e Card */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(17, 50, 80, 0.05);
  border-top: 4px solid var(--amber);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(17, 50, 80, 0.1);
}

.card h3 {
  color: var(--navy-blue);
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

/* Footer */
footer {
  background-color: var(--navy-blue);
  color: var(--text-light);
  text-align: center;
  padding: 4rem 5% 1.5rem;
  margin-top: auto;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.footer-links a {
  color: var(--amber);
  text-decoration: none;
  font-weight: bold;
}

.footer-bottom {
  font-size: 0.9rem;
  color: var(--navy-light);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
}

/* Responsività */
@media (max-width: 768px) {
  nav ul {
    display: none; 
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero p {
    font-size: 1.1rem;
  }
  .logo-img {
    height: 55px; /* Più piccolo su mobile */
  }
}