/* RESET & NORMALIZE */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 16px;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  scroll-behavior: smooth;
}
body {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  color: #233744;
  background: #FAFAF8;
  line-height: 1.7;
  font-size: 1rem;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  border-style: none;
}
a {
  color: #204C6C;
  text-decoration: none;
  transition: color .2s;
}
a:hover, a:focus {
  color: #6BC1C6;
  outline: none;
}
ul, ol {
  padding-left: 1.2em;
}
li + li {
  margin-top: 8px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', 'Georgia', 'Times New Roman', Times, serif;
  color: #204C6C;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.15;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
p {
  margin-bottom: 16px;
  font-family: 'Open Sans', Arial, sans-serif;
}
/** CONTAINER, UTILITY **/
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  max-width: 1240px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.content-wrapper {
  width: 100%;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 22px rgba(32,76,108,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* FLEX LAYOUT PATTERNS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(32,76,108,0.08);
  margin-bottom: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 230px;
  max-width: 370px;
  flex: 1 1 270px;
  position: relative;
  padding: 20px 18px;
  transition: box-shadow .25s, transform .2s;
}
.card:hover {
  box-shadow: 0 6px 28px rgba(32,76,108,0.16);
  transform: translateY(-4px);
}
.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;
  padding: 20px;
  background: #fff;
  border-left: 5px solid #204C6C;
  border-radius: 10px;
  box-shadow: 0 2px 16px rgba(32,76,108,0.03);
  margin-bottom: 20px;
  transition: box-shadow .2s;
}
.testimonial-card p {
  color: #233744;
  margin: 0;
  font-weight: 500;
  font-size: 1.12rem;
  font-family: 'Georgia', serif;
}
.testimonial-card span {
  color: #204C6C;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  font-style: italic;
  margin-left: auto;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/** HEADER & NAV **/
header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(32,76,108,.06);
  position: relative;
  z-index: 20;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}
header a img {
  max-height: 52px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
}
.main-nav a {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  padding: 6px 0;
  color: #c3b084;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
}
.main-nav a:hover,
.main-nav a:focus {
  border-bottom: 2px solid #6BC1C6;
  color: #204C6C;
}
.btn-primary {
  background: #204C6C;
  color: #fff;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 10px 26px;
  border-radius: 28px;
  border: none;
  margin-left: 20px;
  box-shadow: 0 1px 7px rgba(32,76,108,0.08);
  cursor: pointer;
  transition: background .18s, box-shadow .21s, color .16s, transform .16s;
  display: inline-block;
  text-align: center;
  outline: none;
}
.btn-primary:hover, .btn-primary:focus {
  background: #6BC1C6;
  color: #233744;
  box-shadow: 0 3px 10px rgba(32,76,108,0.20);
  transform: translateY(-2px);
}
.see-more {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #204C6C;
  text-decoration: underline;
  font-size: 1.02rem;
  transition: color .2s;
}
.see-more:hover,
.see-more:focus {
  color: #6BC1C6;
}
header .mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #204C6C;
  cursor: pointer;
  margin-left: 20px;
  transition: color .2s;
  z-index: 90;
}
header .mobile-menu-toggle:focus {
  outline: 2px solid #204C6C;
}

/* MOBILE NAV MENU */
.mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(32, 76, 108, 0.94);
  z-index: 1000;
  transform: translateX(100%);
  transition: transform .36s cubic-bezier(.6,.3,.21,1);
  box-shadow: -6px 0 40px -10px rgba(32,76,108,0.17);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: #FFE7B0;
  font-size: 2.2rem;
  margin: 22px 24px 0 0;
  cursor: pointer;
  transition: color .18s;
  z-index: 1020;
}
.mobile-menu-close:focus {
  color: #6BC1C6;
  outline: 2px solid #6BC1C6;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
  margin: 40px 28px;
}
.mobile-nav a {
  color: #FFE7B0;
  font-family: 'Montserrat', 'Georgia', serif;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0;
  background: transparent;
  border-radius: 8px;
  padding: 7px 13px;
  width: 100%;
  transition: background .17s, color .13s;
  display: block;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #204C6C;
  color: #6BC1C6;
}

/** HERO, PILASTRI, CTA **/
.hero, .about-hero, .services-overview, .stretching-hero, .nuoto-hero, .running-hero, .motivazione-hero, .thankyou-section {
  background: linear-gradient(120deg, #fff 65%, #FFE7B0 100%);
  padding: 52px 0 34px;
  margin-bottom: 30px;
  border-radius: 0 0 40px 40px;
}
.hero .content-wrapper,
.about-hero .content-wrapper,
.services-overview .content-wrapper,
.stretching-hero .content-wrapper,
.nuoto-hero .content-wrapper,
.running-hero .content-wrapper,
.motivazione-hero .content-wrapper,
.thankyou-section .content-wrapper {
  align-items: center;
  text-align: center;
}
.hero h1, .about-hero h1, .services-overview h1, .stretching-hero h1, .nuoto-hero h1, .running-hero h1, .motivazione-hero h1, .thankyou-section h1 {
  font-size: 2.2rem;
  color: #204C6C;
}
.hero .subheadline {
  color: #204C6C;
  font-size: 1.13rem;
  font-family: 'Open Sans', Arial, sans-serif;
  margin-bottom: 22px;
  margin-top: -4px;
}
.cta-section, .motivazione-cta {
  background: #204C6C;
  color: #fff;
  border-radius: 20px;
  padding: 40px 20px;
  margin-bottom: 60px;
  text-align: center;
}
.cta-section .btn-primary,
.motivazione-cta .btn-primary {
  margin-left: 0;
  margin-top: 18px;
  color: #204C6C;
  background: #FFE7B0;
  transition: background .17s, color .16s;
}
.cta-section .btn-primary:hover,
.motivazione-cta .btn-primary:hover {
  background: #6BC1C6;
  color: #fff;
}
.cta-statement {
  font-size: 1.24rem;
  font-family: 'Open Sans', serif;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  width: 100%;
  margin-top: 14px;
}
.feature-grid > div {
  background: #f2f4f8;
  border-radius: 14px;
  box-shadow: 0 1px 8px rgba(32,76,108,0.08);
  padding: 20px 14px 20px 18px;
  flex: 1 1 250px;
  min-width: 220px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  position: relative;
  transition: box-shadow .22s, background .15s;
}
.feature-grid > div:hover {
  box-shadow: 0 4px 24px rgba(32,76,108,0.18);
  background: #FFE7B0;
}
.feature-grid img {
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
}
.feature-grid h3 {
  margin-bottom: 4px;
  font-size: 1.13rem;
  color: #204C6C;
  font-family: 'Montserrat', serif;
}
.feature-grid p {
  font-size: 0.97rem;
  margin-bottom: 0;
}

/* Feature icons separate from grid */
.feature-icons {
  display: flex;
  gap: 28px;
  justify-content: flex-start;
  margin: 26px 0 18px;
  align-items: center;
}
.feature-icons img {
  width: 44px;
  height: 44px;
  opacity: .95;
  transition: transform .17s;
}
.feature-icons img:hover {
  transform: scale(1.07) rotate(-4deg);
}

/***** TEAM SECTION *****/
.team-members {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 26px;
  justify-content: flex-start;
}
.team-bio {
  background: #fff;
  border-left: 3px solid #6BC1C6;
  border-radius: 10px;
  box-shadow: 0 1px 11px rgba(32,76,108,0.07);
  padding: 17px 20px 13px 20px;
  min-width: 220px;
  max-width: 280px;
}
.team-bio h3 {
  font-size: 1.12rem;
  color: #204C6C;
  margin-bottom: 4px;
}
.team-bio p {
  font-size: 0.97rem;
  margin-bottom: 0;
}

/***** PRICING TABLE *****/
.pricing table {
  width: 100%;
  margin: 28px 0 24px 0;
  border-collapse: collapse;
  font-family: 'Open Sans', Arial, sans-serif;
  background: #fff;
}
.pricing th,
.pricing td {
  border-bottom: 1px solid #E6E9EF;
  padding: 14px 12px;
  text-align: left;
  font-size: 1rem;
}
.pricing th {
  background: #F2F4F8;
  color: #204C6C;
  font-weight: 600;
  font-family: 'Montserrat', serif;
}
.pricing tr:last-child td {
  border-bottom: none;
}

/** FORMS, CONTACT, ADDRESS, MAP **/
.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 24px 0 18px 0;
  align-items: flex-start;
}
.contact-info > div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.07rem;
  color: #204C6C;
}
.contact-info img {
  width: 26px; height: 26px;
}
.address, address {
  font-style: normal;
  font-size: 1rem;
  color: #233744;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}
.map-placeholder {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #F2F4F8;
  padding: 16px 13px;
  border-radius: 10px;
  color: #204C6C;
  font-size: 0.97rem;
}
.map-placeholder img {
  width: 38px; height: 38px;
}

/** FOOTER **/
footer {
  background: #204C6C;
  color: #fff;
  padding: 36px 0 18px 0;
}
footer .container {
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-bottom: 22px;
  justify-content: center;
}
.footer-nav a {
  color: #FFE7B0;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  transition: color .15s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #6BC1C6;
}
.footer-contact p {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 0.98rem;
  margin-bottom: 8px;
  font-family: 'Open Sans', Arial, sans-serif;
}
.footer-contact img {
  width: 22px;
  height: 22px;
  filter: brightness(95%) contrast(110%);
}

/* LEGAL SECTION */
.legal-section {
  background: #fff;
  border-radius: 16px;
  padding: 32px 20px;
  margin-bottom: 60px;
  box-shadow: 0 2px 12px rgba(32,76,108,0.05);
}
.legal-section h1, .legal-section h2 {
  color: #204C6C;
}
.legal-section ul li {
  margin-bottom: 10px;
}

/* THANK YOU SECTION */
.thankyou-section .btn-primary {
  margin-top: 19px;
}

/* COOKIE CONSENT STYLES --------------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  background: #204C6C;
  color: #fff;
  box-shadow: 0 -6px 20px -6px rgba(32,76,108,0.15);
  z-index: 9000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 12px 16px 12px;
  transition: transform 0.36s;
}
.cookie-banner.hide {
  transform: translateY(100%);
}
.cookie-banner .cookie-content {
  max-width: 680px;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-top: 11px;
}
.cookie-btn {
  padding: 7px 18px;
  border-radius: 21px;
  font-size: 1.01rem;
  border: none;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  cursor: pointer;
  transition: background .19s, color .14s, transform .15s;
}
.cookie-btn--accept {
  background: #6BC1C6;
  color: #204C6C;
  font-weight: 700;
}
.cookie-btn--accept:hover,
.cookie-btn--accept:focus {
  background: #FFE7B0;
  color: #204C6C;
}
.cookie-btn--reject {
  background: #fff;
  color: #204C6C;
  font-weight: 600;
}
.cookie-btn--reject:hover,
.cookie-btn--reject:focus {
  background: #6BC1C6;
  color: #fff;
}
.cookie-btn--settings {
  background: transparent;
  color: #FFE7B0;
  font-weight: 600;
  border: 2px solid #FFE7B0;
}
.cookie-btn--settings:hover,
.cookie-btn--settings:focus {
  background: #FFE7B0;
  color: #204C6C;
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(32,76,108,0.75);
  z-index: 10010;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity .24s;
}
.cookie-modal.open {
  visibility: visible;
  opacity: 1;
}
.cookie-modal-content {
  background: #fff;
  color: #204C6C;
  border-radius: 19px;
  padding: 36px 30px 22px 30px;
  box-shadow: 0 6px 40px rgba(32,76,108,0.14);
  max-width: 440px;
  width: 95%;
  font-family: 'Open Sans', Arial, sans-serif;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cookie-modal-content h2 {
  margin-bottom: 14px;
  color: #204C6C;
  font-size: 1.3rem;
  font-family: 'Montserrat', serif;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 8px 0;
  font-size: 1rem;
}
.cookie-category input {
  accent-color: #6BC1C6;
  width: 18px;
  height: 18px;
}
.cookie-category label strong {
  color: #204C6C;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 13px;
  margin-top: 15px;
}
.cookie-modal-close {
  background: none;
  border: none;
  color: #204C6C;
  font-size: 1.6rem;
  position: absolute;
  top: 12px; right: 18px;
  cursor: pointer;
  transition: color .14s;
}
.cookie-modal-close:focus {
  color: #6BC1C6;
  outline: 2px solid #6BC1C6;
}

/************ RESPONSIVE ************/
@media (max-width: 1200px) {
  .container {
    max-width: 980px;
  }
  .feature-grid > div { max-width: 48%; }
}
@media (max-width: 900px) {
  .container {
    max-width: 97vw;
  }
  .feature-grid, .card-container, .team-members {
    gap: 18px;
  }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  .container { padding: 0 8px; }
  .content-wrapper { max-width: 99vw; padding: 0 !important; }
  .section, .cta-section, .motivazione-cta, .legal-section {
    padding: 24px 6px;
    border-radius: 10px;
  }
  .hero, .about-hero, .services-overview, .stretching-hero, .nuoto-hero, .running-hero, .motivazione-hero, .thankyou-section {
    padding: 34px 0 18px;
    border-radius: 0 0 18px 18px;
  }
  .feature-grid, .card-container, .team-members, .content-grid {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .feature-grid > div, .team-bio, .card {
    min-width: 0;
    max-width: 98vw;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 17px;
    font-size: 0.98rem;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
    text-align: left;
  }
  .footer-nav {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
  }
}
@media (max-width: 600px) {
  html { font-size: 14px; }
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.24rem; }
  .hero h1, .about-hero h1, .services-overview h1, .stretching-hero h1, .nuoto-hero h1, .running-hero h1, .motivazione-hero h1, .thankyou-section h1 {
    font-size: 1.23rem;
  }
  .cta-statement { font-size: 1.03rem; }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  header .mobile-menu-toggle {
    display: block;
    margin-left: 0;
  }
}
@media (min-width: 769px) {
  .mobile-menu { display: none !important; }
}

/**** MICRO-INTERACTIONS ****/
.btn-primary, .see-more, .cookie-btn, .mobile-menu-toggle, .mobile-menu-close, .cookie-modal-close {
  transition: background .18s, color .16s, box-shadow .2s, border .14s, transform .18s;
}
.btn-primary:active, .cookie-btn:active {
  transform: scale(.96);
}