/* AVVOCÀ - CSS BASE COMUNE */

/* Reset e stili base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  overflow-x: hidden;
  max-width: 100vw;
}

/* Main content spacing per navbar fissa */
.main-content {
  padding-top: 70px;
  min-height: calc(100vh - 70px);
  display: flex;
  flex-direction: column;
}

/* Responsive padding per mobile */
@media (max-width: 768px) {
  .main-content {
    padding-top: 60px;
    min-height: calc(100vh - 60px);
  }
}

@media (max-width: 480px) {
  .main-content {
    padding-top: 55px;
    min-height: calc(100vh - 55px);
  }
}

/* Container comune */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  padding-bottom: 50px;

}

/* Bottoni comuni */
.btn {
  padding: 0.8rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background-color: #667eea;
  color: white;
}

.btn-primary:hover {
  background-color: #5a67d8;
  transform: translateY(-2px);
  color: white;
  text-decoration: none;
}

.btn-outline {
  background-color: transparent;
  color: #667eea;
  border: 2px solid #667eea;
}

.btn-outline:hover {
  background-color: #667eea;
  color: white;
  text-decoration: none;
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

.btn-text {
  background: none;
  border: none;
  color: #667eea;
  text-decoration: underline;
  cursor: pointer;
  font-size: 1rem;
}

/* Sezione Hero comune */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero-subtitle {
  font-size: 1.3rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* Form styles comuni */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #333;
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #667eea;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

/* Messaggi di errore/successo comuni */
.error-message {
  background: #f8d7da;
  color: #721c24;
  padding: 0.75rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  border: 1px solid #f5c6cb;
}

.success-message {
  background: #d4edda;
  color: #155724;
  padding: 0.75rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  border: 1px solid #c3e6cb;
}

/* Responsive comune */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }
}

/* === FOOTER STYLES === */
.footer {
  background-color: #333 !important;
  color: white !important;
  padding: 3rem 0 1rem 0 !important;
  margin-top: auto !important;
}

.footer-container {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
}

.footer-content {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
  gap: 2rem !important;
  margin-bottom: 2rem !important;
}

.footer-section .footer-brand {
  display: flex !important;
  align-items: center !important;
  margin-bottom: 1rem !important;
}

.footer-section .footer-logo {
  height: 40px !important;
  border-radius: 8px !important;
  object-fit: cover !important;
  margin: 0 auto !important;
  display: block !important;
}

.footer-section h4 {
  color: #667eea !important;
  margin-bottom: 1rem !important;
  font-size: 1.2rem !important;
}

.footer-section p {
  margin-bottom: 0.5rem !important;
  color: #ccc !important;
}

.footer-section ul {
  list-style: none !important;
}

.footer-section ul li {
  margin-bottom: 0.5rem !important;
}

.footer-section ul li a {
  color: #ccc !important;
  text-decoration: none !important;
  transition: color 0.3s ease !important;
}

.footer-section ul li a:hover {
  color: #667eea !important;
}

.footer-bottom {
  border-top: 1px solid #555 !important;
  padding-top: 1rem !important;
  text-align: center !important;
  color: #ccc !important;
}

/* Footer responsive design */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr !important;
    text-align: center !important;
  }
}
