/* ========================================
   PD Londra & UK - Main Stylesheet
   Brand Kit: #008348 (Green), #d82e38 (Red), #ffffff (White)
   Fonts: Montserrat (headings), Roboto (body)
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --green: #008348;
  --green-dark: #006838;
  --green-light: #e6f2ec;
  --red: #d82e38;
  --red-dark: #b8242d;
  --red-light: #fce8e9;
  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-500: #6c757d;
  --gray-700: #495057;
  --gray-900: #212529;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Roboto', sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--green);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--green-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.2;
  color: var(--gray-900);
}

h1 {
  font-size: 3rem;
  font-weight: 700;
}

h2 {
  font-size: 2.25rem;
  font-weight: 600;
}

h3 {
  font-size: 1.5rem;
  font-weight: 500;
}

h4 {
  font-size: 1.25rem;
  font-weight: 500;
}

p {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--gray-700);
}

.section-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--green);
  margin-bottom: 12px;
}

.section-title {
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--gray-500);
  max-width: 640px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--green-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--white);
  color: var(--green);
  border: 2px solid var(--green);
}

.btn-secondary:hover {
  background: var(--green);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-red {
  background: var(--red);
  color: var(--white);
}

.btn-red:hover {
  background: var(--red-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-white {
  background: var(--white);
  color: var(--green);
}

.btn-white:hover {
  background: var(--gray-100);
  color: var(--green-dark);
  transform: translateY(-1px);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* --- Header / Navbar --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.logo img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.logo-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--gray-900);
  line-height: 1.2;
}

.logo-text span {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gray-500);
}

/* Desktop Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
  color: var(--green);
  background: var(--green-light);
}

.nav-link svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition);
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all 0.2s ease;
}

.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-item:hover .nav-link svg {
  transform: rotate(180deg);
}

.dropdown a {
  display: block;
  padding: 10px 14px;
  font-size: 0.875rem;
  color: var(--gray-700);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.dropdown a:hover {
  background: var(--green-light);
  color: var(--green);
}

.nav-cta {
  margin-left: 12px;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-900);
  border-radius: 2px;
  transition: all var(--transition);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  padding: 160px 0 100px;
  background: url('../images/Headline_Picture.jpg') center/cover no-repeat;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 560px;
}

.hero-content h1 {
  font-size: 3.25rem;
  line-height: 1.15;
  margin-bottom: 24px;
  color: #fff;
}

.hero-content h1 .highlight-green {
  color: #4ade80;
}

.hero-content h1 .highlight-red {
  color: #f87171;
}

.hero-content p {
  font-size: 1.1875rem;
  margin-bottom: 36px;
  color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  display: none;
}

.hero-logo-container {
  position: relative;
  width: 320px;
  height: 320px;
}

.hero-logo-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.1));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Decorative stripe below hero */
.hero-stripe {
  height: 4px;
  background: linear-gradient(90deg, var(--green) 0%, var(--green) 50%, var(--red) 50%, var(--red) 100%);
}

/* --- About Section --- */
.about {
  padding: 100px 0;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-content .section-label {
  margin-bottom: 16px;
}

.about-content h2 {
  margin-bottom: 24px;
}

.about-content p {
  margin-bottom: 20px;
}

.about-content p:last-of-type {
  margin-bottom: 32px;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.feature-card {
  background: var(--gray-50);
  padding: 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.feature-card:hover {
  border-color: var(--green);
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--green-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--green);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-card h4 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.5;
}

/* --- Tematiche / Focus Areas --- */
.focus-areas {
  padding: 100px 0;
  background: var(--gray-50);
}

.focus-areas .section-header {
  text-align: center;
  margin-bottom: 60px;
}

.focus-areas .section-subtitle {
  margin: 0 auto;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.focus-card {
  background: var(--white);
  padding: 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
  text-align: center;
}

.focus-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.focus-card-icon {
  width: 56px;
  height: 56px;
  background: var(--green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--green);
}

.focus-card-icon svg {
  width: 26px;
  height: 26px;
}

.focus-card h4 {
  margin-bottom: 10px;
}

.focus-card p {
  font-size: 0.9375rem;
  color: var(--gray-500);
}

/* --- CTA / Participate Banner --- */
.cta-banner {
  padding: 100px 0;
  background: var(--green);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}

.cta-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-inner h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.cta-inner p {
  color: rgba(255,255,255,0.85);
  font-size: 1.125rem;
  max-width: 560px;
  margin: 0 auto 36px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Newsletter Section --- */
.newsletter {
  padding: 80px 0;
  background: var(--white);
}

.newsletter-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-inner h2 {
  margin-bottom: 12px;
}

.newsletter-inner p {
  margin-bottom: 32px;
  color: var(--gray-500);
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 14px 20px;
  font-family: 'Roboto', sans-serif;
  font-size: 0.9375rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition);
}

.newsletter-form input[type="email"]:focus {
  border-color: var(--green);
}

.newsletter-form button {
  white-space: nowrap;
}

/* --- Leadership Section --- */
.leadership {
  padding: 100px 0;
  background: var(--gray-50);
}

.leadership .section-header {
  text-align: center;
  margin-bottom: 60px;
}

.leadership .section-subtitle {
  margin: 0 auto;
}

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.leader-card {
  text-align: center;
  background: var(--white);
  padding: 40px 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.leader-card:hover {
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.leader-avatar {
  width: 72px;
  height: 72px;
  background: var(--green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--green);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
}

.leader-card h4 {
  margin-bottom: 4px;
}

.leader-role {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 12px;
}

.leader-email {
  font-size: 0.8125rem;
  color: var(--green);
}

/* --- Gruppi di Lavoro / Working Groups --- */
.working-groups {
  padding: 100px 0;
}

.wg-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 40px;
  max-width: 700px;
  margin: 40px auto 0;
}

.wg-card h3 {
  margin-bottom: 16px;
  color: var(--green);
}

.wg-card p {
  margin-bottom: 16px;
}

.wg-contact {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  color: var(--green);
}

.wg-contact svg {
  width: 18px;
  height: 18px;
}

/* --- Decio Anzani Memorial --- */
.memorial {
  padding: 100px 0;
  background: var(--gray-50);
}

.memorial-inner {
  max-width: 720px;
  margin: 0 auto;
}

.memorial-inner h2 {
  text-align: center;
  margin-bottom: 12px;
}

.memorial-date {
  text-align: center;
  font-size: 0.9375rem;
  color: var(--gray-500);
  margin-bottom: 40px;
}

.memorial-inner p {
  margin-bottom: 20px;
}

.memorial-quote {
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
  font-style: italic;
  font-size: 1.25rem;
  color: var(--green);
  border-left: 4px solid var(--green);
  padding-left: 24px;
  margin: 36px 0;
}

/* --- Contact Section --- */
.contact {
  padding: 100px 0;
}

.contact .section-header {
  text-align: center;
  margin-bottom: 60px;
}

.contact .section-subtitle {
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.contact-card {
  text-align: center;
  padding: 36px 24px;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.contact-card:hover {
  border-color: var(--green);
}

.contact-card-icon {
  width: 52px;
  height: 52px;
  background: var(--green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--green);
}

.contact-card-icon svg {
  width: 24px;
  height: 24px;
}

.contact-card h4 {
  margin-bottom: 8px;
}

.contact-card a {
  font-size: 0.875rem;
  word-break: break-all;
}

/* --- Footer --- */
.footer {
  background: var(--gray-900);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 24px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9375rem;
  margin-top: 16px;
  max-width: 320px;
  line-height: 1.6;
}

.footer-brand .logo-text {
  color: var(--white);
}

.footer-brand .logo-text span {
  color: rgba(255,255,255,0.5);
}

.footer h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--green);
  color: var(--white);
}

.footer-social a svg {
  width: 18px;
  height: 18px;
}

/* --- Page Header (subpages) --- */
.page-header {
  padding: 140px 0 60px;
  background: linear-gradient(135deg, var(--green-light) 0%, var(--white) 100%);
  text-align: center;
}

.page-header h1 {
  font-size: 2.75rem;
  margin-bottom: 12px;
}

.page-header p {
  font-size: 1.125rem;
  color: var(--gray-500);
  max-width: 560px;
  margin: 0 auto;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--gray-500);
}

.breadcrumb a:hover {
  color: var(--green);
}

.breadcrumb span {
  margin: 0 8px;
}

/* --- Page Content --- */
.page-content {
  padding: 80px 0;
}

.page-content-inner {
  max-width: 720px;
  margin: 0 auto;
}

.page-content-inner h2 {
  margin-top: 48px;
  margin-bottom: 16px;
}

.page-content-inner h3 {
  margin-top: 36px;
  margin-bottom: 12px;
}

.page-content-inner p {
  margin-bottom: 20px;
}

.page-content-inner ul {
  margin-bottom: 20px;
  padding-left: 24px;
}

.page-content-inner li {
  font-size: 1.0625rem;
  color: var(--gray-700);
  margin-bottom: 8px;
  line-height: 1.6;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-logo-container {
    width: 240px;
    height: 240px;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .focus-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }

  .hero {
    padding: 120px 0 60px;
  }

  .hero-content h1 {
    font-size: 2.25rem;
  }

  .nav {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 4px;
    overflow-y: auto;
  }

  .nav.open {
    display: flex;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 0 16px;
    min-width: auto;
    display: none;
  }

  .nav-item.dropdown-open .dropdown {
    display: block;
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 8px;
  }

  .menu-toggle {
    display: flex;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .focus-grid {
    grid-template-columns: 1fr;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .leadership-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .cta-banner {
    padding: 60px 0;
  }

  .page-header {
    padding: 120px 0 40px;
  }

  .page-header h1 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}
