/* === CSS RESET & NORMALIZE (mobile first) === */
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, main, menu, nav, output, ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  font-size: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}
body {
  line-height: 1.5;
  font-family: 'Roboto', Arial, sans-serif;
  background: #fff;
  color: #122029;
  min-height: 100vh;
}
img, svg {
  display: inline-block;
  max-width: 100%;
  height: auto;
}
a {
  color: #235871;
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 600;
}
a:hover, a:focus {
  color: #68A691;
  outline: none;
}
ul, ol {
  list-style: inside disc;
  margin-left: 0;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}
li {
  margin-bottom: 0.25em;
}
*:focus {
  outline: 2px solid #235871;
  outline-offset: 1px;
}

/* === BRAND VARIABLES (fallbacks) === */
:root {
  --primary: #235871;
  --secondary: #68A691;
  --accent: #E7EBEC;
  --white: #fff;
  --black: #122029;
  --gray-light: #F8F9FA;
  --danger: #E14D4F;
  --shadow: 0 2px 16px 0 rgba(35, 88, 113, 0.08);
  --radius: 18px;
  --radius-sm: 10px;
  --radius-lg: 38px;
  --transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}

/* === TYPOGRAPHY SCALE === */
h1, .h1 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 20px;
}
h2, .h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  line-height: 1.15;
}
h3, .h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 10px;
}
h4, .h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
}
p, ul, ol {
  font-size: 1rem;
  margin-bottom: 12px;
  font-family: var(--font-body);
}
p strong, ul strong, li strong {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary);
}

/* === LAYOUT CONTAINER & FLEX === */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* === SECTIONS SPACING & LAYOUT === */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container, .card-grid, .feature-grid, .content-grid, .features {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: var(--accent);
  box-shadow: var(--shadow);
}
.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: #F8F9FA;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px 0 rgba(35,88,113,0.07);
  margin-bottom: 24px;
  position: relative;
  min-width: 0;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  flex: 1 1 220px;
  min-width: 230px;
  background: var(--accent);
  border-radius: var(--radius);
  padding: 24px 18px 24px 18px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.18s;
}
.feature-item:hover {
  box-shadow: 0 4px 22px 0 rgba(104, 166, 145, .16);
  transform: translateY(-3px) scale(1.01);
}

/* === HERO SECTION === */
.hero {
  background: linear-gradient(96deg, var(--accent) 32%, #f6fbff 100%);
  padding: 60px 0 48px 0;
  margin-bottom: 46px;
  text-align: left;
  display: flex;
  align-items: center;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero h1 {
  font-size: 2.4rem;
  color: var(--primary);
  margin-bottom: 12px;
}
.hero p {
  font-size: 1.2rem;
  margin-bottom: 22px;
  color: var(--black);
}
.hero .cta-primary {
  font-size: 1.08rem;
  padding: 15px 32px;
  border-radius: var(--radius-lg);
}

/* === BUTTONS & CALL TO ACTIONS === */
.cta-primary {
  display: inline-block;
  padding: 14px 30px;
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.07rem;
  font-weight: 800;
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 16px 0 rgba(35,88,113,0.13);
  letter-spacing: 0.06em;
  transition: background 0.19s, color 0.21s, box-shadow 0.19s, transform 0.14s;
  cursor: pointer;
  text-align: center;
  margin-top: 8px;
}
.cta-primary:hover,
.cta-primary:active,
.cta-primary:focus {
  background: var(--secondary);
  color: var(--black);
  box-shadow: 0 2px 18px 0 rgba(104,166,145,0.21);
  transform: translateY(-2px) scale(1.03);
}

/* === MAIN NAV === */
.header-flex {
  display: flex;
  align-items: center;
  gap: 28px;
  justify-content: space-between;
  padding: 18px 0 15px 0;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.main-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 1.08rem;
  color: var(--secondary);
  border-radius: var(--radius-sm);
  padding: 7px 14px;
  transition: background 0.12s, color 0.12s, box-shadow 0.17s;
}
.main-nav .cta-primary {
  margin-left: 12px;
}
.main-nav a:hover {
  background: var(--accent);
  color: var(--secondary);
}

/* === MOBILE MENU === */
.mobile-menu-toggle {
  display: inline-flex;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--primary);
  cursor: pointer;
  margin-left: 10px;
  z-index: 1082;
  border-radius: 50%;
  padding: 6px 14px;
  transition: background 0.12s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--accent);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--white);
  box-shadow: 0 2px 24px 0 rgba(35,88,113,0.2);
  transform: translateX(-100vw);
  transition: transform 0.32s cubic-bezier(.73,.04,.16,1.25);
  padding: 0;
  overflow-y: auto;
  opacity: 0.99;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: var(--danger);
  font-size: 2.4rem;
  padding: 18px 22px 0 0;
  cursor: pointer;
  z-index: 2112;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 12px 28px 22px 32px;
  margin-top: 38px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--primary);
  padding: 11px 5px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  transition: background 0.14s, color 0.12s;
  margin-bottom: 4px;
}
.mobile-nav a:hover {
  background: var(--accent);
  color: var(--secondary);
}
/* Hide desktop nav in mobile */
@media (max-width: 900px) {
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
}
@media (min-width: 901px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}

/* === FOOTER === */
footer {
  background: var(--primary);
  color: var(--white);
  padding: 44px 0 20px 0;
  margin-top: 48px;
  font-size: 1rem;
  letter-spacing: 0.02em;
}
.footer-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 38px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-branding {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.footer-branding img {
  height: 44px;
  margin-bottom: 4px;
}
.footer-branding p {
  color: var(--accent);
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 600;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-nav a {
  color: var(--accent);
  font-family: var(--font-body);
  font-weight: bold;
  letter-spacing: 0.06em;
  transition: color 0.13s;
}
.footer-nav a:hover {
  color: var(--secondary);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.98rem;
}
.footer-contact img {
  height: 18px;
  vertical-align: middle;
  margin-right: 8px;
}

/* === CARDS === */
.card, .testimonial-card, .feature-item {
  box-shadow: 0 2px 16px 0 rgba(35,88,113,0.08);
  border-radius: var(--radius);
  background: var(--accent);
  transition: box-shadow 0.19s, transform 0.19s;
}
.card:hover {
  box-shadow: 0 4px 24px 0 rgba(35,88,113,0.15);
  transform: translateY(-4px) scale(1.015);
}

/* === TESTIMONIALS === */
.testimonials, .testimonial-card {
  background: none;
}
.testimonial-card {
  background: #fff;
  border: 2.5px solid var(--accent);
  color: #152733;
  box-shadow: 0 2px 12px 0 rgba(35,88,113,0.06);
  font-size: 1.08rem;
  font-family: var(--font-body);
  max-width: 700px;
}
.testimonial-card strong {
  color: var(--primary);
}

/* === ABOUT / SERVICES PREVIEWS, TEXT SECTIONS === */
.about-preview, .about-section, .services-preview, .services-cards, .newsletter-cta {
  background: var(--gray-light);
  border-radius: var(--radius);
  margin-bottom: 36px;
  padding: 38px 0;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* === PROCESS, FAQ, CLAIMS === */
.process, .claims-process, .faq-section, .faq-accordion {
  background: var(--accent);
  border-radius: var(--radius);
  margin-bottom: 32px;
  padding: 32px 0 26px 0;
}
.faq-section .faq-accordion h3 {
  cursor: pointer;
  background: var(--accent);
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  margin-bottom: 6px;
  transition: background 0.14s;
}
.faq-section .faq-accordion h3:hover,
.faq-section .faq-accordion h3:focus {
  background: var(--secondary);
  color: var(--white);
}
.faq-section .faq-accordion div {
  border-bottom: 1px solid #e4efef;
  padding-bottom: 11px;
  margin-bottom: 9px;
}
.faq-section input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--accent);
  margin-bottom: 16px;
  font-family: var(--font-body);
  transition: border 0.14s;
}
.faq-section input[type="text"]:focus {
  border-color: var(--secondary);
}

/* === TABLE - ASSICURAZIONE VIAGGIO === */
.coverage-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 10px 0;
  font-size: 1rem;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 18px 0 rgba(35,88,113,0.07);
}
.coverage-table th, .coverage-table td {
  padding: 14px 12px;
  text-align: center;
  border-bottom: 1px solid #e4efef;
}
.coverage-table th {
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.07rem;
}
.coverage-table td {
  font-family: var(--font-body);
  color: var(--black);
}
.coverage-table tr:last-child td {
  border-bottom: none;
}

/* === CTA BANNER === */
.cta-banner {
  background: var(--secondary);
  border-radius: var(--radius-lg);
  text-align: center;
  margin: 50px 0 0 0;
  padding: 48px 18px;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cta-banner h2 {
  color: var(--white);
  font-size: 2.1rem;
  margin-bottom: 16px;
}
.cta-banner .cta-primary {
  background: var(--primary);
  color: var(--white);
}

/* === BLOG LISTS & CATEGORIES === */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 18px;
}
.article-list li {
  background: var(--accent);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  box-shadow: 0 1px 8px 0 rgba(35,88,113,0.05);
  font-size: 1.08rem;
}
.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 0 0;
}
.category-tags span {
  background: var(--secondary);
  color: var(--white);
  font-weight: bold;
  border-radius: 32px;
  padding: 7px 22px;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

/* === MAP / PLACEHOLDER === */
.placeholder-map {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 180px;
  background: var(--accent);
  border-radius: var(--radius);
  margin: 20px 0;
}
.placeholder-map img {
  width: 120px;
  height: auto;
  opacity: 0.85;
}

/* === THANK YOU SECTION === */
.thank-you-section {
  background: var(--accent);
  border-radius: var(--radius);
  padding: 40px 0;
  text-align: center;
}
.thank-you-section h1 {
  color: var(--primary);
  margin-bottom: 20px;
}
.thank-you-section ul {
  margin: 15px auto;
  display: inline-block;
  text-align: left;
}

/* === COOKIE CONSENT BANNER & MODAL === */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  z-index: 3500;
  background: var(--primary);
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 22px 16px 14px 16px;
  box-shadow: 0 -2px 12px 0 rgba(35,88,113,0.08);
  font-family: var(--font-body);
  font-size: 1rem;
  animation: cookieBannerIn 0.47s cubic-bezier(.42,.05,.48,.86);
}
@keyframes cookieBannerIn {
  from {transform: translateY(100%);}
  to {transform: translateY(0);}
}
.cookie-banner p {
  color: var(--white);
  margin-bottom: 0;
  font-size: 1.04rem;
  text-align: center;
}
.cookie-banner .cookie-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 6px;
}
.cookie-btn {
  background: var(--secondary);
  border: none;
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  padding: 10px 22px;
  font-size: 1rem;
  cursor: pointer;
  margin: 0 0 4px 0;
  transition: background 0.14s, color 0.14s, transform 0.15s;
}
.cookie-btn:focus, .cookie-btn:hover {
  background: var(--accent);
  color: var(--primary);
  transform: translateY(-1.5px) scale(1.02);
}
.cookie-btn.reject {
  background: var(--danger);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #fbf2f3;
  color: var(--danger);
}

/* Cookie Preferences Modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 4000;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(44,54,61,0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookieModalBg .28s cubic-bezier(0.5,0.22,0.3,1);
}
@keyframes cookieModalBg {
  from {opacity: 0;}
  to {opacity: 1;}
}
.cookie-modal {
  background: var(--white);
  color: var(--black);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 36px 0 rgba(35,88,113,0.17);
  padding: 36px 30px;
  max-width: 97vw;
  width: 390px;
  font-family: var(--font-body);
  animation: cookieModalIn .34s cubic-bezier(.47,.07,.38,.95);
  position: relative;
}
@keyframes cookieModalIn {
  from {transform: translateY(60px) scale(0.9); opacity:0;}
  to {transform: none; opacity:1;}
}
.cookie-modal h2 {
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 10px 0;
  border-bottom: 1.5px solid var(--accent);
}
.cookie-modal .cookie-category:last-child {
  border-bottom: none;
}
.cookie-modal label {
  font-weight: 600;
  color: var(--primary);
}
.cookie-modal input[type="checkbox"] {
  accent-color: var(--secondary);
  width: 21px;
  height: 21px;
  margin-left: 15px;
}
.cookie-modal .cookie-modal-btns {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 18px;
}
.cookie-modal .cookie-btn {
  min-width: 80px;
}
.cookie-modal-close {
  position: absolute;
  right: 24px;
  top: 20px;
  background: none;
  border: none;
  color: var(--danger);
  font-size: 2rem;
  cursor: pointer;
  z-index: 4100;
}

/* === RESPONSIVE STYLES === */
@media (max-width: 1024px) {
  .container {
    max-width: 98vw;
    padding: 0 11px;
  }
  .card, .testimonial-card, .feature-item {
    min-width: 160px;
  }
}
@media (max-width: 900px) {
  .footer-wrapper {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
  .hero h1 {
    font-size: 2rem;
  }
}
@media (max-width: 768px) {
  h1, .h1 {
    font-size: 2rem;
  }
  h2, .h2 {
    font-size: 1.2rem;
  }
  .container {
    padding: 0 7px;
  }
  .content-wrapper {
    gap: 13px;
  }
  .section {
    padding: 24px 5px;
    margin-bottom: 38px;
  }
  .features, .feature-grid, .card-container, .card-grid, .content-grid {
    gap: 16px;
  }
  .testimonial-card, .feature-item {
    padding: 15px 9px;
  }
  .feature-item {
    min-width: 170px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .about-preview, .about-section, .services-preview, .services-cards, .newsletter-cta {
    padding: 23px 0;
  }
  .cta-banner {
    padding: 29px 5px;
  }
  .hero {
    padding: 32px 0 24px 0;
  }
}
@media (max-width: 480px) {
  html {
    font-size: 98%;
  }
  h1, .h1 {
    font-size: 1.29rem;
    margin-bottom: 10px;
  }
  h2, .h2 {
    font-size: 1rem;
  }
  .cta-primary {
    font-size: 0.99rem;
    padding: 12px 16px;
  }
  .footer-branding img {
    height: 34px;
  }
  .section, .thank-you-section {
    padding: 16px 0 !important;
  }
  .hero h1 {
    font-size: 1.34rem;
  }
  .placeholder-map {
    min-height: 100px;
  }
  .cookie-modal {
    padding: 20px 7px;
    width: 97vw;
  }
}

/* === HIGH CONTRAST/ACCESSIBILITY === */
@media (prefers-contrast: more) {
  body {
    background: #fff !important;
    color: #222 !important;
  }
  .card, .feature-item, .testimonial-card {
    background: #fff !important;
    border-color: #222 !important;
  }
}

/* === UTILITY === */
.mt-2 { margin-top: 14px !important; }
.mb-2 { margin-bottom: 14px !important; }
.mt-3 { margin-top: 24px !important; }
.mb-3 { margin-bottom: 24px !important; }
.ml-2 { margin-left: 10px !important; }
.mr-2 { margin-right: 10px !important; }

/* === HIDE ON DESKTOP / MOBILE === */
.hide-desktop { display: none !important; }
@media (max-width: 900px) {
  .hide-mobile { display: none !important; }
  .hide-desktop { display: block !important; }
}

/* === SHADOWS, HOVERS, MICRO-INTERACTIONS === */
.card, .feature-item, .testimonial-card, .article-list li {
  transition: box-shadow 0.18s, transform 0.18s, background 0.18s;
}
.card:hover, .feature-item:hover, .article-list li:hover {
  box-shadow: 0 8px 28px 0 rgba(35,88,113,0.15);
  background: #ecfcf6;
  transform: translateY(-3px) scale(1.015);
}

/* === GENERAL FORM ELEMENTS (CONTACT/FORMS) === */
input[type="text"], input[type="email"], textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--accent);
  background: #fff;
  margin-bottom: 13px;
  width: 100%;
  transition: border 0.15s;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  border-color: var(--secondary);
}
button, input[type="submit"] {
  font-family: var(--font-display);
  font-weight: 700;
}

/* === Z-INDEX SAFETY (mobile menu, cookie banners) === */
header, .mobile-menu, .mobile-menu-toggle { z-index: 1010; }
.mobile-menu { z-index: 2000; }
.cookie-banner { z-index: 3500; }
.cookie-modal-overlay { z-index: 4000; }

/* === GEOMETRIC DECORATIVE ELEMENTS === */
.feature-item::after {
  content: "";
  display: block;
  width: 32px;
  height: 3px;
  background: var(--secondary);
  border-radius: 3px;
  margin: 7px 0 0 0;
}
.testimonial-card::before {
  content: "\201C";
  color: var(--secondary);
  font-size: 2.2rem;
  font-family: var(--font-display);
  font-weight: 800;
  margin-right: 14px;
}

/* === ACCESSIBILITY (for strong color contrast in reviews) === */
.testimonial-card, .testimonial-card p {
  color: #152733 !important;
  background: #fff !important;
}

/* === END === */
