/* -------------------------------------------------------------
   CSS RESET & BASE (Normalize/Reset)
--------------------------------------------------------------*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #FAFAF8;
  color: #1C4953;
  font-family: 'Roboto', serif;
  font-size: 16px;
  letter-spacing: 0.02em;
}
a {
  color: #225966;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F7B32B;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  margin-left: 1.5em;
  margin-bottom: 1.5em;
}
strong {
  font-weight: 600;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  border: none;
  outline: none;
  background: none;
  color: inherit;
}

/* -------------------------------------------------------------
   TYPOGRAPHY (Elegant Classic)
--------------------------------------------------------------*/
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Georgia', serif;
  color: #1C4953;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 15px;
  line-height: 1.2;
}
h1 {
  font-size: 2.3rem;
  margin-bottom: 18px;
}
h2 {
  font-size: 1.75rem;
}
h3 {
  font-size: 1.3rem;
}
h4 {
  font-size: 1.1rem;
  font-weight: 600;
}
p {
  margin-bottom: 18px;
}

@media (min-width: 700px) {
  h1 {
    font-size: 3rem;
  }
  h2 {
    font-size: 2.2rem;
  }
  h3 {
    font-size: 1.5rem;
  }
  h4 {
    font-size: 1.2rem;
  }
}

/* -------------------------------------------------------------
   CONTAINERS & LAYOUT
--------------------------------------------------------------*/
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.content-wrapper {
  width: 100%;
}

.section, section {
  margin-bottom: 60px;
  padding: 40px 0 0 0;
}
/* Remove default table border for elegance */
table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  margin-bottom: 32px;
  background: #FFFFFF;
  font-size: 1rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(34,89,102,0.07);
}
th, td {
  text-align: center;
  padding: 14px;
  border-bottom: 1px solid #E6F2E9;
}
thead th {
  background: #E6F2E9;
  color: #1C4953;
  font-family: 'Montserrat', serif;
  font-size: 1.06rem;
}
tbody tr:last-child td {
  border-bottom: none;
}
/* -------------------------------------------------------------
   HEADER & NAVIGATION
--------------------------------------------------------------*/
header {
  width: 100%;
  background: #FFFFFF;
  border-bottom: 1.5px solid #E6F2E9;
  position: relative;
  z-index: 100;
  box-shadow: 0 2px 6px 0 rgba(34,89,102, 0.04);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 24px;
  padding: 16px 20px 14px 20px;
}

.main-nav {
  display: flex;
  gap: 22px;
  align-items: center;
  font-family: 'Montserrat', serif;
}
.main-nav a {
  font-size: 1rem;
  color: #1C4953;
  padding: 6px 10px;
  transition: color 0.18s, border-bottom 0.18s;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a:focus, .main-nav a.active {
  color: #F7B32B;
  border-bottom: 2px solid #F7B32B;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #F7B32B;
  color: #1C4953;
  font-family: 'Montserrat', serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 10px 30px;
  border-radius: 30px;
  text-shadow: none;
  border: none;
  box-shadow: 0 2px 8px 0 rgba(247, 179, 43, 0.12);
  transition: background 0.18s, color 0.18s, box-shadow 0.25s;
}
.cta-button:hover, .cta-button:focus {
  background: #FFD56A;
  color: #1C4953;
  box-shadow: 0 8px 24px rgba(34, 89, 102, 0.20);
}

/* -------------------------------------------------------------
   MOBILE BURGER MENU
--------------------------------------------------------------*/
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 22px;
  right: 22px;
  width: 42px;
  height: 42px;
  background: #F7B32B;
  border-radius: 50%;
  color: #1C4953;
  font-size: 2.1rem;
  z-index: 220;
  border: none;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.2s;
  box-shadow: 0 2px 10px rgba(34,89,102,0.09);
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: #FFD56A;
}

.mobile-menu {
  position: fixed;
  top: 0;  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(34, 89, 102, 0.96);
  color: #fff;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transform: translateX(-100vw);
  transition: transform 0.34s cubic-bezier(.9,.06,.29,.96);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  margin: 32px 0 18px 24px;
  font-size: 2.2rem;
  color: #F7B32B;
  background: none;
  border: none;
  cursor: pointer;
  align-self: flex-start;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 14px;
  padding: 14px 0 0 36px;
  font-family: 'Montserrat', serif;
}
.mobile-nav a {
  color: #FFFFFF;
  font-size: 1.25rem;
  padding: 12px 8px;
  border-radius: 8px;
  transition: background 0.15s, color 0.18s;
  min-width: 120px;
}
.mobile-nav a:active, .mobile-nav a:focus, .mobile-nav a:hover {
  background: #F7B32B;
  color: #1C4953;
}

@media (min-width: 900px) {
  .mobile-menu-toggle { display: none; }
  .mobile-menu { display: none !important; }
}
@media (max-width: 899px) {
  .main-nav, header .cta-button {
    display: none;
  }
  header .container {
    justify-content: flex-start;
  }
}

/* -------------------------------------------------------------
   HERO SECTION
--------------------------------------------------------------*/
.hero {
  background: #E6F2E9;
  border-radius: 0 0 36px 36px;
  box-shadow: 0 6px 22px 0 rgba(34, 89, 102, 0.09);
  margin-bottom: 60px;
  padding: 48px 0 48px 0;
}
.hero .container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}
.hero h1 {
  color: #225966;
  font-weight: 700;
}
.hero p {
  color: #4B6B73;
  font-size: 1.13rem;
  margin-bottom: 23px;
}
.hero .cta-button {
  margin-top: 8px;
}

/* -------------------------------------------------------------
   FLEX LAYOUTS: CARDS AND SECTIONS
--------------------------------------------------------------*/
/* .section and .container rules already above */
.card-container, .feature-grid, .courses-grid, .posts-grid, .benefit-grid,
.testimonial-list, .events-list, .course-types {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
  margin-bottom: 18px;
  justify-content: flex-start;
}
.card, .event-item, .blog-post, .testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #FFFFFF;
  border-radius: 20px;
  padding: 28px 22px 26px 22px;
  box-shadow: 0 5px 22px 0 rgba(34, 89, 102, 0.10);
  margin-bottom: 20px;
  min-width: 230px;
  max-width: 420px;
  position: relative;
  gap: 14px;
  transition: box-shadow 0.25s;
}
.card:hover, .event-item:hover, .testimonial-card:hover {
  box-shadow: 0 11px 30px 0 rgba(247,179,43,0.15);
}

.card-container {
  gap: 24px;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #FFFFFF;
  box-shadow: 0 4px 24px 0 rgba(34, 89, 102, 0.12);
  padding: 20px 28px;
  border-radius: 20px;
  min-width: 250px;
  max-width: 420px;
  color: #1C4953;
  font-size: 1.07rem;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, border 0.18s;
}
.testimonial-card p {
  margin-bottom: 10px;
  color: #29434d;
  font-style: italic;
}
.testimonial-card span {
  color: #225966;
  font-family: 'Montserrat', serif;
  font-size: .98rem;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Event List and Blog Posts */
.events-list, .blog-posts .posts-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.event-item {
  margin-bottom: 20px;
  width: 100%;
  max-width: 400px;
  background: #FFFFFF;
  box-shadow: 0 6px 18px 0 rgba(34, 89, 102, 0.12);
  border-radius: 18px;
  padding: 18px 20px 18px 20px;
  transition: box-shadow 0.21s;
}
.event-highlight {
  margin-top: 38px;
  background: #E6F2E9;
  border-left: 7px solid #F7B32B;
  border-radius: 18px;
  padding: 32px 28px;
  box-shadow: 0 2px 12px 0 rgba(34, 89, 102, 0.12);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.posts-grid article {
  background: #FFFFFF;
  border-radius: 15px;
  padding: 18px 15px;
  box-shadow: 0 2px 12px 0 rgba(34, 89, 102, 0.08);
  min-width: 180px;
  flex: 1 1 250px;
  margin-bottom: 18px;
  transition: box-shadow 0.19s;
}
.posts-grid article:hover {
  box-shadow: 0 7px 21px rgba(247,179,43,0.13);
}


@media (max-width: 768px) {
  .feature-grid, .courses-grid, .posts-grid, .benefit-grid,
  .testimonial-list, .events-list, .card-container, .content-grid {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .about .content-wrapper, .about-details .content-wrapper, .schedule .content-wrapper {
    padding: 0;
  }
  .event-highlight {
    padding: 22px 13px;
  }
}

/* -------------------------------------------------------------
   BLOG & ARTICLE STYLES
--------------------------------------------------------------*/
.blog-posts article {
  margin-bottom: 18px;
}
.blog-posts .posts-grid {
  gap: 24px;
  margin-top: 14px;
}
.blog-cta {
  background: #E6F2E9;
  border-radius: 22px;
  padding: 34px 0;
  box-shadow: 0 3px 12px 0 rgba(34,89,102, .08);
  margin-bottom: 48px;
}

/* -------------------------------------------------------------
   FOOTER 
--------------------------------------------------------------*/
footer {
  background: #1C4953;
  color: #FFFFFF;
  padding-top: 36px;
  padding-bottom: 14px;
  border-radius: 33px 33px 0 0;
  margin-top: 55px;
}
.footer-main {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 16px;
}
.footer-main img {
  width: 80px;
  margin-bottom: 17px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 2px;
}
.footer-links a {
  color: #E6F2E9;
  font-size: 1rem;
  transition: color 0.18s;
  font-family: 'Montserrat', serif;
}
.footer-links a:hover, .footer-links a:focus {
  color: #F7B32B;
}
.footer-contact p {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  margin-bottom: 7px;
}
.footer-copy {
  margin-top: 18px;
  font-size: 0.98rem;
  color: #F7B32B;
  letter-spacing: .04em;
  text-align: center;
}
@media (max-width: 996px) {
  .footer-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
  }
}

/* -------------------------------------------------------------
   BUTTON STYLES
--------------------------------------------------------------*/
button, .cta-button {
  cursor: pointer;
  font-family: 'Montserrat', serif;
  font-size: 1rem;
  border: none;
  outline: none;
  border-radius: 30px;
  padding: 10px 32px;
  transition: background 0.15s, color 0.16s, box-shadow 0.22s;
}
button:active, button:focus {
  outline: 2px solid #F7B32B;
}

/* -------------------------------------------------------------
   HOMEPAGE FEATURE SECTIONS
--------------------------------------------------------------*/
.features, .benefit-grid, .feature-grid {
  background: #FFFFFF;
  border-radius: 20px;
  box-shadow: 0 4px 11px rgba(34, 89, 102, 0.11);
  padding: 38px 22px 18px 22px;
  margin-bottom: 40px;
}
.feature-grid > div, .benefit-grid > div {
  background: #E6F2E9;
  border-radius: 15px;
  padding: 22px 20px;
  min-width: 170px;
  max-width: 350px;
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  box-shadow: 0 2px 12px rgba(34, 89, 102, 0.06);
  transition: box-shadow 0.21s;
  position: relative;
}
.feature-grid > div:hover, .benefit-grid > div:hover {
  box-shadow: 0 8px 22px 0 rgba(247,179,43,0.14);
}
.feature-grid img, .benefit-grid img {
  width: 34px;
  margin-bottom: 12px;
}
.feature-grid h3, .benefit-grid h3 {
  margin-bottom: 8px;
}

/* -------------------------------------------------------------
   ABOUT, EVENTI, CONTATTI, LEGAL
--------------------------------------------------------------*/
.about, .about-details, .contact-info, .legal, .confirmation {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 38px 22px 32px 22px;
  box-shadow: 0 3px 12px 0 rgba(34,89,102,0.07);
  margin-bottom: 36px;
}
@media (max-width: 768px) {
  .about, .about-details, .contact-info, .legal, .confirmation {
    padding: 24px 6px 20px 6px;
  }
}

/* -------------------------------------------------------------
   CTA SECTION
--------------------------------------------------------------*/
.cta, .blog-cta {
  background: #E6F2E9;
  border-radius: 27px;
  text-align: center;
  padding: 38px 0 32px 0;
  margin-bottom: 56px;
  box-shadow: 0 3px 13px 0 rgba(34,89,102,0.06);
}
.cta h2, .blog-cta h2 {
  color: #1C4953;
  margin-bottom: 12px;
}
.cta-button {
  margin-top: 18px;
}

/* -------------------------------------------------------------
   COOKIE CONSENT BANNER + MODAL
--------------------------------------------------------------*/
.cookie-consent-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  background: #1C4953;
  color: #fff;
  z-index: 10000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 22px 18px;
  gap: 26px;
  box-shadow: 0 -1px 16px rgba(34,89,102,0.13);
  font-size: 1rem;
  animation: cookie-fadein 0.75s cubic-bezier(.5,1,.5,1.15);
}
@keyframes cookie-fadein {
  from { transform: translateY(70%); opacity: 0.6; }
  to { transform: none; opacity: 1; }
}
.cookie-consent-banner .cookie-btn, .cookie-consent-banner .cookie-settings-btn {
  margin-left: 12px;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 1rem;
  font-family: 'Montserrat', serif;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.18s, color 0.14s, box-shadow 0.18s;
  box-shadow: 0 1px 6px 0 rgba(247, 179, 43, 0.12);
}
.cookie-consent-banner .cookie-btn.accept {
  background: #F7B32B;
  color: #1C4953;
}
.cookie-consent-banner .cookie-btn.reject {
  background: #E6F2E9;
  color: #1C4953;
}
.cookie-consent-banner .cookie-settings-btn {
  background: transparent;
  color: #F7B32B;
  border: 2px solid #F7B32B;
}
.cookie-consent-banner .cookie-btn.accept:hover, .cookie-consent-banner .cookie-btn.accept:focus {
  background: #FFD56A;
}
.cookie-consent-banner .cookie-settings-btn:hover, .cookie-consent-banner .cookie-settings-btn:focus {
  background: #F7B32B;
  color: #1C4953;
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 20000;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(34,89,102,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modal-fadein 0.4s cubic-bezier(.71,.05,.23,.88);
}
@keyframes modal-fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: #1C4953;
  padding: 38px 28px 24px 28px;
  border-radius: 22px;
  max-width: 440px;
  width: 92vw;
  box-shadow: 0 8px 38px 0 rgba(34, 89, 102, 0.17);
  display: flex;
  flex-direction: column;
  gap: 23px;
  position: relative;
}
.cookie-modal h2 {
  font-family: 'Montserrat', serif;
  color: #1C4953;
  font-size: 1.24rem;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  gap: 18px;
}
.cookie-modal label {
  font-size: 1rem;
  font-family: 'Roboto', serif;
}
.cookie-modal input[type="checkbox"] {
  accent-color: #225966;
  width: 19px;
  height: 19px;
}
.cookie-modal .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 18px;
  justify-content: flex-end;
  margin-top: 14px;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 1.3rem;
  background: none;
  border: none;
  color: #1C4953;
  cursor: pointer;
}
@media (max-width:520px) {
  .cookie-modal {
    padding: 22px 7px 18px 10px;
  }
}

/* -------------------------------------------------------------
   RESPONSIVE BREAKPOINTS
--------------------------------------------------------------*/
@media (max-width: 900px) {
  .container {
    max-width: 95vw;
    padding: 0 10px;
  }
  header .container {
    flex-direction: row;
    gap: 10px;
  }
}
@media (max-width: 768px) { 
  .container, .hero .container {
    max-width: 99vw;
    padding: 0 6vw;
  }
  .section, section {
    margin-bottom: 34px;
    padding: 22px 0 0 0;
  }
  .hero {
    padding: 34px 0 24px 0;
    border-radius: 0 0 22px 22px;
  }
  .hero h1 {
    font-size: 1.5rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .cta, .blog-cta {
    border-radius: 15px;
    padding: 22px 0 12px 0;
  }
  .about, .about-details, .contact-info, .legal, .confirmation, .features, .benefit-grid, .feature-grid {
    border-radius: 13px;
    padding: 16px 8px 12px 8px;
  }
  footer {
    border-radius: 16px 16px 0 0;
    padding-top: 18px;
    padding-bottom: 7px;
  }
  .footer-main { gap: 19px; padding-bottom: 7px; }
  .footer-main img { width: 62px; }
}

/* -------------------------------------------------------------
   VISIBILITY & ACCESSIBILITY TOOLS
--------------------------------------------------------------*/
.sr-only {
  position: absolute !important;
  left: -10000px !important;
  top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* -------------------------------------------------------------
   UTILITY CLASSES AND SPACING (8px scale)
--------------------------------------------------------------*/
.mb-8 { margin-bottom: 8px !important; }
.mb-16 { margin-bottom: 16px !important; }
.mb-24 { margin-bottom: 24px !important; }
.mb-32 { margin-bottom: 32px !important; }
.mb-40 { margin-bottom: 40px !important; }
p:last-child { margin-bottom: 0; }

/* -------------------------------------------------------------
   OVERRIDES FOR EDGE CASES & TABLES
--------------------------------------------------------------*/
.course-types ul {
  margin-left: 1.2em;
}
.course-types li {
  margin-bottom: 8px;
}
.schedule ul, .schedule li {
  margin-left: 1em;
  margin-bottom: 6px;
}
.legal ul, .legal li {
  margin-left: 1em;
  margin-bottom: 6px;
}

/* Hide scroll on mobile-menu when closed */
body.menu-open {
  overflow: hidden;
}

/* -------------------------------------------------------------
   END OF STYLE.CSS
--------------------------------------------------------------*/