:root {
  --primary: #4c1d95; /* Deep Violet */
  --accent: #ff5722; /* Coral Orange */
  --accent-hover: #e64a19;
  --dark: #1f2937;
  --light: #f3f4f6;
  --white: #ffffff;
  --gray: #9ca3af;
  --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --shadow: 0 10px 30px rgba(76, 29, 149, 0.1);
  --radius: 12px;
  --container: 1200px;

  --font-head: "Montserrat", sans-serif;
  --font-body: "Open Sans", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--dark);
  background-color: #fafafa;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}
ul {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary);
}

h1 {
  font-size: 3.5rem;
  margin-bottom: 25px;
  background: -webkit-linear-gradient(45deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: #4b5563;
}
.center {
  text-align: center;
}

/* Buttons */
.btn-gradient {
  padding: 12px 30px;
  background: var(--gradient);
  color: var(--white);
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
  transition: 0.3s;
}
.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.6);
}

.btn-primary {
  display: inline-block;
  padding: 16px 40px;
  background-color: var(--accent);
  color: var(--white);
  border-radius: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: 0.3s;
}
.btn-primary:hover {
  background-color: var(--accent-hover);
  box-shadow: 0 10px 20px rgba(255, 87, 34, 0.3);
}

.btn-white-outline {
  display: inline-block;
  padding: 16px 40px;
  border: 2px solid var(--primary);
  color: var(--primary);
  border-radius: 8px;
  font-weight: 700;
  transition: 0.3s;
}
.btn-white-outline:hover {
  background-color: var(--primary);
  color: var(--white);
}

.btn-sm {
  display: inline-block;
  padding: 8px 20px;
  background: #e0e7ff;
  color: var(--primary);
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}
.btn-sm:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-white {
  display: inline-block;
  padding: 15px 40px;
  background: var(--white);
  color: var(--primary);
  border-radius: 50px;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.btn-white:hover {
  transform: scale(1.05);
}

.link-coral {
  color: var(--accent);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.link-coral:hover {
  gap: 10px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 15px 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-icon svg {
  width: 40px;
  height: 40px;
}
.logo-icon path {
  stroke: var(--primary);
}
.logo-icon circle {
  stroke: var(--accent);
}
.logo-text {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--primary);
}

.nav-menu {
  display: flex;
  gap: 30px;
}
.nav-link {
  font-weight: 600;
  font-size: 1rem;
  color: var(--dark);
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: 0.3s;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Burger */
.burger-menu {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
}
.bar {
  width: 28px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

/* Mobile Menu */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--white);
  z-index: 2000;
  transform: translateX(100%);
  transition: 0.4s ease;
  display: flex;
  flex-direction: column;
  padding: 20px;
}
.mobile-nav.active {
  transform: translateX(0);
}

.mn-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  border-bottom: 1px solid #eee;
  padding-bottom: 20px;
}
.mn-logo {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary);
}
.mn-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
}

.mn-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.mn-list a {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  font-family: var(--font-head);
}
.mn-list a:hover {
  color: var(--accent);
  padding-left: 10px;
}

/* Hero */
.hero {
  position: relative;
  padding-top: 150px;
  padding-bottom: 100px;
  min-height: 100vh;
  overflow: hidden;
}
.hero-bg-shape {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: linear-gradient(
    135deg,
    rgba(76, 29, 149, 0.05) 0%,
    rgba(255, 87, 34, 0.05) 100%
  );
  border-radius: 50%;
  z-index: -1;
  filter: blur(80px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  background: #ede9fe;
  color: var(--primary);
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 20px;
}

.hero-btns {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.hero-img {
  position: relative;
  height: 500px;
}
.img-card {
  position: absolute;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}
.main-img {
  width: 80%;
  height: 400px;
  top: 0;
  left: 0;
  z-index: 1;
}
.main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.float-img {
  width: 50%;
  height: 250px;
  bottom: 20px;
  right: 0;
  z-index: 2;
  border: 5px solid var(--white);
}
.float-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stat-bubble {
  position: absolute;
  top: 100px;
  right: 20px;
  z-index: 3;
  background: var(--white);
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  text-align: center;
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
.stat-bubble strong {
  display: block;
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
}
.stat-bubble span {
  font-size: 0.8rem;
  color: var(--gray);
}

/* Methodology */
.sec-method {
  padding: 100px 0;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.method-visual img {
  border-radius: 20px;
  box-shadow: var(--shadow);
}

/* Tracks */
.bg-light {
  background-color: #f3f4f6;
}
.section {
  padding: 100px 0;
}
.sec-head {
  margin-bottom: 60px;
  max-width: 800px;
}
.sec-head.center {
  margin-left: auto;
  margin-right: auto;
}

.tracks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.track-card {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  transition: 0.3s;
  position: relative;
  overflow: hidden;
}
.track-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow);
}
.track-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gradient);
}
.tc-icon {
  width: 60px;
  height: 60px;
  background: #f3e8ff;
  color: var(--primary);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
}
.track-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

/* Italy */
.italy-wrap {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 60px;
  align-items: center;
}
.italy-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.stat-box {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  border-left: 5px solid var(--accent);
}
.stat-box strong {
  display: block;
  font-size: 2rem;
  color: var(--dark);
}
.stat-box span {
  color: var(--gray);
  font-weight: 600;
}

.check-list {
  margin-top: 20px;
}
.check-list li {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  font-weight: 600;
}
.check-list i {
  color: var(--accent);
}

/* Quiz */
.bg-gradient {
  background: var(--gradient);
  color: var(--white);
}
.quiz-container {
  display: flex;
  justify-content: center;
  text-align: center;
}
.quiz-content h2,
.quiz-content p {
  color: var(--white);
}
.quiz-content h2 {
  font-size: 3rem;
}

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.step-item {
  position: relative;
  padding: 30px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid #eee;
  transition: 0.3s;
}
.step-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}
.step-num {
  font-size: 3rem;
  font-weight: 800;
  color: #f3e8ff;
  position: absolute;
  top: 10px;
  right: 20px;
}
.step-item h3 {
  margin-top: 20px;
}

/* FAQ */
.narrow-width {
  max-width: 800px;
  margin: 0 auto;
}
.accordion-wrap {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.acc-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.acc-header {
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 1.1rem;
  transition: 0.3s;
}
.acc-header:hover {
  background: #fafafa;
}
.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: 0.3s ease;
}
.acc-body p {
  padding: 0 20px 20px;
  color: #666;
}

.acc-card.active .acc-header {
  color: var(--primary);
}
.acc-card.active .acc-header i {
  transform: rotate(45deg);
  transition: 0.3s;
}

/* Contact */
.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.info-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.info-item {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.1rem;
  font-weight: 600;
}
.info-item i {
  color: var(--accent);
}

.form-card {
  background: var(--white);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.form-line {
  margin-bottom: 20px;
}
.form-line label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 0.9rem;
}
.form-line input {
  width: 100%;
  padding: 15px;
  border: 2px solid #eee;
  border-radius: 8px;
  font-size: 1rem;
  transition: 0.3s;
}
.form-line input:focus {
  outline: none;
  border-color: var(--primary);
}

.captcha-row input {
  width: 100px;
}

.checkbox-area {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 30px;
}
.checkbox-area label {
  font-size: 0.85rem;
  line-height: 1.4;
  color: #666;
}
.checkbox-area a {
  color: var(--primary);
  text-decoration: underline;
}

.btn-submit {
  width: 100%;
  padding: 18px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-weight: 800;
  font-size: 1.1rem;
  cursor: pointer;
  transition: 0.3s;
}
.btn-submit:hover {
  background: var(--dark);
}

/* Footer */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 80px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 60px;
}

.f-logo {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 20px;
  display: block;
}
.brand-item p {
  color: #9ca3af;
}

.f-item h4 {
  color: var(--accent);
  margin-bottom: 25px;
  font-size: 1.1rem;
}
.f-item ul li {
  margin-bottom: 12px;
}
.f-item a {
  color: #d1d5db;
  transition: 0.3s;
}
.f-item a:hover {
  color: var(--white);
  padding-left: 5px;
}

.contact-link {
  color: var(--white) !important;
  font-weight: 700;
  text-decoration: underline;
}

.footer-copy {
  text-align: center;
  border-top: 1px solid #374151;
  padding-top: 20px;
  color: #6b7280;
  font-size: 0.9rem;
}

/* Cookie */
.cookie-popup {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 300px;
  background: var(--white);
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  display: none;
  flex-direction: column;
  gap: 15px;
  z-index: 3000;
}
.cp-content p {
  margin: 0;
  font-size: 0.9rem;
}
.btn-sm-coral {
  align-self: flex-end;
  padding: 8px 20px;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 20px;
  font-weight: 700;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 1024px) {
  .nav-menu,
  .header-right .btn-gradient {
    display: none;
  }
  .burger-menu {
    display: flex;
  }
  .hero-grid,
  .grid-2,
  .italy-wrap,
  .contact-row,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-img {
    height: 400px;
    order: -1;
  }
  .tracks-grid,
  .steps-grid {
    grid-template-columns: 1fr 1fr;
  }
  h1 {
    font-size: 2.5rem;
  }
  .hero-btns {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 600px) {
  .tracks-grid,
  .steps-grid,
  .italy-stats {
    grid-template-columns: 1fr;
  }
}

.pages {
  padding: 120px 0;
}

.pages-wrap {
  max-width: 1000px;
  padding: 0 10px;
  margin: 0 auto 20px;
}

.pages h1 {
  font-size: 40px;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 40px;
  text-align: center;
}

.text-wrapper {
  background: #f8fafc;
  padding: 50px 40px;
  border-radius: 20px;
  line-height: 1.8;
}

.text-wrapper h2 {
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
  margin-top: 40px;
  margin-bottom: 15px;
  border-bottom: 2px solid rgba(99, 102, 241, 0.2);
  padding-bottom: 5px;
}

.text-wrapper h3 {
  color: #000000;
  margin-bottom: 20px;
}

.text-wrapper p {
  color: #64748b;
  margin-bottom: 20px;
}

.text-wrapper ul {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.text-wrapper ul li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 15px;
  color: #1e293b;
}

.text-wrapper ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  font-size: 20px;
  line-height: 1;
  color: var(--primary);
  top: 0;
}

.text-wrapper strong {
  color: var(--color-error);
}

.text-wrapper a {
  color: #001eff;
  text-decoration: underline;
  font-weight: 600;
}

.text-wrapper ol {
  display: flex;
  flex-direction: column;
  padding: 20px;
  color: #000000;
}

.margin {
  margin: 120px 0 50px;
  font-size: 40px;
  color: var(--accent);
}

@media (max-width: 768px) {
  .pages {
    padding: 100px 0 60px;
  }
  .pages h1 {
    font-size: 22px;
    margin-bottom: 30px;
  }
  .text-wrapper {
    padding: 30px 20px;
  }
  .text-wrapper h2 {
    font-size: 24px;
    margin-top: 30px;
  }
  .margin {
    font-size: 28px;
  }
}

/* --- CONTACT PAGE SPECIFIC STYLES --- */
.contact-page-main {
  padding-top: 180px;
  padding-bottom: 120px;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cp-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 400;
  letter-spacing: -2px;
  color: var(--accent);
  margin-bottom: 30px;
  line-height: 1;
}

.cp-divider {
  width: 60px;
  height: 1px;
  background-color: var(--accent);
  margin: 0 auto 40px auto;
}

.cp-status {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--text-muted);
  border: 1px solid var(--line);
  display: inline-block;
  padding: 10px 20px;
  margin-bottom: 60px;
  background: #fcfcfc;
}

.cp-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.cp-label {
  font-family: var(--font-sans);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: var(--text-muted);
}

.cp-phone-link {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--accent);
  line-height: 1.2;
  border-bottom: 2px solid transparent;
  transition: 0.3s;
  margin-bottom: 40px;
}

.cp-phone-link:hover {
  border-bottom-color: var(--accent);
  opacity: 0.8;
}

.cp-address-box {
  border-top: 1px solid var(--line);
  padding-top: 40px;
  width: 100%;
  max-width: 400px;
}

.cp-addr {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 10px;
}

.cp-email {
  font-family: var(--font-sans);
  color: var(--text-muted);
  font-size: 1rem;
}

.cp-email a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cp-email a:hover {
  color: var(--accent);
}

@media (max-width: 600px) {
  .contact-page-main {
    padding-top: 140px;
    text-align: center;
  }

  .cp-phone-link {
    font-size: 2rem;
  }
}
