/* Custom CSS per Electric Horizon Template */

/* Import Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700&family=Roboto:wght@300;400;500;700&display=swap");

/* Variabili CSS */
:root {
  --primary-color: #1a1a1a;
  --secondary-color: #800000;
  --accent-color: #4a90e2;
  --background-color: #f8f9fa;
  --text-color: #333333;
  --light-gray: #e9ecef;
  --dark-gray: #6c757d;
}

/* Reset e Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--background-color);
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Navbar Styles */
.navbar-custom {
  background-color: var(--primary-color) !important;
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  color: white !important;
}

.navbar-nav .nav-link {
  color: white !important;
  font-weight: 500;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--secondary-color) !important;
}

.navbar-nav .nav-link.active {
  color: var(--secondary-color) !important;
}

/* Hero Section */
.hero-section {
  height: 70vh;
  background: linear-gradient(rgba(26, 26, 26, 0.6), rgba(26, 26, 26, 0.6)), url("../images/hero/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Static Hero Image Section */
.static-hero-section {
  height: 70vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
  z-index: 1;
}

.static-hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 26, 26, 0.6);
  z-index: 1;
}

/* Carousel Styles */
.carousel {
  margin-top: 76px; /* Altezza della navbar */
}

.carousel-item {
  height: 70vh;
  min-height: 300px;
  background: no-repeat center center scroll;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

.carousel-item img {
  object-fit: cover;
  height: 100%;
}

.carousel-caption {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 20px;
  border-radius: 10px;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 600px;
}

.carousel-caption h5 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.carousel-caption p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

/* Buttons */
.btn-custom-primary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: white;
  font-weight: 500;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.btn-custom-primary:hover {
  background-color: #c6c6c6;
  border-color: #c6c6c6;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(128, 128, 128, 0.3);
}

.btn-custom-outline {
  border: 2px solid var(--secondary-color);
  color: var(--secondary-color);
  background-color: transparent;
  font-weight: 500;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.btn-custom-outline:hover {
  background-color: var(--secondary-color);
  color: white;
  transform: translateY(-2px);
}

/* Cards */
.card-custom {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.card-custom:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-custom .card-img-top {
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.card-custom .card-body {
  padding: 1.5rem;
}

.card-custom .card-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  color: var(--primary-color);
}

/* Section Styles */
.section-padding {
  padding: 4rem 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary-color);
}

.section-subtitle {
  font-size: 1.1rem;
  text-align: center;
  color: var(--dark-gray);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* News Section */
.news-filters {
  margin-bottom: 2rem;
  text-align: center;
}

.filter-btn {
  background-color: var(--light-gray);
  border: none;
  color: var(--text-color);
  padding: 0.5rem 1.5rem;
  margin: 0 0.25rem;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--secondary-color);
  color: white;
}

/* Footer */
.footer-custom {
  background-color: var(--primary-color);
  color: white;
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer-custom h5 {
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.footer-custom a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-custom a:hover {
  color: var(--secondary-color);
}

.social-icons a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background-color: var(--secondary-color);
  color: white;
  text-align: center;
  line-height: 40px;
  border-radius: 50%;
  margin: 0 0.5rem;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background-color: var(--accent-color);
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .navbar-brand {
    font-size: 1.5rem;
  }

  .carousel-caption h5 {
    font-size: 1.8rem;
  }

  .carousel-caption p {
    font-size: 0.9rem;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Utility Classes */
.text-primary-custom {
  color: var(--primary-color) !important;
}

.text-secondary-custom {
  color: var(--secondary-color) !important;
}

.bg-primary-custom {
  background-color: var(--primary-color) !important;
}

.bg-secondary-custom {
  background-color: var(--secondary-color) !important;
}


.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--light-gray);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  padding-left: 2rem;
}

.timeline-marker {
  position: absolute;
  left: -1.5rem;
  top: 0.5rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 0 0 3px var(--secondary-color);
}

.timeline-content {
  background-color: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  border-left: 3px solid var(--secondary-color);
}

.timeline-content h5 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.timeline-content p {
  color: var(--dark-gray);
  margin-bottom: 0;
}

/* Responsive timeline */
@media (max-width: 768px) {
  .timeline {
    padding-left: 1rem;
  }
  
  .timeline::before {
    left: 0.5rem;
  }
  
  .timeline-item {
    padding-left: 1.5rem;
  }
  
  .timeline-marker {
    left: -1rem;
  }
}
