/* --- CSS RESET & NORMALIZATION --- */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  background: #F1F6F9;
  color: #174866;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  --brand-primary: #174866;
  --brand-secondary: #F1F6F9;
  --brand-accent: #39B36C;
  --brand-accent-dark: #23884F;
  --brand-electric: #17A1FF;
  --brand-neon: #FFEE00;
  --brand-pink: #FF3879;
  --shadow-md: 0 4px 12px rgba(23, 72, 102, 0.11), 0 1.5px 3.5px rgba(35, 136, 79, 0.14);
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: color 0.2s cubic-bezier(.52,.01,.31,1);
}
a:hover, a:focus {
  color: var(--brand-accent-dark);
}
ul, ol {
  margin-left: 1.2em;
  margin-bottom: 18px;
}
li {
  margin-bottom: 8px;
  line-height: 1.5;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -.01em;
  color: #174866;
}
h1 {
  font-size: 2.625rem; /* 42px */
  margin-bottom: 18px;
  color: var(--brand-electric);
}
h2 {
  font-size: 2rem; /* 32px */
  margin-bottom: 14px;
  color: var(--brand-accent-dark);
}
h3 {
  font-size: 1.25rem; /* 20px */
  margin-bottom: 10px;
}
.text-center { text-align: center; }
.text-section {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
strong {
  font-weight: 700;
}

/* --- CONTAINER & SECTION --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

@media (max-width: 768px) {
  .section {
    padding: 30px 10px;
    margin-bottom: 40px;
  }
  .container { padding: 0 4px; }
  .content-wrapper { gap: 16px; }
  .content-grid { flex-direction: column; gap: 18px; }
}

/* --- HEADER & NAVIGATION --- */
header {
  width: 100%;
  background: #174866;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 88px;
  position: relative;
  z-index: 10;
  box-shadow: 0 2px 16px 0 rgba(23, 72, 102, 0.09);
}
header a > img {
  height: 48px;
  width: auto;
}
header nav {
  display: flex;
  gap: 26px;
  align-items: center;
}
header nav a {
  color: #F1F6F9;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}
header nav a:hover, header nav a.active {
  color: var(--brand-accent);
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, var(--brand-electric) 60%, var(--brand-accent) 100%);
  color: #fff;
  border: none;
  border-radius: 36px;
  padding: 11px 34px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  letter-spacing: .04em;
  font-size: 1.13rem;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: box-shadow 0.19s, background 0.23s cubic-bezier(.52,.01,.31,1);
  margin-left: 26px;
  text-transform: uppercase;
  outline: none;
}
.cta-btn:hover, .cta-btn:focus {
  background: linear-gradient(90deg, var(--brand-pink) 40%, var(--brand-accent-dark) 80%);
  color: #fff;
  box-shadow: 0 8px 28px rgba(57,179,108,0.23), 0 1.5px 3.5px rgba(35,136,79,0.18);
}
@media (max-width: 990px) {
  header nav { gap: 16px; }
  .cta-btn { margin-left: 0; padding: 9px 22px; font-size: 1em; }
}

/* --- MOBILE NAV --- */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  top: 21px;
  right: 18px;
  background: var(--brand-electric);
  color: #fff;
  border: none;
  font-size: 2rem;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 110;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(23, 72, 102, 0.17);
  transition: background 0.19s;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  outline: 2px solid var(--brand-accent-dark);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(23, 72, 102, 0.97);
  z-index: 120;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transform: translateX(-100%);
  transition: transform 0.38s cubic-bezier(0.87,0,0.13,1);
  padding: 24px 20px 0 20px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: #fff;
  font-size: 2.5rem;
  border: none;
  align-self: flex-end;
  margin-bottom: 24px;
  cursor: pointer;
  padding: 0 14px;
  border-radius: 50%;
  transition: background 0.18s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: rgba(57,179,108,0.13);
  outline: 2px solid var(--brand-accent);
  color: var(--brand-neon);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.25rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border-radius: 12px;
  padding: 15px 10px;
  transition: background 0.12s, color 0.13s;
  text-transform: uppercase;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--brand-pink);
  color: var(--brand-neon);
}
@media (max-width: 990px) {
  header nav {
    display: none;
  }
  .cta-btn {
    display: none;
  }
  .mobile-menu-toggle { display: flex; }
}
@media (min-width: 991px) {
  .mobile-menu, .mobile-menu-toggle { display: none !important; }
}

/* --- HERO / GENERIC TOP SECTIONS --- */
.content-wrapper {
  box-sizing: border-box;
}
.content-wrapper.text-center{
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* --- FEATURE GRID & ITEMS --- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 20px;
  justify-content: space-between;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  padding: 28px 20px 20px 20px;
  min-width: 235px;
  max-width: 320px;
  flex: 1 1 230px;
  margin-bottom: 20px;
  border: 3px solid var(--brand-accent);
  transition: transform 0.19s, box-shadow 0.18s;
}
.feature-item img {
  width: 48px; height: 48px;
}
.feature-item:hover, .feature-item:focus {
  transform: translateY(-6px) scale(1.035);
  box-shadow: 0 12px 34px 0 rgba(57,179,108,0.20);
  border-color: var(--brand-electric);
}
@media (max-width: 768px) {
  .feature-grid, .feature-item {
    flex-direction: column;
    min-width: 0;
    max-width: none;
  }
  .feature-grid { gap: 20px; }
}

/* --- CARD CONTAINER / CARDS --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  padding: 24px 18px;
  min-width: 210px;
}

/* --- TESTIMONIALS --- */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 30px 26px 18px 38px;
  margin-bottom: 28px;
  background: #fff;
  border-left: 5px solid var(--brand-electrIC);
  border-radius: 22px;
  box-shadow: 0 7px 28px 0 rgba(23,72,102,0.09);
  font-size: 1.1rem;
  color: #174866;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.18s;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  border-left: 5px solid var(--brand-pink);
  box-shadow: 0 16px 38px rgba(35,136,79,0.16);
}
.testimonial-card p {
  margin-bottom: 0.5em;
  font-size: 1.08rem;
  color: #174866;
  font-family: 'Roboto', sans-serif;
  font-style: italic;
  line-height: 1.55;
}
.testimonial-card span {
  font-size: 1rem;
  color: var(--brand-accent-dark);
  font-weight: 700;
  font-family: 'Montserrat', Arial, sans-serif;
}
.testimonial-card img {
  width: 88px; height: auto;
}
@media (max-width: 768px) {
  .testimonial-card {
    padding: 17px 12px 16px 14px;
    margin-bottom: 22px;
  }
}

/* --- TABLES (Pricing) --- */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 24px;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 11px rgba(23, 72, 102, 0.10);
}
thead {
  background: var(--brand-accent);
}
th, td {
  padding: 16px 14px;
  text-align: left;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05em;
}
th {
  color: #fff;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  font-weight: 800;
  background: var(--brand-accent-dark);
  border-bottom: 3px solid var(--brand-accent);
}
tbody tr:not(:last-child) td {
  border-bottom: 1px solid #e9eced;
}
td {
  color: #174866;
  background: #fff;
  font-weight: 600;
}

/* --- FORM (Prenotazioni, Contatti fake) --- */
input, textarea, select, button {
  font-family: 'Roboto', Arial, sans-serif;
  outline: none;
  border-radius: 10px;
}
input, textarea, select {
  border: 2px solid var(--brand-accent);
  padding: 12px 10px;
  margin-bottom: 18px;
  transition: border-color 0.18s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--brand-electric);
}
button {
  cursor: pointer;
  border: none;
  background: var(--brand-accent);
  color: #fff;
  padding: 10px 28px;
  font-size: 1rem;
  font-weight: bold;
  transition: background 0.18s;
}
button:hover, button:focus {
  background: var(--brand-pink);
}

/* --- FOOTER --- */
footer {
  background: var(--brand-primary);
  color: #fff;
  padding: 44px 0 22px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  box-shadow: 0 -2px 16px rgba(23,72,102,0.08);
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 12px;
  justify-content: center;
}
.footer-menu a {
  color: #fff;
  font-size: 1em;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: color .14s;
}
.footer-menu a:hover, .footer-menu a:focus {
  color: var(--brand-accent);
}
.brand-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 0.98em;
  text-align: center;
}
.brand-footer img {
  width: 68px;
  margin-bottom: 10px;
  filter: drop-shadow(0 1px 4px rgba(23,72,102,0.11));
}
.brand-footer a {
  color: var(--brand-electric);
  font-weight: 700;
  transition: color 0.18s;
}
.brand-footer a:hover, .brand-footer a:focus {
  color: #FF3879;
}

@media (max-width: 768px) {
  footer { padding: 24px 0 12px 0; }
  .footer-menu { gap: 13px; }
  .brand-footer img { width: 54px; }
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  z-index: 1300;
  background: #fffde7;
  color: #174866;
  padding: 22px 24px 20px 24px;
  box-shadow: 0 -2px 18px 2px rgba(35, 136, 79, 0.12);
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  border-top: 5px solid var(--brand-accent);
  animation: cookie-banner-in 0.48s cubic-bezier(.2,1.23,.77,1.01);
}
@keyframes cookie-banner-in {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 3px;
}
.cookie-banner .cookie-accept, 
.cookie-banner .cookie-reject {
  background: var(--brand-accent);
  color: #fff;
  border: none;
  border-radius: 22px;
  padding: 8px 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.18s, color 0.13s;
}
.cookie-banner .cookie-accept:hover, .cookie-banner .cookie-reject:hover {
  background: var(--brand-pink);
  color: #fff;
}
.cookie-banner .cookie-settings {
  background: var(--brand-electric);
  color: #fff;
  border: none;
  border-radius: 22px;
  padding: 8px 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.18s;
}
.cookie-banner .cookie-settings:hover {
  background: var(--brand-neon);
  color: #174866;
}
@media (max-width: 600px) {
  .cookie-banner { padding: 13px 9px 13px 9px; font-size: 0.96rem; }
  .cookie-banner-buttons { gap: 8px; }
}

/* COOKIE MODAL */
.cookie-modal {
  position: fixed; left: 0; right: 0; top: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(23,72,102,0.22);
  z-index: 1400;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadein-cookie .36s cubic-bezier(.2,1.23,.77,1.01);
}
@keyframes fadein-cookie {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal-content {
  background: #fff;
  color: #174866;
  border-radius: 24px;
  box-shadow: 0 8px 36px 0 rgba(23,72,102,0.19);
  padding: 36px 30px 28px 30px;
  max-width: 420px;
  width: 90vw;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  position: relative;
}
.cookie-modal-content h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--brand-accent);
}
.cookie-modal-close {
  position: absolute;
  top: 12px; right: 14px;
  background: none;
  color: var(--brand-accent-dark);
  border: none;
  font-size: 2rem;
  cursor: pointer;
  outline: none;
}
.cookie-modal-category {
  display: flex; flex-direction: row; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
  background: #f3f9fa;
  padding: 10px 18px;
  border-radius: 13px;
}
.cookie-modal-category label {
  font-weight: 600;
}
.cookie-modal-category input[type=checkbox] {
  width: 22px; height: 22px;
  accent-color: var(--brand-accent);
}
.cookie-modal-actions {
  display: flex; gap: 14px; margin-top: 12px;
  justify-content: flex-end;
}

/* --- SPACING & ALIGNMENT PATTERNS (as mandated) --- */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.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; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }
@media (max-width: 768px) {
  .section { padding: 30px 8px; margin-bottom: 36px; }
  .content-grid,
  .card-container,
  .feature-grid,
  .text-image-section { flex-direction: column; gap: 16px; }
}

/* --- VISUAL EFFECTS / ANIMATIONS / MICROINTERACTIONS --- */
.cta-btn, button,
.feature-item, .testimonial-card, .card {
  transition: box-shadow 0.18s, transform 0.19s cubic-bezier(.52,.01,.31,1), background 0.14s, border 0.14s;
}
.cta-btn:active,
button:active {
  transform: scale(0.96) translateY(1px);
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 24px 0 rgba(35,136,79,0.13);
  transform: translateY(-3px) scale(1.01);
}
a.cta-btn:focus {
  outline: 3px solid var(--brand-neon);
}

/* --- RESPONSIVE HEADINGS & FONT SIZES --- */
@media (max-width: 600px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.18rem; }
  h3 { font-size: 1.03rem; }
  .container { padding: 0 2px; }
  body { font-size: 15px; }
}

/* --- MISCELLANEOUS STYLES --- */
.text-section ul,
.text-section ol {
  margin-bottom: 10px;
}
.content-wrapper > ul, .content-wrapper > ol {
  margin-bottom: 0;
}
.content-wrapper ul li {
  margin-bottom: 6px;
}
@media (max-width:600px) {
  .brand-footer p, .brand-footer { font-size: .89em; }
  .text-section { font-size: .97em; }
}

/* --- PRINT & SELECTION --- */
::selection {
  background: var(--brand-accent);
  color: #fff;
}

/* --- ACCESSIBILITY FOCUS --- */
a, button, .cta-btn, .mobile-menu a {
  outline: none;
}
a:focus-visible, .mobile-nav a:focus-visible {
  outline: 3px solid var(--brand-neon);
  outline-offset: 2px;
}

/* --- OVERRIDES FOR PARTICULAR ELEMENTS --- */
section .cta-btn {
  margin-top: 30px;
}
main > section:last-child { margin-bottom: 0; }

/* --- SPECIFIC ADJUSTMENTS / UTILITIES --- */
.text-image-section img {
  max-width: 340px;
  border-radius: 12px;
  box-shadow: 0 1px 7px 0 rgba(23, 72, 102, 0.15);
}

/* --- END --- */
