/* L'Italia com'è - Corporate Website Styles */
/* Warm Mediterranean Editorial Theme */

:root {
  --primary: #2D3A2F;
  --primary-light: #3d4f42;
  --accent: #C85A32;
  --accent-gold: #D4AF37;
  --bg: #FDFBF7;
  --bg-alt: #F5F0E8;
  --text: #2C3E50;
  --text-muted: #5A6A7A;
  --white: #FFFFFF;
  --border: #E8E2D9;
  --shadow: 0 4px 20px rgba(45, 58, 47, 0.08);
  --shadow-lg: 0 10px 40px rgba(45, 58, 47, 0.12);
  --radius: 8px;
  --transition: 0.3s ease;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --max-width: 1200px;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  color: var(--primary);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary);
  line-height: 1.3;
  font-weight: 600;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.25rem, 3vw, 1.6rem); margin-bottom: 0.75rem; }

p { margin-bottom: 1rem; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ========== HEADER ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.header-top {
  background: var(--primary);
  color: var(--white);
  font-size: 0.85rem;
  padding: 0.4rem 0;
}

.header-top .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.header-top a {
  color: var(--white);
  opacity: 0.9;
}

.header-top a:hover {
  opacity: 1;
  color: var(--accent-gold);
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  align-items: center;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  transition: var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--accent);
  background: var(--bg-alt);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  line-height: 1.2;
}

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

.btn-primary:hover {
  background: #b04e2a;
  border-color: #b04e2a;
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

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

.btn-gold {
  background: var(--accent-gold);
  color: var(--primary);
  border-color: var(--accent-gold);
}

.btn-gold:hover {
  background: #c09d2e;
  color: var(--primary);
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(45,58,47,0.75) 0%, rgba(45,58,47,0.5) 100%),
              url('https://images.unsplash.com/photo-1516483638261-f4dbaf036963?w=1600&q=80') center/cover no-repeat;
  color: var(--white);
  padding: 4rem 0;
}

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

.hero h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero p {
  font-size: 1.15rem;
  opacity: 0.95;
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ========== SECTIONS ========== */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.badge {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  margin-bottom: 0.75rem;
}

/* ========== VALUE MATRIX ========== */
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.value-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.value-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  background: var(--bg-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent);
}

.value-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.value-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ========== ROADMAP ========== */
.roadmap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  counter-reset: step;
}

.roadmap-step {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  border: 1px solid var(--border);
  text-align: center;
}

.roadmap-step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 50%;
  margin: 0 auto 1rem;
}

.roadmap-step h3 {
  font-size: 1.1rem;
}

.roadmap-step p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ========== SHOWCASE GRID ========== */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.showcase-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow);
}

.showcase-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.showcase-card:hover img {
  transform: scale(1.05);
}

.showcase-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(45,58,47,0.85) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

.showcase-overlay h3 {
  color: var(--white);
  font-size: 1.2rem;
  margin: 0;
}

/* ========== EXPERIENCE CARDS ========== */
.exp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}

.exp-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.exp-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

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

.exp-body {
  padding: 1.5rem;
}

.exp-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.exp-tag {
  font-size: 0.75rem;
  background: var(--bg-alt);
  color: var(--primary);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-weight: 500;
}

.exp-specs {
  list-style: none;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.exp-specs li {
  display: flex;
  justify-content: space-between;
  padding: 0.25rem 0;
}

.exp-specs strong {
  color: var(--text);
}

/* ========== FORMS ========== */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--white);
  color: var(--text);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200, 90, 50, 0.15);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

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

.consent-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.consent-group input[type="checkbox"] {
  margin-top: 0.3rem;
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.consent-group label {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.5;
}

.form-message {
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  display: none;
}

.form-message.success {
  display: block;
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

.form-message.error {
  display: block;
  background: #fbe9e7;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

/* ========== CONTACT INFO ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-details {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--bg-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  font-size: 1.1rem;
}

.contact-item h4 {
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.contact-item p,
.contact-item a {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
}

.map-placeholder {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  text-align: center;
  padding: 2rem;
  margin-top: 1.5rem;
}

/* ========== TEAM ========== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.team-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.team-avatar {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.25rem;
  background: var(--bg-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary);
}

.team-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.team-role {
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.team-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* ========== SERVICE MODULES ========== */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.service-module {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.service-img {
  min-height: 220px;
  background-size: cover;
  background-position: center;
}

.service-content {
  padding: 2rem 2rem 2rem 0;
}

.service-content h3 {
  margin-bottom: 0.75rem;
}

.service-content ul {
  margin: 1rem 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.service-content li {
  margin-bottom: 0.4rem;
}

/* ========== LEGAL PAGES ========== */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.legal-content h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal-content h3 {
  margin-top: 1.5rem;
  font-size: 1.15rem;
}

.legal-content ul,
.legal-content ol {
  margin: 0.75rem 0 1rem 1.5rem;
}

.legal-content li {
  margin-bottom: 0.4rem;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.legal-content th,
.legal-content td {
  border: 1px solid var(--border);
  padding: 0.75rem;
  text-align: left;
}

.legal-content th {
  background: var(--bg-alt);
  font-weight: 600;
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.85);
  padding: 3.5rem 0 0;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 1rem;
  display: inline-block;
}

.footer-brand p {
  opacity: 0.8;
  font-size: 0.875rem;
  margin-bottom: 0;
}

.footer-col h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: rgba(255,255,255,0.75);
  font-size: 0.875rem;
}

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

.footer-legal {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 1.5rem 0;
  font-size: 0.8rem;
  opacity: 0.8;
}

.footer-legal-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-bottom: 1rem;
}

.footer-legal-grid span {
  white-space: nowrap;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
}

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

/* ========== PAGE HERO (inner pages) ========== */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 3.5rem 0;
  text-align: center;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.page-hero p {
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ========== COOKIE BANNER ========== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--white);
  border-top: 3px solid var(--accent);
  box-shadow: 0 -4px 30px rgba(0,0,0,0.15);
  padding: 1.5rem;
  display: none;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.visible {
  display: block;
  transform: translateY(0);
}

.cookie-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  justify-content: space-between;
}

.cookie-text {
  flex: 1;
  min-width: 280px;
  font-size: 0.9rem;
  color: var(--text);
}

.cookie-text a {
  font-weight: 600;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cookie-actions .btn {
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
}

.cookie-customize {
  display: none;
  width: 100%;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.cookie-customize.visible {
  display: block;
}

.cookie-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.cookie-option input {
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
}

/* ========== GUIDE CONTENT ========== */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.guide-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.guide-card h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.15rem;
}

.guide-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ========== CTA SECTION ========== */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, #1a2420 100%);
  color: var(--white);
  text-align: center;
  padding: 4rem 0;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-section p {
  opacity: 0.9;
  max-width: 550px;
  margin: 0 auto 2rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .service-module {
    grid-template-columns: 1fr;
  }
  .service-img {
    min-height: 180px;
  }
  .service-content {
    padding: 1.5rem;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .main-nav.open {
    max-height: 500px;
  }
  .main-nav ul {
    flex-direction: column;
    padding: 1rem;
    gap: 0;
  }
  .main-nav a {
    display: block;
    padding: 0.75rem 1rem;
    width: 100%;
  }
  .header-main .btn {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: 60vh;
    padding: 3rem 0;
  }
}

@media (max-width: 480px) {
  .cookie-actions {
    width: 100%;
  }
  .cookie-actions .btn {
    flex: 1;
    min-width: 120px;
  }
}
