:root {
  --primary: #cce135;
  --primary-hover: #e0f64c;
  --bg-dark: #111111;
  --bg-card: #1c1c1c;
  --bg-card-hover: #222222;
  --text-light: #ffffff;
  --text-muted: #999999;
  --font-primary: 'Kensington', sans-serif;
  --font-secondary: 'Poppins', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-family: var(--font-secondary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-top: 80px;
}

.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--bg-dark);
  z-index: 1000;
  border-bottom: 1px solid #222;
}

h1, h2, h3, h4, h5, h6, .oswald {
  font-family: var(--font-primary);
  text-transform: uppercase;
}
a { text-decoration: none; color: inherit; }

/* Utilities */
.text-primary { color: var(--primary) !important; }
.text-light { color: var(--text-light) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-center { text-align: center; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.ml-10 { margin-left: 10px; }

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

.section {
  padding: 80px 0;
  border-bottom: 1px solid #222;
}
.section-header {
  margin-bottom: 50px;
}
.section-title {
  font-size: 42px;
  margin-bottom: 10px;
  letter-spacing: 1px;
}
.section-subtitle {
  font-size: 18px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}
.btn-primary {
  background-color: var(--primary);
  color: #000;
  border: 1px solid var(--primary);
}
.btn-primary:hover {
  background-color: var(--primary-hover);
}
.btn-outline-primary {
  background-color: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}
.btn-outline-primary:hover {
  background-color: var(--primary);
  color: #000;
}
.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 0;
}
.navbar .logo {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 1px;
}
.navbar .btn { padding: 10px 20px; font-size: 14px; }

/* Hero */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background-image: url('Blocco%201%20.webp');
  background-size: cover;
  background-position: center;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.95) 0%, rgba(17,17,17,0.85) 50%, rgba(17,17,17,0.6) 100%);
  z-index: 1;
}
.hero-container {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.hero-content {
  flex: 1;
  max-width: 600px;
}
.hero-subtitle {
  font-size: 14px;
  letter-spacing: 4px;
  font-weight: 600;
  margin-bottom: 25px;
  display: block;
}
.hero-title {
  font-size: 80px;
  line-height: 1.15;
  margin-bottom: 25px;
  letter-spacing: -1px;
}
.hero-description {
  font-size: 18px;
  max-width: 480px;
  margin-bottom: 40px;
  line-height: 1.6;
}

/* Hero Form */
.hero-form-wrapper {
  background-color: var(--bg-card);
  padding: 40px;
  border-radius: 4px;
  width: 420px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.form-title {
  font-size: 26px;
  margin-bottom: 25px;
  letter-spacing: 1px;
}
.form-group {
  margin-bottom: 15px;
}
.form-group input {
  width: 100%;
  padding: 16px;
  background-color: transparent;
  border: 1px solid #333;
  color: var(--text-light);
  font-family: var(--font-secondary);
  border-radius: 2px;
  outline: none;
  font-size: 15px;
  transition: border-color 0.3s;
}
.form-group input:focus {
  border-color: var(--primary);
}
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 25px;
  margin-top: 20px;
}
.form-checkbox input { margin-top: 3px; }
.form-checkbox label { font-size: 13px; line-height: 1.5; cursor: pointer; color: var(--text-muted); }
.form-footer-text {
  font-size: 13px;
  text-align: center;
  color: var(--text-muted);
  margin-top: 20px;
}

/* Grid & Cards */
.grid {
  display: grid;
  gap: 25px;
}
.corsi-grid {
  grid-template-columns: repeat(4, 1fr);
}
.servizi-grid {
  grid-template-columns: repeat(3, 1fr);
}
.plus-grid {
  grid-template-columns: repeat(5, 1fr);
}

.card {
  background-color: var(--bg-card);
  padding: 35px 25px;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}
.card:hover {
  background-color: var(--bg-card-hover);
  transform: translateY(-5px);
  border-color: var(--primary);
}
.card-title {
  font-size: 22px;
  margin-bottom: 12px;
  letter-spacing: 1px;
}
.card-title-sm {
  font-size: 16px;
  margin-bottom: 10px;
  letter-spacing: 1px;
}
.card-desc {
  font-size: 15px;
  line-height: 1.6;
}
.icon-wrapper {
  font-size: 36px;
  margin-bottom: 20px;
}
.card-icon-center {
  text-align: center;
}
.box-icon {
  display: inline-flex;
  width: 60px;
  height: 60px;
  border: 1px solid var(--primary);
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
}

/* Video Plus */
.video-placeholder {
  height: 400px;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 4px;
  overflow: hidden;
  background-color: #000;
}

/* Location */
.location-flex {
  display: flex;
  gap: 60px;
  align-items: stretch;
}
.location-info {
  flex: 1;
}
.location-map {
  flex: 2;
}
.info-item {
  display: flex;
  gap: 20px;
  margin-bottom: 35px;
}
.info-item i {
  font-size: 24px;
  margin-top: 5px;
}
.info-item h4 {
  font-size: 20px;
  margin-bottom: 8px;
}
.info-item p {
  font-size: 16px;
  line-height: 1.6;
}

/* Footer */
.footer {
  padding-top: 80px;
}
.pre-footer {
  padding-bottom: 80px;
  border-bottom: 1px solid #222;
}
.footer-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding: 50px 0;
}
.footer-col h4 {
  font-size: 20px;
}
.footer-col p {
  font-size: 15px;
  line-height: 1.6;
}
.social-icons a {
  display: inline-block;
  margin-left: 20px;
  font-size: 24px;
  color: var(--text-muted);
  transition: color 0.3s;
}
.social-icons a:hover {
  color: var(--primary);
}
.footer-copyright {
  display: flex;
  justify-content: space-between;
  padding: 25px 0;
  border-top: 1px solid #222;
  font-size: 14px;
}
.footer-links a {
  color: var(--text-muted);
  margin-left: 20px;
}
.footer-links a:hover {
  text-decoration: underline;
}

/* Gallery Slider - Arrow Navigation */
.gallery {
  background-color: #141414;
}
.slider-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 0;
}
.slider-viewport {
  overflow: hidden;
  margin: 0 60px;
}
.slider-track {
  display: flex;
  gap: 20px;
  transition: transform 0.4s ease;
  will-change: transform;
}
.slide-card {
  flex-shrink: 0;
  width: 280px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  border: 1px solid #333;
}
.slide-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  border-bottom: 3px solid var(--primary);
  transition: transform 0.3s ease;
}
.slide-card:hover img {
  transform: scale(1.05);
}
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--primary);
  color: #000;
  border: none;
  width: 46px;
  height: 46px;
  border-radius: 2px;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background-color 0.3s;
}
.slider-arrow:hover {
  background-color: var(--primary-hover);
}
.slider-prev { left: 0; }
.slider-next { right: 0; }

/* Responsive adjustments */
@media (max-width: 992px) {
  .hero-container { flex-direction: column; gap: 40px; align-items: center; text-align: center; }
  .hero-description { margin-left: auto; margin-right: auto; }
  .hero-form-wrapper { width: 100%; max-width: 450px; }

  .corsi-grid { grid-template-columns: repeat(2, 1fr); }
  .servizi-grid { grid-template-columns: repeat(2, 1fr); }
  .plus-grid { grid-template-columns: repeat(2, 1fr); }
  .location-flex { flex-direction: column; gap: 40px; }
}

@media (max-width: 768px) {
  body { padding-top: 70px; }
  .navbar { padding: 15px 0; }
  .logo img { height: 80px !important; margin: -20px 0 !important; }

  .hero-title { font-size: 46px; }
  .section-title { font-size: 32px; }
  .section { padding: 50px 0; }

  .servizi-grid { grid-template-columns: repeat(1, 1fr); }
  .corsi-grid { grid-template-columns: repeat(1, 1fr); }
  .plus-grid { grid-template-columns: repeat(1, 1fr); }

  .video-placeholder { height: 220px; }

  .footer-bottom { flex-direction: column; gap: 30px; text-align: center; }
  .footer-col { text-align: center !important; }
  .footer-buttons { flex-direction: column; gap: 15px; }

  .slider-viewport { margin: 0 46px; }
  .slider-arrow { width: 38px; height: 38px; font-size: 15px; }
}
