/* =============================
   CSS per Ello International
   Stile: Pulito, Blu & Bianco
============================= */

:root {
  --primary-color: #003366;
  --secondary-color: #ffffff;
  --accent-color: #007acc;
  --font-main: 'Open Sans', sans-serif;
  --font-heading: 'Rubik', sans-serif;
}

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

body {
  font-family: var(--font-main);
  color: #222;
  background-color: var(--secondary-color);
  line-height: 1.6;
}

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

.header {
  background: var(--primary-color);
  color: var(--secondary-color);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo img {
  width: 48px;
  height: 48px;
}

.logo h1 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
}

.logo p {
  font-size: 0.9rem;
}

.nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
  margin-top: 10px;
}

.nav a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

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

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  padding: 0;
}

.mobile-menu-btn span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--secondary-color);
  border-radius: 3px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: 0.25s ease-in-out;
}

.mobile-menu-btn span:nth-child(1) {
  top: 0px;
}

.mobile-menu-btn span:nth-child(2) {
  top: 10px;
}

.mobile-menu-btn span:nth-child(3) {
  top: 20px;
}

.mobile-menu-btn.open span:nth-child(1) {
  top: 10px;
  transform: rotate(135deg);
}

.mobile-menu-btn.open span:nth-child(2) {
  opacity: 0;
  left: -60px;
}

.mobile-menu-btn.open span:nth-child(3) {
  top: 10px;
  transform: rotate(-135deg);
}

.hero {
  background: var(--primary-color);
  color: var(--secondary-color);
  padding: 60px 0;
}

.hero-content {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
}

.hero-text {
  flex: 1;
  min-width: 300px;
}

.hero-img {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.hero-img img {
  max-width: 100%;
  height: auto;
}

.hero-text h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 15px;
}

.hero-text p {
  margin-bottom: 20px;
}

.btn-primary,
.btn-secondary {
  padding: 10px 20px;
  border: none;
  text-decoration: none;
  color: var(--secondary-color);
  background: var(--accent-color);
  border-radius: 5px;
  margin-right: 10px;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: #005fa3;
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--secondary-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.about {
  background: #f5f5f5;
  padding: 60px 0;
}

.about h2,
.courses h2,
.methodology h2,
.contact h2 {
  font-family: var(--font-heading);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.about h2::after,
.courses h2::after,
.methodology h2::after,
.contact h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--accent-color);
}

.about-values {
  margin-top: 20px;
  list-style: disc;
  padding-left: 20px;
}

.courses {
  padding: 60px 0;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.course-card {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.course-card img {
  width: 80px;
  margin-bottom: 15px;
}

.methodology {
  background: #f5f5f5;
  padding: 60px 0;
}

.methodology-list {
  margin-top: 20px;
  padding-left: 20px;
}

.methodology-list li {
  margin-bottom: 15px;
}

.contact {
  padding: 60px 0;
}

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  margin-top: 20px;
}

.contact-info {
  flex: 1;
  min-width: 250px;
}

.contact-info p {
  margin-bottom: 15px;
}

.contact-info a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.3s;
}

.contact-info a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

form {
  flex: 1;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

input,
textarea,
button {
  padding: 12px;
  font-family: var(--font-main);
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

button {
  background: var(--accent-color);
  color: var(--secondary-color);
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  font-weight: 600;
}

button:hover {
  background: #005fa3;
  transform: translateY(-2px);
}

.footer {
  background: var(--primary-color);
  color: var(--secondary-color);
  text-align: center;
  padding: 30px 0;
  font-size: 0.9rem;
}

.footer a {
  color: var(--secondary-color);
  text-decoration: none;
  margin: 0 10px;
}

.footer a:hover {
  text-decoration: underline;
}

/* Policy Pages */
.policy-content {
  padding: 60px 0;
}

.policy-content h1 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.policy-content h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.policy-content h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-top: 20px;
  margin-bottom: 10px;
}

.policy-content p, 
.policy-content ul, 
.policy-content ol {
  margin-bottom: 15px;
}

.policy-content ul, 
.policy-content ol {
  padding-left: 20px;
}

.policy-content li {
  margin-bottom: 8px;
}

.policy-content a {
  color: var(--accent-color);
  text-decoration: none;
}

.policy-content a:hover {
  text-decoration: underline;
}

/* Thank You Page */
.thank-you {
  padding: 80px 0;
  text-align: center;
  background-color: #f5f5f5;
  min-height: 50vh;
  display: flex;
  align-items: center;
}

.thank-you-content h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.thank-you-content p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 20px;
}

.thank-you-buttons {
  margin-top: 30px;
}

/* Cookie Banner */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 15px 0;
  z-index: 1000;
}

.cookie-banner .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
}

.btn-cookie-accept {
  background: var(--accent-color);
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
}

.btn-cookie-info {
  background: transparent;
  color: white;
  border: 1px solid white;
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header .container {
    flex-direction: column;
  }
  
  .mobile-menu-btn {
    display: block;
    position: absolute;
    top: 25px;
    right: 20px;
  }
  
  .nav {
    width: 100%;
  }
  
  .nav-menu {
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--primary-color);
    padding: 0;
    margin: 0;
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  
  .nav-menu.active {
    height: auto;
    padding: 10px 0;
  }
  
  .nav-menu li {
    padding: 10px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  
  .hero-content {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-text, .hero-img {
    width: 100%;
  }
  
  .about h2::after,
  .courses h2::after,
  .methodology h2::after,
  .contact h2::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .contact-grid {
    flex-direction: column;
  }
  
  .cookie-banner .container {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  
  .cookie-buttons {
    justify-content: center;
  }
}
header { background-color: #2c2c2c; }



header, .navbar { background-color: #1f2e3d !important; }
