/* === CSS RESET & NORMALIZE === */
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;
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
  background-color: #F4F7F9;
}

*, *:before, *:after {
  box-sizing: inherit;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #1C2731;
  background: #F4F7F9;
  min-height: 100vh;
  letter-spacing: 0.02em;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #1C2731;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  line-height: 1.1;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  line-height: 1.15;
}
h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}
h4, h5, h6 {
  font-size: 1.125rem;
  margin-bottom: 12px;
}
p, ul, ol {
  font-size: 1rem;
  margin-bottom: 16px;
}
strong {
  font-weight: 800;
}

a {
  color: #00A2C7;
  text-decoration: none;
  font-weight: 700;
  transition: color .2s;
}
a:hover {
  color: #1C2731;
  text-decoration: underline;
}

/* === CONTAINER === */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* === HEADER & NAVIGATION === */
header {
  background-color: #1C2731;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  box-shadow: 0 6px 24px -4px rgba(28,39,49,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 24px;
}
.logo img {
  height: 48px;
  width: auto;
}
.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  color: #F4F7F9;
  font-size: 1rem;
  font-weight: 700;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: border-bottom-color 0.2s, color 0.2s;
}
.main-nav a:hover,
.main-nav a:focus {
  color: #00A2C7;
  border-bottom: 2px solid #00A2C7;
}
/* CTA Button in Header */
.cta-button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  background: #00A2C7;
  color: #fff;
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,162,199,0.08);
  transition: background .15s, box-shadow .2s, color .2s;
  outline: none;
  display: inline-block;
  margin-left: 24px;
}
.cta-button:hover, .cta-button:focus {
  background: #1C2731;
  color: #00A2C7;
  box-shadow: 0 4px 22px rgba(0,162,199,0.18);
}
.cta-button.secondary {
  background: #fff;
  color: #00A2C7;
  border: 2px solid #00A2C7;
  box-shadow: none;
}
.cta-button.secondary:hover, .cta-button.secondary:focus{
  background: #00A2C7;
  color: #fff;
  border-color: #00A2C7;
}

.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: transparent;
  border: none;
  color: #fff;
  margin-left: 16px;
  cursor: pointer;
  line-height: 1;
}
@media (max-width: 1024px) {
  .main-nav {
    gap: 18px;
  }
  .cta-button {
    margin-left: 10px;
    padding: 10px 20px;
  }
}
@media (max-width: 768px) {
  .main-nav,
  .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* === MOBILE MENU STYLES === */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #1C2731;
  z-index: 999;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.69,.08,.47,1.22);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 28px 24px 24px 24px;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: transparent;
  border: none;
  color: #00A2C7;
  font-size: 2.3rem;
  align-self: flex-end;
  cursor: pointer;
  margin-bottom: 20px;
  margin-top: 10px;
  padding: 0 4px;
  line-height: 1;
  transition: color .2s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  width: 100%;
  margin-top: 18px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: #F4F7F9;
  padding: 12px 0;
  border-radius: 7px;
  transition: background .17s, color .17s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #00A2C7;
  color: #fff;
}
@media (min-width: 769px) {
  .mobile-menu {
    display: none !important;
  }
}


/* === MAIN & FLEX LAYOUTS === */
main {
  flex: 1 0 auto;
  background: #F4F7F9;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section,
ul, ol {
  margin-bottom: 16px;
}

ul, ol {
  padding-left: 22px;
}
li {
  margin-bottom: 16px;
  line-height: 1.6;
}

/* Flex patterns from requirements */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 20px rgba(28,39,49,0.08);
  padding: 28px 22px;
  min-width: 260px;
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 3px 16px rgba(28,39,49,0.10);
  min-width: 250px;
  max-width: 440px;
  margin-bottom: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- TESTIMONIALS (high contrast text on light bg) --- */
.testimonial-card p {
  color: #1C2731;
  font-size: 1.05rem;
  font-weight: 600;
}
.testimonial-card strong {
  color: #00A2C7;
  font-weight: 900;
}
.testimonial-card span {
  color: #FFD700;
  font-size: 1.25em;
  font-family: inherit;
  margin-left: 8px;
  letter-spacing: 2px;
}

/* === TABLES (Prezzi etc.) === */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  margin-bottom: 32px;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
}
table th, table td {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  text-align: left;
  padding: 18px;
}
table th {
  color: #fff;
  background: #00A2C7;
  font-weight: 900;
  border-bottom: 3px solid #1C2731;
}
table td {
  color: #1C2731;
  border-bottom: 1px solid #E9EFF2;
}
table tr:last-child td {
  border-bottom: none;
}

/* === BUTTONS, LINKS, EFFECTS === */
button, .cta-button {
  cursor: pointer;
  transition: background .18s, color .18s, border .18s, box-shadow .18s;
  font-family: 'Montserrat', Arial, sans-serif;
}
button:focus, .cta-button:focus {
  outline: 2px solid #00A2C7;
}

/* === FOOTER === */
footer {
  background: #1C2731;
  color: #fff;
  font-size: 0.96rem;
  padding: 0;
  margin-top: 32px;
}
footer .container {
  padding: 0 20px;
}
.footer-main {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 48px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 38px 0 0 0;
}
.footer-nav, .footer-privacy {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-contact p, .footer-contact a {
  color: #F4F7F9;
  margin-bottom: 6px;
  font-size: 1rem;
}
.footer-contact strong {
  color: #00A2C7;
}
footer a {
  color: #00A2C7;
  font-weight: 800;
  text-decoration: none;
  transition: color .15s;
}
footer a:hover, footer a:focus {
  color: #fff;
  text-decoration: underline;
}
.footer-bottom {
  border-top: 1.5px solid #223040;
  margin-top: 28px;
  padding: 18px 0;
  text-align: right;
  color: #A2BCCB;
}
.footer-bottom small {
  font-size: 0.95em;
}

@media (max-width: 900px) {
  .footer-main {
    flex-direction: column;
    gap: 32px;
    align-items: flex-start;
  }
  .footer-bottom {
    text-align: left;
  }
}

/* === RESPONSIVE ADJUSTMENTS === */
@media (max-width: 900px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.5rem; }
  .container { padding: 0 10px; }
}
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    gap: 10px;
    min-height: 58px;
  }
  .container { padding: 0 8px; }
  section, .section { padding: 32px 6px; }
  .content-wrapper, .card-container, .content-grid, .text-image-section {
    flex-direction: column !important;
    gap: 18px !important;
  }
  .footer-main { gap: 18px; }
  table th, table td { padding: 13px; }
}
@media (max-width: 500px) {
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.1rem; }
  .cta-button { min-width: 100%; text-align: center; padding: 11px 0; }
}

/* --- CARDS, ICONS & MOD BOLD SHAPES --- */
.card, .testimonial-card {
  border-radius: 18px;
  box-shadow: 0 3px 16px rgba(0, 162, 199, 0.10), 0 1.5px 2.5px rgba(28,39,49,0.07);
  border: 2px solid #E9EFF2;
}
.card img, .feature-item img, .testimonial-card img {
  width: 50px; height: 50px; margin-bottom: 10px;
  background: #E9EFF2;
  border-radius: 50%;
  object-fit: contain;
  box-shadow: 0 2px 8px rgba(0,162,199,0.08);
  padding: 6px;
}

/* --- GEOMETRIC SHAPE ACCENTS --- */
section > .container > h2 {
  position: relative;
  z-index: 1;
  padding-left: 12px;
}
section > .container > h2::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  background: #00A2C7;
  border-radius: 6px;
  margin-right: 16px;
  margin-bottom: -6px;
}

/* === FORMS (if any in future) === */
input, textarea, select {
  border: 2px solid #E9EFF2;
  border-radius: 9px;
  background: #fff;
  padding: 13px 12px;
  font-size: 1rem;
  margin-bottom: 18px;
  transition: border-color .17s;
}
input:focus, textarea:focus, select:focus {
  border-color: #00A2C7;
  outline: 2px solid #00A2C7;
}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  z-index: 1100;
  background: #1C2731;
  color: #fff;
  padding: 24px 18px;
  box-shadow: 0 -2px 20px rgba(28,39,49,0.14);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  animation: cookie-banner-fadein 0.5s cubic-bezier(.75,.11,.22,1.15);
}
@keyframes cookie-banner-fadein {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-banner p {
  color: #fff;
  margin: 0 0 8px 0;
  font-size: 1rem;
  font-weight: 600;
}
.cookie-banner .cookie-btn {
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  font-size: 1rem;
  padding: 9px 24px;
  border-radius: 22px;
  margin: 0 7px;
  cursor: pointer;
  background: #00A2C7;
  color: #fff;
  box-shadow: 0 2px 16px rgba(0,162,199,0.10);
  transition: background 0.15s, color 0.15s, box-shadow .16s;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: #fff;
  color: #00A2C7;
  box-shadow: 0 4px 26px rgba(0,162,199,0.14);
}
.cookie-banner .cookie-btn.secondary {
  background: transparent;
  color: #fff;
  border: 2px solid #00A2C7;
}
.cookie-banner .cookie-btn.secondary:hover, .cookie-banner .cookie-btn.secondary:focus {
  background: #00A2C7;
  color: #fff;
}

@media (max-width: 500px) {
  .cookie-banner {
    flex-direction: column;
    gap: 12px;
    padding: 22px 6px;
    text-align: center;
  }
}

/* --- COOKIE MODAL --- */
.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(28,39,49,0.87);
  z-index: 1202;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: cookie-modal-fadein .23s cubic-bezier(.55,.19,.26,1.13);
}
@keyframes cookie-modal-fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: #1C2731;
  border-radius: 22px;
  box-shadow: 0 7px 44px rgba(0,162,199,0.13);
  max-width: 380px;
  padding: 30px 25px 18px 25px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal h3 {
  font-size: 1.4rem;
  color: #00A2C7;
  font-family: 'Montserrat', Arial, sans-serif;
  margin: 0 0 8px 0;
}
.cookie-modal label {
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  gap: 8px;
}
.cookie-modal .cookie-toggle {
  margin-right: 10px;
  accent-color: #00A2C7;
  width: 18px;
  height: 18px;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 15px;
}
.cookie-modal .cookie-btn {
  font-size: 1rem;
  padding: 9px 22px;
}
.cookie-modal-close {
  position: absolute;
  top: 10px;
  right: 13px;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #00A2C7;
  cursor: pointer;
  transition: color .17s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #1C2731;
}

@media (max-width: 430px) {
  .cookie-modal {
    max-width: 95vw;
    padding: 16px 7px 13px 7px;
  }
  .cookie-modal h3 { font-size: 1.05rem; }
}

/* === MISC: Z-INDEX, SHADOW FIXES & MICRO-EFFECTS === */
header,
.mobile-menu,
.cookie-banner,
.cookie-modal-overlay {
  z-index: 2000;
}

img, svg {
  max-width: 100%;
  height: auto;
  display: inline-block;
}
hr {
  border: none;
  border-top: 2px solid #00A2C7;
  margin: 32px 0;
}

/* === UTIL CLASSES FOR LAYOUT SPACING (if needed) === */
.mt-24 { margin-top: 24px !important; }
.mb-24 { margin-bottom: 24px !important; }
.mt-40 { margin-top: 40px !important; }
.mb-40 { margin-bottom: 40px !important; }
.gap-20 { gap: 20px !important; }
.gap-24 { gap: 24px !important; }

/* === ACCESSIBILITY === */
:focus-visible {
  outline: 2px solid #00A2C7;
  outline-offset: 1.5px;
}

/* === PRINT (hide nav, footer etc.) === */
@media print {
  header, footer, .cookie-banner, .mobile-menu, .cookie-modal-overlay { display: none !important; }
  body { background: #fff !important; }
  section, .section, .container { box-shadow: none !important; background: #fff !important; }
}

/* === MODERN/BOLD: COLORS & ACCENT GEOMETRY === */
/* Use brand accent as backgrounds on callouts for surprise/boldness */
section.emphasis, .emphasis {
  background: #00A2C7;
  color: #fff;
  border-radius: 24px;
  box-shadow: 0 6px 40px rgba(0,162,199,0.13);
}
section.emphasis h2,
.emphasis h2,
section.emphasis h1,
.emphasis h1 {
  color: #fff;
}
section.emphasis .cta-button,
.emphasis .cta-button {
  background: #fff;
  color: #00A2C7;
}
section.emphasis .cta-button:hover,
.emphasis .cta-button:hover {
  background: #1C2731;
  color: #fff;
  box-shadow: 0 2px 9px rgba(28,39,49,0.09);
}

/* --- END OF CSS --- */
