:root {
  /* ANTI SAFE-HARBOR PALETTE
     Deep Charcoal instead of SaaS blue.
     Off-white and crisp contrasts. 
     Emerald logic accent. */
  --bg-color: #F8F9FA;
  --text-dark: #121212;
  --text-light: #FAFAFA;
  --accent: #EAB308;
  /* Yellow */
  --dark-surface: #1E1E1E;
  --border-light: rgba(0, 0, 0, 0.1);
  --border-dark: rgba(255, 255, 255, 0.1);

  --font-sans: 'Outfit', sans-serif;
  --font-serif: 'Playfair Display', serif;

  /* Geometric strictness: No soft rounded corners.
     0px for sharpness. */
  --radius: 0px;
}
/* fonts sul server */
/* OUTFIT */
@font-face {
  font-family: 'Outfit';
  src: url('/fonts/outfit-300.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Outfit';
  src: url('/fonts/outfit-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Outfit';
  src: url('/fonts/outfit-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Outfit';
  src: url('/fonts/outfit-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Outfit';
  src: url('/fonts/outfit-800.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* PLAYFAIR */
@font-face {
  font-family: 'Playfair Display';
  src: url('/fonts/playfair-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Playfair Display';
  src: url('/fonts/playfair-600-italic.woff2') format('woff2');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography Details */
h1, h2, h3 {
  font-family: 'Playfair Display', serif;
}
h4 {
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.serif-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
}

.container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
}

.section {
  padding: 120px 0;
}

.section-title {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.section-title span {
  color: var(--accent);
}

.section-header {
  margin-bottom: 80px;
  max-width: 600px;
}

.dark-header {
  color: var(--text-light);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  z-index: 100;
  border-bottom: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 5%;
}

.logo img {
  height: 70px;
  display: block;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--accent);
}

.btn-primary {
  background: var(--text-dark);
  color: var(--text-light) !important;
  padding: 12px 24px;
  border-radius: var(--radius);
  transition: background 0.3s !important;
}

.btn-primary:hover {
  background: var(--accent) !important;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 10vh;
  padding-left: 5%;
}

.sotto-titolo{
  position: relative;
  color: var(--accent);
 margin: 5% 0 0 2%;
 font-size: 1.5rem;
 font-weight: 300;
}
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(18, 18, 18, 0.9) 0%, rgba(18, 18, 18, 0.3) 100%);
}

.hero-content {
  color: var(--text-light);
  max-width: 900px;
  z-index: 10;
}

.hero-title {
  font-size: clamp(4rem, 8vw, 9rem);
  text-transform: uppercase;
  line-height: 0.9;
  margin-bottom: 2rem;
}

.hero-title .serif-italic {
  color: var(--accent);
  text-transform: none;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 300;
  max-width: 600px;
}

/* Philosophy */
.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.ph-text p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.highlight-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.8rem !important;
  color: var(--accent);
}

.ph-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  border-left: 1px solid var(--border-light);
  padding-left: 40px;
}

.stat-box {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text-dark);
}

.stat-label {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #666;
}

/* Offices */
.bg-dark {
  background-color: var(--text-dark);
  color: var(--text-light);
}

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

.office-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-dark);
  background: var(--dark-surface);
  transition: transform 0.4s ease;
}

.office-card:hover {
  transform: translateY(-10px) !important;
}

.office-img {
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.office-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.2);
  transition: filter 0.4s ease, transform 0.8s ease;
}

.office-card:hover .office-img img {
  filter: grayscale(0%) contrast(1.1);
  transform: scale(1.05);
}

.office-info {
  padding: 30px;
}

.office-info h3 {
  font-size: 2rem;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.office-info p {
  color: #aaa;
  margin-bottom: 12px;
  line-height: 1.6;
}

.office-hours,
.office-phone,
.office-appointment {
  font-size: 0.95rem;
}

.office-appointment {
  color: var(--accent);
  font-weight: 600;
}

.office-link {
  color: var(--accent);
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
}

/* Team */
#professionisti{

  background-color: #1b1919!important;
  color: var(--text-light);
}
.team-grid-prof {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Large tablet */
@media (max-width: 1400px) {
  .team-grid-prof {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet */
@media (max-width: 992px) {
  .team-grid-prof {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 768px) {
  .team-grid-prof {
    grid-template-columns: repeat(1, 1fr);
  }
}

@media (max-width: 480px) {
  .team-grid-prof {
    grid-template-columns: 1fr;
  }
}


/* team*/
.team-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

/* Large tablet */
@media (max-width: 1400px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablet */
@media (max-width: 992px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile */
@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

.team-member {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: #E0E0E0;
  cursor: pointer;
}

.team-member img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.5s ease;
}

.team-member:hover img {
  filter: grayscale(0%);
}

.member-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  color: var(--text-light);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease;
}

.team-member:hover .member-info {
  transform: translateY(0);
  opacity: 1;
}

.member-info h4 {

  
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.member-info p {
  font-size: 0.5rem;
  color: #ccc;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.member-info .member-location {
  font-size: 0.65rem;
  color: var(--accent);
  margin-bottom: 8px;
}

/* Footer */
.footer {
  background: #111;
  color: var(--text-light);
  padding: 80px 0 30px;
}

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

.footer-logo {
  height: 50px;
  margin-bottom: 20px;
  
}

.footer-tagline {
  color: #888;
  font-size: 1.2rem;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  color: #fff;
}

.footer-links a {
  display: block;
  color: #888;
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.3s;
}

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

.footer-contact p {
  color: #888;
  margin-bottom: 10px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #666;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .philosophy-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .ph-stats {
    border-left: none;
    padding-left: 0;
    grid-template-columns: 1fr 1fr 1fr;
    border-top: 1px solid var(--border-light);
    padding-top: 40px;
  }

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

  .office-card {
    transform: none !important;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    /* In a real app we'd add a hamburger menu */
  }

  .ph-stats {
    grid-template-columns: 1fr;
  }

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

  .hero-title {
    font-size: 3.5rem;
  }
}

.attivita-section {
 
  background:#0f0f10;
}

.attivita-grid {
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:40px;
  margin-top:60px;
}

.activity-card {
  background:#18181b;
  padding:40px;
  border-left:4px solid var(--yellow);
  transition:all .4s ease;
}

.activity-card:hover {
  transform:translateY(-8px);
  box-shadow:0 20px 50px rgba(0,0,0,.4);
}

.activity-card h3 {
  margin-bottom:20px;
  color:var(--accent);
}

.activity-card p {
  color:#a1a1aa;
  margin-bottom:12px;
}

.activity-card ul {
  padding-left:20px;
  color:#a1a1aa;
}

.activity-card li {
  margin-bottom:8px;
}

.full-width {
  grid-column:1 / -1;
  background:#1f1f23;
  border-left:6px solid var(--yellow);
}

.network-list {
  columns:2;
  margin:20px 0;
}

/* Responsive */
@media (max-width: 992px) {
  .attivita-grid {
    grid-template-columns:repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .attivita-grid {
    grid-template-columns:1fr;
  }

  .network-list {
    columns:1;
  }
}

.section-header {
  max-width:1800px;
  margin-bottom:60px;
 padding-top: 80px;
}

.section-label {
  display:inline-block;
  color:var(--yellow);
  font-weight:600;
  letter-spacing:1px;
  text-transform:uppercase;
  font-size:14px;
  margin-bottom:15px;
}

.section-header h2 {
  font-size:40px;
  margin-bottom:20px;
  color: var(--accent);
  
}

.section-header p {
  color:#a1a1aa;
  font-size:18px;
  line-height:1.7;
}

/* Modal base */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Nascondi */
.hidden {
  display: none;
}

/* Contenuto */
.modal-content {
  background: #fff;
  max-width: 700px;
  width: 90%;
  padding: 30px;
  border-radius: 12px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

/* Close */
.close {
  position: absolute;
  top: 10px;
  right: 15px;
  border: none;
  background: none;
  font-size: 24px;
  cursor: pointer;
}

/* Link */
.privacy-link {
  cursor: pointer;
  text-decoration: underline;
}

/* OVERLAY */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* ATTIVO */
.modal.active {
  opacity: 1;
  visibility: visible;
}

/* BOX */
.modal-content {
  background: #fff;
  width: 90%;
  max-width: 720px;
  border-radius: 16px;
  padding: 40px;

  transform: scale(0.95) translateY(20px);
  opacity: 0;
  transition: all 0.3s ease;

  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

/* ANIMAZIONE IN */
.modal.active .modal-content {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* CLOSE */
.close {
  position: absolute;
  top: 20px;
  right: 24px;
  border: none;
  background: none;
  font-size: 26px;
  cursor: pointer;
  color: #666;
}

.close:hover {
  color: #000;
}

/* TIPOGRAFIA */
.modal-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  margin-bottom: 20px;
}

.modal-content h3 {
  font-weight: 600;
  margin-top: 20px;
  font-size: 16px;
}

.modal-content p {
  color: #555;
  line-height: 1.6;
  font-size: 15px;
}

/* MOBILE */
@media (max-width: 640px) {
  .modal-content {
    padding: 25px;
  }
}


/* NAVBAR */
.navbar {
  position: fixed;
  width: 100%;
  background: rgba(15,15,16,.9);
  backdrop-filter: blur(8px);
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 5%;
}

/* LINKS DESKTOP */
.nav-links {
  display: flex;
  gap: 40px;
}

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.hamburger span {
  width: 26px;
  height: 2px;
  background: #fff;
  transition: .4s;
}

/* MOBILE */
@media (max-width: 992px) {

  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: #111;
    flex-direction: column;
    padding: 120px 40px;
    gap: 30px;
    transition: .4s ease;
  }

  .nav-links.active {
    right: 0;
  }

  /* Hamburger animation */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
  }

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

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
  }
}

.menu-close {
  position: absolute;
  top: 30px;
  right: 30px;
  font-size: 28px;
  color: #fff;
  cursor: pointer;
  display: none;
}

/* Mostra solo su mobile */
@media (max-width: 992px) {

  .menu-close {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: #111;
    flex-direction: column;
    padding: 100px 40px;
    gap: 30px;
    transition: .4s ease;
  }

}

.team img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
