
/* Reset e Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Georgia', serif;
  color: #1a1a1a;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

nav {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 1px;
}

.logo-img {
  height: 35px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  font-weight: bold;
  font-size: 1.1em;
  color: #333;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: #1a1a1a;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  letter-spacing: 0.5px;
}

.nav-links a:hover,
.nav-links a.active {
  color: #8b7355;
}

/* Hero Section */
.hero {
  margin-top: 80px;
  height: 90vh;
  background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none"/><path d="M0 50 L50 0 L100 50 L50 100 Z" fill="rgba(255,255,255,0.02)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  text-align: center;
  color: white;
  z-index: 1;
  max-width: 900px;
  padding: 2rem;
}

.hero-logo {
  margin-bottom: 15px;
}

.hero-logo-img {
  height: 60px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  font-weight: 300;
  letter-spacing: 3px;
  animation: fadeInUp 1s ease;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  opacity: 0.95;
  animation: fadeInUp 1s ease 0.2s backwards;
}

/* Buttons */
.cta-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: #8b7355;
  color: white;
  text-decoration: none;
  border-radius: 3px;
  transition: all 0.3s ease;
  font-size: 1rem;
  letter-spacing: 1px;
  animation: fadeInUp 1s ease 0.4s backwards;
}

.cta-button:hover {
  background: #6d5a44;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(139, 115, 85, 0.3);
}

.cta-button-secondary {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: transparent;
  color: #2c3e50;
  text-decoration: none;
  border: 2px solid #2c3e50;
  border-radius: 3px;
  transition: all 0.3s ease;
  font-size: 1rem;
  letter-spacing: 1px;
}

.cta-button-secondary:hover {
  background: #2c3e50;
  color: white;
}

.cta-center {
  text-align: center;
  margin-top: 3rem;
}

/* Section Styles */
section {
  padding: 6rem 2rem;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #1a1a1a;
  font-weight: 300;
  letter-spacing: 2px;
}

/* Intro Section */
.intro-section {
  background: white;
}

.intro-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.intro-text {
  font-size: 1.15rem;
  color: #555;
  margin-bottom: 1.5rem;
  line-height: 1.9;
}

/* Services Preview */
.services-preview {
  background: #f8f8f8;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.service-card {
  padding: 2.5rem;
  background: white;
  border: 1px solid #e8e8e8;
  transition: all 0.3s ease;
  position: relative;
  text-align: center;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: #8b7355;
  transition: width 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.service-card:hover::before {
  width: 100%;
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.service-card p {
  color: #666;
  line-height: 1.8;
}

/* Values Section */
.values-section {
  background: white;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.value-item {
  text-align: center;
  padding: 2rem;
}

.value-item h3 {
  font-size: 1.5rem;
  color: #8b7355;
  margin-bottom: 1rem;
}

.value-item p {
  color: #666;
  line-height: 1.8;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
  color: white;
  text-align: center;
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 300;
}

.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Footer */
footer {
  background: #1a252f;
  color: white;
  padding: 3rem 2rem 1rem;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  margin-bottom: 1rem;
  color: #8b7355;
  letter-spacing: 1px;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #8b7355;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  opacity: 0.6;
  font-size: 0.9rem;
  margin: 0.5rem 0;
}

/* Stili specifici per la pagina Chi Siamo */
.lawyer-profile {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  border-radius: 8px;
  padding: 3rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid #e8e8e8;
}

.profile-photo {
  text-align: center;
}

.lawyer-photo {
  width: 250px;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  border: 3px solid #8b7355;
  box-shadow: 0 8px 25px rgba(139, 115, 85, 0.2);
  transition: all 0.3s ease;
}

.lawyer-photo:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 35px rgba(139, 115, 85, 0.3);
}

.lawyer-name {
  font-size: 2.2rem;
  color: #2c3e50;
  margin-bottom: 0.5rem;
  font-weight: 300;
  letter-spacing: 1px;
}

.lawyer-title {
  font-size: 1.1rem;
  color: #8b7355;
  margin-bottom: 2rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.profile-details h4,
.profile-specializations h4,
.profile-experience h4 {
  color: #2c3e50;
  font-size: 1.3rem;
  margin: 2rem 0 1.5rem 0;
  font-weight: 300;
  letter-spacing: 1px;
  border-bottom: 2px solid #8b7355;
  padding-bottom: 0.5rem;
}

.career-timeline {
  list-style: none;
  padding: 0;
  border-left: 2px solid #8b7355;
  margin-left: 1rem;
  position: relative;
}

.career-timeline li {
  position: relative;
  padding: 0.8rem 0 0.8rem 2rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.career-timeline li:hover {
  color: #2c3e50;
  background: rgba(139, 115, 85, 0.05);
  border-radius: 4px;
  margin-left: -0.5rem;
  padding-left: 2.5rem;
}

.career-timeline li::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 1.2rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #8b7355;
  box-shadow: 0 0 0 3px white, 0 0 0 4px #8b7355;
  transition: all 0.3s ease;
}

.career-timeline li:hover::before {
  transform: scale(1.2);
  background: #6d5a44;
}

.specializations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.specialization-item {
  background: #f8f8f8;
  padding: 2rem 1.5rem;
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid #e8e8e8;
  position: relative;
}

.specialization-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: #8b7355;
  border-radius: 8px 8px 0 0;
  transition: width 0.3s ease;
}

.specialization-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  background: white;
}

.specialization-item:hover::before {
  width: 100%;
}

.spec-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.specialization-item:hover .spec-icon {
  transform: scale(1.1);
}

.specialization-item h5 {
  color: #2c3e50;
  margin: 0.8rem 0;
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.5px;
}

.specialization-item p {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
  line-height: 1.6;
}

.profile-experience p {
  line-height: 1.8;
  color: #555;
  font-size: 1rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  .lawyer-profile {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
    padding: 2.5rem;
  }

  .lawyer-photo {
    width: 200px;
    height: 240px;
  }

  .specializations-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .nav-links {
    display: none;
  }

  section {
    padding: 4rem 1.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Chi Siamo responsive */
  .lawyer-profile {
    padding: 2rem;
  }

  .lawyer-photo {
    width: 180px;
    height: 220px;
  }

  .lawyer-name {
    font-size: 1.8rem;
  }

  .specializations-grid {
    grid-template-columns: 1fr;
  }

  .career-timeline {
    margin-left: 0.5rem;
  }

  /* Logo responsive */
  .logo-img {
    height: 25px;
  }

  .logo-text {
    font-size: 0.9em;
  }

  .hero-logo-img {
    height: 45px;
  }
}

@media (max-width: 480px) {
  .logo-img {
    height: 20px;
  }

  .hero-logo-img {
    height: 35px;
  }

  .lawyer-photo {
    width: 150px;
    height: 180px;
  }

  .lawyer-name {
    font-size: 1.6rem;
  }

  .specialization-item {
    padding: 1.5rem 1rem;
  }
}
/* Stili per la pagina Contatti */

.contact-section {
  background: white;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-info {
  display: grid;
  gap: 2rem;
}

.contact-card {
  background: #f8f8f8;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid #e8e8e8;
  position: relative;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: #8b7355;
  border-radius: 8px 8px 0 0;
  transition: width 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  background: white;
}

.contact-card:hover::before {
  width: 100%;
}

.contact-icon {
  font-size: 2.5rem;
  color: #8b7355;
  margin-bottom: 1rem;
}

.contact-card h3 {
  color: #2c3e50;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: 0.5px;
}

.contact-card p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.contact-card a {
  color: #8b7355;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-card a:hover {
  color: #6d5a44;
}

.contact-card small {
  color: #999;
  font-size: 0.9rem;
}

/* Contact Form */
.contact-form-container {
  background: #f8f8f8;
  padding: 3rem;
  border-radius: 8px;
  border: 1px solid #e8e8e8;
}

.form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.form-header h3 {
  color: #2c3e50;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  font-weight: 300;
  letter-spacing: 1px;
}

.form-header p {
  color: #666;
}

.contact-form {
  max-width: 100%;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #2c3e50;
  font-weight: 400;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  font-family: 'Georgia', serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #8b7355;
  box-shadow: 0 0 0 2px rgba(139, 115, 85, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  cursor: pointer;
  color: #666;
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.checkbox-label a {
  color: #8b7355;
  text-decoration: none;
}

.checkbox-label a:hover {
  text-decoration: underline;
}

/* Emergency Section */
.emergency-section {
  background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
  color: white;
  padding: 4rem 2rem;
}

.emergency-card {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.1);
  padding: 2.5rem;
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.emergency-icon {
  font-size: 3rem;
  color: #8b7355;
  flex-shrink: 0;
}

.emergency-content {
  text-align: center;
}

.emergency-content h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  font-weight: 300;
  letter-spacing: 1px;
}

.emergency-content p {
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.emergency-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: #8b7355;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.emergency-button:hover {
  background: #6d5a44;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(139, 115, 85, 0.3);
}

.emergency-content small {
  display: block;
  margin-top: 1rem;
  opacity: 0.7;
  font-size: 0.9rem;
}

/* Responsive per Contatti */
@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .emergency-card {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .contact-form-container {
    padding: 2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-info {
    gap: 1.5rem;
  }

  .contact-card {
    padding: 1.5rem;
  }

  .emergency-card {
    padding: 2rem;
  }
}

@media (max-width: 480px) {
  .contact-form-container {
    padding: 1.5rem;
  }

  .contact-card {
    padding: 1.2rem;
  }

  .emergency-content h3 {
    font-size: 1.4rem;
  }
}
/* === MENU MOBILE === */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 20px;
  cursor: pointer;
  z-index: 1000;
}

.hamburger span {
  background: #000;
  height: 3px;
  width: 100%;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* animazione hamburger */
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* nav-links animazione */
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    background: white;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease;
  }

  .nav-links.active {
    max-height: 300px;
    opacity: 1;
    padding: 1rem 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }

  .nav-links li {
    width: 100%;
    margin: 10px 0;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 0.5rem 0;
  }
}
/* Animazione hamburger */
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}
/* ===== MAPPA RESPONSIVA ===== */
.map-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 ratio */
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin-top: 10px;
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 768px) {
  .map-container {
    padding-bottom: 70%; /* leggermente più alta su mobile */
  }
}



