:root {
  /* Brand Palette */
  --black: #000000;
  --charcoal: #231F20;
  --pink: #F48EB0;
  --mauve: #CB7996;
  --plum: #5E4E53;
  --white: #FFFFFF;

  /* Functional Colors */
  --bg-color: var(--black);
  --text-color: var(--white);
  --muted-text: rgba(255, 255, 255, 0.7);
  --border-color: rgba(255, 255, 255, 0.1);
  --accent-glow: rgba(244, 142, 176, 0.05);
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
}

/* Accessibility */
:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
  color: var(--muted-text);
}

/* Buttons & Links */
a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s ease;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--pink);
  color: var(--charcoal);
}

.btn-primary:hover {
  background-color: var(--mauve);
  transform: translateY(-2px);
}

/* Layout Utilities */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

section {
  padding: 5rem 0;
}

/* Header & Navbar */
.announcement-bar {
  background-color: var(--plum);
  text-align: center;
  padding: 0.5rem;
  font-size: 0.9rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.2rem;
}

.logo img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--pink);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Decor Elements */
.bracket-frame {
  position: relative;
  padding: 2rem;
  border-left: 1px solid var(--plum);
  border-right: 1px solid var(--plum);
}

.bracket-frame::before,
.bracket-frame::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 1px;
  background-color: var(--plum);
  left: 0;
}

.bracket-frame::before {
  top: 0;
}

.bracket-frame::after {
  bottom: 0;
}

.bracket-frame-right::before,
.bracket-frame-right::after {
  left: auto;
  right: 0;
}

.pink-tag {
  display: inline-block;
  background-color: var(--pink);
  color: var(--charcoal);
  padding: 0.2rem 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 0.5rem;
  text-transform: uppercase;
}

/* Hero Section */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 150%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 600px;
  position: relative;
  z-index: 1;
}

.hero-tag {
  color: var(--pink);
  border: 1px solid var(--pink);
  padding: 0.5rem 1rem;
  display: inline-block;
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.hero h1 {
  margin-bottom: 0.5rem;
}

.hero-lead {
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 2rem;
}

.conversion-box {
  border: 1px solid var(--plum);
  padding: 2rem;
  background-color: rgba(35, 31, 32, 0.5);
  /* charcoal transparent */
  margin-bottom: 2rem;
}

.hero-features {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--muted-text);
  margin-top: 1rem;
}

.feature-bullet::before {
  content: '•';
  color: var(--pink);
  margin-right: 0.5rem;
}

/* Sections */
.bg-charcoal {
  background-color: var(--charcoal);
}

/* Chi Siamo */
.chi-siamo-text {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.1rem;
}

/* Valori & Servizi grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.card {
  background-color: rgba(255, 255, 255, 0.03);
  padding: 2rem;
  border: 1px solid var(--border-color);
  transition: border-color 0.3s ease;
}

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

.card h3 {
  color: var(--white);
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.card h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--pink);
}

.card ul {
  list-style: none;
  margin-top: 1rem;
}

.card li {
  color: var(--muted-text);
  margin-bottom: 0.5rem;
  padding-left: 1rem;
  position: relative;
}

.card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 4px;
  height: 4px;
  background-color: var(--pink);
  border-radius: 50%;
}

/* Kosmail Section */
.kosmail-section {
  text-align: center;
}

.faq-accordion {
  max-width: 800px;
  margin: 3rem auto 0;
  text-align: left;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--white);
  padding: 1.5rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-icon {
  font-size: 1.5rem;
  color: var(--pink);
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: var(--muted-text);
}

.faq-answer p {
  padding-bottom: 1.5rem;
}

.active .faq-icon {
  transform: rotate(45deg);
}

.active+.faq-answer {
  max-height: 200px;
}

/* Contatti */
.header-group {
  text-align: center;
  margin-bottom: 2rem;
}

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

.contact-info ul {
  list-style: none;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.contact-info li {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  font-size: 1.1rem;
}

/* Footer */
footer {
  background-color: var(--charcoal);
  padding: 3rem 0;
  font-size: 0.9rem;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.footer-links a {
  color: var(--muted-text);
  border-bottom: 1px solid transparent;
}

.footer-links a:hover {
  border-color: var(--muted-text);
}

.legal-text {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--pink);
  color: var(--charcoal);
  padding: 1rem 2rem;
  border-radius: 4px;
  transform: translateY(150%);
  transition: transform 0.3s ease;
  z-index: 2000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.toast.show {
  transform: translateY(0);
}

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

  .mobile-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background-color: var(--black);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}