/* Reset e base */
* {
  box-sizing: border-box;
}
body,
h1,
h2,
h3,
p,
ul,
li {
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #333;
  background-color: #f4f4f4;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Top bar/menu (leggermente più grande, tendina che resta più a lungo) */
.site-bar {
  background: #ffffff;
  border-bottom: 1px solid #e5e5e5;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.site-bar .bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 15px;
}
.brand {
  font-weight: 800;
  color: #c0392b;
  letter-spacing: 0.5px;
  font-size: 1.8rem;
}
.main-nav {
  font-family: inherit;
}
.nav-root {
  display: flex;
  gap: 34px;
  list-style: none;
  align-items: center;
}
.nav-link,
.nav-btn {
  background: none;
  border: 0;
  color: #333;
  font-size: 1.05rem;
  cursor: pointer;
}
.has-dd {
  position: relative;
}
.has-dd .nav-btn::before {
  content: '▾';
  margin-right: 6px;
  color: #888;
}
.dd {
  position: absolute;
  top: 150%;
  left: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
  list-style: none;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease 0.6s, visibility 0s linear 1s;
  z-index: 1001;
}
.dd a {
  display: block;
  padding: 10px 14px;
  color: #333;
  text-decoration: none;
  white-space: nowrap;
}
.dd a:hover {
  background: #f7f7f7;
  color: #c0392b;
}
.has-dd:hover .dd,
.has-dd:focus-within .dd {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease, visibility 0s;
}

/* Header hero più grande e overlay morbido */
.main-header {
  background: url('assets/slide1.jpg') no-repeat center center;
  background-size: cover;
  color: white;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}
.main-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
}
.header-content {
  position: relative;
  z-index: 2;
  padding: 0 15px;
}
.header-content h1 {
  font-size: 3.4rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.header-content p {
  font-size: 1.2rem;
  margin-top: 12px;
  white-space: pre-line;
}

/* Sezioni Rapide */
.quick-sections {
  display: flex;
  justify-content: center;
  background-color: #e9e9e9;
  padding: 22px 0;
  flex-wrap: wrap;
}
.quick-section-link {
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
}
.quick-section-link:hover {
  transform: translateY(-5px);
}
.quick-section {
  text-align: center;
  padding: 20px;
  margin: 0 10px;
}
.quick-section .icon {
  width: 80px;
  height: 80px;
  background-color: #d4d4d4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-size: 2.5rem;
  color: #c0392b;
}
.quick-section h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}
.quick-section p {
  font-size: 0.9rem;
  color: #666;
  max-width: 220px;
}

/* Sezione Attività solo immagine - banner 1169x826 visibile per intero */
.activities-section {
  background-color: #c0392b;
  padding: 56px 0;
  color: #333;
}
.activities-content {
  background-color: #fff;
  padding: 0;
  max-width: 1000px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  overflow: hidden;
  border-radius: 10px;
}
.activities-only-banner .activities-banner {
  width: 100%;
  display: block;
  background: #f7f7f7;
  max-height: 620px;
}
.activities-banner img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  aspect-ratio: 1169 / 826;
  background: #f7f7f7;
}

/* Info cards */
.info-cards-section {
  padding: 54px 0;
  background-color: #f0f0f0;
}
.info-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.info-card {
  background-color: #e0e0e0;
  padding: 30px;
  text-align: center;
  border-radius: 10px;
}
.info-card .card-image {
  width: 150px;
  height: 150px;
  background-color: #ccc;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  overflow: hidden;
}
.info-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.info-card h2 {
  font-size: 1.4rem;
  margin-bottom: 15px;
}
.info-card p,
.info-card ul {
  margin-bottom: 20px;
  font-size: 0.95rem;
  color: #555;
  list-style: none;
}
.info-card .read-more {
  color: #c0392b;
  text-decoration: none;
  font-weight: bold;
}

/* Staff */
.staff-section {
  padding: 54px 0;
  text-align: center;
}
.staff-section h2 {
  font-size: 2rem;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.staff-section p {
  color: #777;
}

/* Pratiche */
.practices-section {
  padding: 54px 0;
  background-color: #f0f0f0;
}
.practices-section h2 {
  text-align: center;
  font-size: 2rem;
  text-transform: uppercase;
  margin-bottom: 40px;
}
.practices-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.practice-card {
  background-color: #e0e0e0;
  text-align: center;
  border-radius: 10px;
  overflow: hidden;
}
.practice-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.practice-card .practice-content {
  padding: 20px;
}
.practice-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.practice-card p {
  font-size: 0.9rem;
  color: #555;
}

/* Footer */
.main-footer {
  background-color: #fff;
  padding: 40px 0;
  border-top: 1px solid #ddd;
}
.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}
.footer-column h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #c0392b;
  display: inline-block;
}
.footer-column ul {
  list-style: none;
}
.footer-column li,
.footer-column p {
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: #555;
}
.footer-column a {
  color: #555;
  text-decoration: none;
}
.footer-column a:hover {
  color: #c0392b;
}
.footer-bottom {
  text-align: center;
  padding: 20px 0;
  background-color: #222;
  color: #aaa;
}

/* Responsive */
@media (max-width: 768px) {
  .brand {
    font-size: 1.3rem;
  }
  .header-content h1 {
    font-size: 2.2rem;
  }
  .activities-content {
    max-width: 100%;
    border-radius: 0;
  }
  .activities-only-banner .activities-banner {
    max-height: 420px;
  }
}