/* ------------------------------
   Reset & Base
------------------------------ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
  background: #fdfdfd;
  color: #333;
}

h1, h2, h3 {
  color: #003e70; /* blu mare Tropea */
  font-weight: 700;
}

a {
  color: #0077b6;
  text-decoration: none;
}

a:hover {
  color: #023e8a;
  text-decoration: underline;
}

/* ------------------------------
   Layout container
------------------------------ */
.container,
section {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ------------------------------
   Hero section
------------------------------ */
.hero {
  padding: 80px 0;
  background: linear-gradient(
      rgba(0, 64, 109, 0.45), 
      rgba(0, 64, 109, 0.45)
    ),
    url('/assets/img/hero-tropea.jpg') center/cover no-repeat;
  color: #fff;
  text-align: center;
  border-radius: 0 0 20px 20px;
  margin-bottom: 40px;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.btn-primary {
  background: #ffb703;
  color: #000;
  padding: 12px 28px;
  display: inline-block;
  border-radius: 30px;
  font-weight: bold;
  transition: 0.3s ease;
}

.btn-primary:hover {
  background: #ffa400;
}

/* ------------------------------
   Intro
------------------------------ */
.intro {
  text-align: center;
  margin: 50px 0;
}

.intro p {
  max-width: 850px;
  margin: auto;
  font-size: 1.1rem;
}

/* ------------------------------
   Grid Cards
------------------------------ */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin: 50px 0;
}

.card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.card img {
  width: 100%;
  border-radius: 14px;
  margin-bottom: 15px;
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  margin-bottom: 10px;
}

/* ------------------------------
   Focus Section
------------------------------ */
.focus {
  background: #e6f4ff;
  padding: 50px 20px;
  border-radius: 18px;
  text-align: center;
  margin-top: 40px;
}

.btn-secondary {
  display: inline-block;
  margin-top: 15px;
  background: #0077b6;
  color: #fff;
  padding: 12px 28px;
  border-radius: 30px;
}

.btn-secondary:hover {
  background: #00629c;
}

/* ------------------------------
   News Articles
------------------------------ */
.news {
  margin: 60px 0;
}

.news .articles {
  display: grid;
  gap: 22px;
}

.news article {
  padding: 15px 5px;
  border-bottom: 1px solid #ddd;
}

.news h3 a {
  font-size: 1.1rem;
  font-weight: bold;
}

/* ------------------------------
   Responsive
------------------------------ */
@media (max-width: 768px) {
  .hero {
    padding: 60px 20px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }
}



.nav {
  display: flex;
  gap: 15px;
  position: relative;
  align-items: center;
}

.nav a, .nav span {
  font-weight: 600;
  padding: 10px;
  cursor: pointer;
}

.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  min-width: 180px;
  z-index: 999;
  padding: 10px 0;
}

.dropdown-content a {
  display: block;
  padding: 10px 15px;
  color: #0077b6;
}

.dropdown-content a:hover {
  background: #f0f8ff;
}

.dropdown:hover .dropdown-content {
  display: block;
}


/* Hamburger Button */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: #003e70;
  border-radius: 3px;
}

/* Responsive menu */
@media (max-width: 900px) {

  .hamburger {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 70px;
    right: 0;
    background: #ffffff;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    flex-direction: column;
    gap: 0;
    border-bottom: 2px solid #0077b6;
    transition: max-height .3s ease;
    z-index: 999;
  }

  .nav.open {
    max-height: 650px; /* spazio sufficiente */
  }

  .nav a,
  .nav span {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    font-size: 1.1rem;
  }

  .dropdown {
    width: 100%;
  }

  /* Dropdown mobile */
  .dropdown-content {
    position: relative;
    box-shadow: none;
    border-radius: 0;
    background: #f8fbff;
    padding: 0;
  }

  .dropdown:hover .dropdown-content {
    display: block;
  }

  .dropdown-content a {
    padding: 12px 30px;
    border-bottom: 1px solid #eee;
  }
}

/* Desktop adjustments */
@media (min-width: 901px) {
  .nav {
    display: flex;
    gap: 15px;
  }
}
