/* =========================
   Vivace Inglese - style.css
   Warm Friendly Theme
   ========================= */

/* ===== CSS 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;
}
html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.5;
  background: #FFFBEF;
  color: #222;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a {
  color: #245488;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus, a:hover {
  color: #1B8B6F;
  outline: none;
}
ul, ol {
  margin-bottom: 20px;
  margin-left: 20px;
}
ul li, ol li {
  margin-bottom: 8px;
}
img {
  max-width: 100%;
  height: auto;
  display: inline-block;
}
blockquote {
  font-style: italic;
  background: #FFF6D1;
  border-left: 6px solid #FFD966;
  padding: 18px 24px;
  margin: 24px 0;
  border-radius: 10px;
  color: #245488;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  color: #245488;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  line-height: 1.15;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
  line-height: 1.2;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 14px;
  line-height: 1.25;
}
h4 {
  font-size: 1.125rem;
}
strong {
  font-weight: bold;
  color: #1B8B6F;
}
p {
  margin-bottom: 14px;
  font-size: 1rem;
}

/* Responsive Typography */
@media (max-width: 600px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  h3 {
    font-size: 1.125rem;
  }
}

/* ===== BRAND COLORS ===== */
:root {
  --primary: #245488;
  --secondary: #1B8B6F;
  --accent: #FFD966;
  --bg-light: #FFFBEF;
  --bg-card: #FFF9ED;
  --bg-section: #FFFBF3;
  --error: #EE5050;
  --text-main: #222;
  --shadow: 0 6px 24px -4px rgba(36,84,136,0.08);
}

/* ===== CONTAINERS AND LAYOUT ===== */
.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ===== SECTIONS ===== */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--bg-section);
  border-radius: 22px;
  box-shadow: 0 2px 12px -4px rgba(36,84,136,0.045);
  transition: box-shadow 0.3s;
}
section:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  section {
    padding: 28px 7vw;
    margin-bottom: 38px;
    border-radius: 16px;
  }
}

/* ===== NAVIGATION ===== */
header {
  background: #fff;
  padding: 0 0 0 0;
  box-shadow: 0 2px 12px -4px rgba(36,84,136,0.05);
  z-index: 100;
  position: relative;
}
header nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 14px 16px 14px 16px;
}
header nav img[alt="Vivace Inglese"] {
  height: 44px;
  border-radius: 12px;
}
header nav ul {
  display: flex;
  flex-direction: row;
  gap: 12px;
  list-style: none;
}
header nav ul li {
  position: relative;
  margin: 0 2px;
}
header nav ul li a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--primary);
  border-radius: 8px;
  padding: 6px 14px;
  transition: background 0.2s, color 0.2s;
}
header nav ul li a:hover,
header nav ul li a:focus {
  background: var(--accent);
  color: #1B8B6F;
}

header .btn-primary {
  margin-left: 14px;
}

@media (max-width: 1000px) {
  header nav {
    padding: 12px 5vw;
  }
}
@media (max-width: 900px) {
  header nav ul {
    gap: 7px;
  }
  header nav {
    gap: 8px;
  }
}

/* ===== MOBILE MENU ===== */
.mobile-menu-toggle {
  display: none;
  background: var(--primary);
  color: #fff;
  font-size: 2rem;
  border: none;
  border-radius: 12px;
  padding: 6px 16px;
  cursor: pointer;
  margin-right: 6px;
  transition: background 0.2s;
  z-index: 120;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--secondary);
}

@media (max-width: 900px) {
  header nav ul,
  header nav .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 4px 32px 0 rgba(36,84,136,0.14);
  transform: translateX(-100%);
  transition: transform 0.33s cubic-bezier(.75,0,.19,1);
  z-index: 2999;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: transparent;
  color: var(--primary);
  border: none;
  font-size: 2rem;
  margin: 18px 18px 0 0;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.15s;
  width: 44px;
  height: 44px;
  display: flex; align-items: center; justify-content: center;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--accent);
  color: var(--secondary);
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 32px 0 0 32px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: var(--primary);
  font-size: 1.25rem;
  padding: 12px 0;
  border-radius: 10px;
  transition: background 0.19s, color 0.19s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--accent);
  color: var(--secondary);
}

/* Hamburger always top-right */
@media (max-width: 900px) {
  header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
  }
  header .mobile-menu-toggle {
    position: absolute;
    top: 14px; right: 16px;
    z-index: 121;
  }
}

/* ===== BUTTONS ===== */
.btn-primary, .btn-secondary {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.11rem;
  display: inline-block;
  padding: 12px 32px;
  border: none;
  border-radius: 32px;
  margin: 0 0 10px 0;
  cursor: pointer;
  text-align: center;
  letter-spacing: 0.01em;
  min-width: 120px;
  box-shadow: 0 2px 16px -8px rgba(36,84,136,0.098);
  transition: background 0.15s, color 0.19s, box-shadow 0.23s, transform 0.17s;
  outline: none;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:active, .btn-primary:focus, .btn-primary:hover {
  background: var(--secondary);
  color: #fff;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 20px -8px #1B8B6F33;
}
.btn-secondary {
  background: var(--accent);
  color: var(--primary);
}
.btn-secondary:active, .btn-secondary:focus, .btn-secondary:hover {
  background: #FFF2A3;
  color: var(--secondary);
  transform: translateY(-1.5px) scale(1.01);
  box-shadow: 0 8px 16px -8px #FFD96644;
}

/* ===== CARDS & FEATURE ITEMS ===== */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
  margin-bottom: 10px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--bg-card);
  padding: 22px 22px;
  border-radius: 19px;
  min-width: 230px;
  max-width: 350px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.18s, transform 0.15s;
  margin-bottom: 20px;
}
.feature-item img {
  height: 40px;
  width: 40px;
  border-radius: 14px;
}
.feature-item:hover, .feature-item:focus-within {
  box-shadow: 0 14px 36px -6px #FFD96666;
  transform: translateY(-4px) scale(1.025);
}

/* ===== TESTIMONIALS ===== */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 28px 30px 22px 28px;
  margin-bottom: 20px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 4px 24px -9px #24548822;
  border: 1.5px solid #FFD966;
  min-width: 220px;
  max-width: 550px;
  color: #2b2b2b;
  line-height: 1.55;
}
.testimonial-card strong {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #245488;
  margin-top: 3px;
}
.star-rating {
  display: flex;
  flex-direction: row;
  gap: 2px;
  align-items: center;
}
.testimonial-card p {
  font-size: 1.1em;
  margin-bottom: 6px;
  color: #1B8B6F;
}
.testimonial-card img {
  height: 25px;
  width: 25px;
}

/* ====== FAQ ACCORDION ====== */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 16px 0 20px 0;
}
.faq-accordion > div {
  background: #fff;
  border-radius: 17px;
  box-shadow: 0 1px 10px -4px #24548818;
  padding: 18px 22px 12px 22px;
  margin-bottom: 8px;
}
.faq-accordion strong {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #245488;
  font-size: 1.1em;
  margin-bottom: 3px;
  display: block;
}

/* ===== CARDS (GENERIC) ===== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--bg-card);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 28px 26px;
  min-width: 200px;
  max-width: 350px;
  display: flex;
  flex-direction: column;
 }

/* ===== CONTENT GRID ===== */
.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;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ===== MAP PLACEHOLDER ===== */
.map-placeholder {
  background: #FFD96622;
  border: 1.8px dashed #FFD966;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  margin: 20px 0;
  color: #245488;
  font-weight: 700;
  font-family: 'Montserrat', Arial, sans-serif;
}

/* ===== FOOTER ===== */
footer {
  background: #FFF9ED;
  padding: 32px 0 18px 0;
  margin-top: 34px;
  border-top: 2.5px solid #FFD96644;
}
footer .content-wrapper {
  align-items: center;
  gap: 18px;
  max-width: 1040px;
}
footer img[alt="Vivace Inglese"] {
  height: 48px;
  border-radius: 13px;
  margin-bottom: 8px;
}
footer nav {
  display: flex;
  flex-direction: row;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.95em;
  color: #245488;
}
footer nav a {
  color: #245488;
  padding: 3px 6px;
  border-radius: 7px;
  font-weight: 500;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: background 0.15s;
}
footer nav a:hover,
footer nav a:focus {
  background: #FFD966;
  color: #1B8B6F;
}
footer .contact-summary {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 7px;
  margin: 13px 0 8px 0;
  align-items: center;
  justify-content: center;
  color: #245488;
  font-size: .98em;
}
footer .contact-summary img {
  height: 18px;
  width: 18px;
  vertical-align: middle;
  margin-right: 3px;
  opacity: 0.7;
  border-radius: 5px;
}
footer .copyright {
  font-size: 0.95em;
  color: #ABA39B;
  margin-top: 13px;
}

/* Social icons placeholder, can be filled */
footer .social-links {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin: 7px 0;
}

/* ======= RESPONSIVE FLEXBOX ======= */
@media (max-width: 900px) {
  .features-grid {
    gap: 18px;
    justify-content: flex-start;
  }
  .testimonial-card {
    max-width: 94vw;
    margin-left: 2vw;
    margin-right:2vw;
  }
  .feature-item {
    min-width: 180px;
    max-width: 100vw;
  }
  .faq-accordion > div { padding: 13px 10px 10px 16px; }
}
@media (max-width: 720px) {
  .features-grid {
    flex-direction: column;
    gap: 15px;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  footer .contact-summary,
  .container, .content-wrapper {
    flex-direction: column;
    align-items: stretch;
  }
}
@media (max-width: 560px) {
  .testimonial-card, .feature-item, .faq-accordion > div, .card {
    padding-left: 10px;
    padding-right: 10px;
  }
  section {
    padding: 19px 5vw;
  }
  header nav img[alt="Vivace Inglese"] {
    height: 35px;
  }
}

/*   text-image-section mobile stacking   */
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: stretch; gap: 17px; }
  .content-grid { flex-direction: column; }
}

/* ====== HERO SECTION ===== */
section:first-of-type {
  background: linear-gradient(103deg, #FFD96626 60%, #FFFBEF 100%);
  box-shadow: 0 6px 32px -10px #FFD96633;
  padding-top: 60px;
  padding-bottom: 64px;
}
section:first-of-type h1 {
  color: #245488;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.01em;
  margin-bottom: 15px;
}

/* ====== OTHER section tweaks ====== */
section ul, section ol {
  margin-bottom: 0;
  margin-top: 2px;
}

/* ===== Accessibility: focus highlight ===== */
:focus {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  transition: outline 0.14s;
}
button:focus {
  outline: 2px solid var(--secondary);
}

/* ===== Micro-interactions ===== */
a, .btn-primary, .btn-secondary, .feature-item, .mobile-nav a, .faq-accordion > div {
  transition: box-shadow 0.17s, background 0.12s, color 0.16s, transform 0.14s;
}

/* ===== Cookie Consent Banner ===== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #FFFBEF;
  color: #245488;
  box-shadow: 0 -2px 22px -6px #FFD96666;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 20px 32px;
  gap: 14px;
  z-index: 3500;
  border-top: 2px solid #FFD966;
  font-size: 1rem;
  animation: cookieSlideIn 0.7s cubic-bezier(.31,1.08,.41,.93);
}
@keyframes cookieSlideIn {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner__buttons {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  border-radius: 26px;
  padding: 9px 26px;
  margin: 3px 0px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.16s, color 0.16s, box-shadow 0.17s;
  box-shadow: 0 2px 14px -8px #FFD96655;
}
.cookie-banner .accept {
  background: var(--primary);
  color: #fff;
}
.cookie-banner .accept:hover,
.cookie-banner .accept:focus {
  background: var(--secondary);
}
.cookie-banner .reject {
  background: #EEE6C7;
  color: var(--primary);
}
.cookie-banner .reject:hover,
.cookie-banner .reject:focus {
  background: #FFD96699;
  color: var(--secondary);
}
.cookie-banner .settings {
  background: var(--accent);
  color: var(--primary);
}
.cookie-banner .settings:hover,
.cookie-banner .settings:focus {
  background: #FFF2A0;
  color: var(--secondary);
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 15px 12px;
    font-size: 0.97rem;
  }
  .cookie-banner__buttons {
    gap: 8px;
  }
}

/* ===== Cookie Preferences Modal ===== */
.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(36, 84, 136, 0.33);
  backdrop-filter: blur(1.5px);
  z-index: 4500;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookieModalFadeIn 0.3s;
}
@keyframes cookieModalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal {
  background: #FFFBEF;
  border-radius: 20px;
  max-width: 380px;
  width: 93vw;
  padding: 34px 22px 26px 22px;
  box-shadow: 0 6px 56px -10px #FFD966bb;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 4502;
  color: #245488;
  animation: cookieModalGrowIn 0.35s cubic-bezier(.6,2,.44,.97);
}
@keyframes cookieModalGrowIn {
  0%   { opacity: 0; transform: scale(.85); }
  70%  { opacity: 1; transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}
.cookie-modal h3 {
  color: #245488;
  font-size: 1.35rem;
  margin-bottom: 0px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 8px 0;
  font-size: 1rem;
}
.cookie-modal input[type="checkbox"] {
  accent-color: var(--primary);
  width: 17px; height: 17px;
}
.cookie-modal .locked {
  color: #1B8B6F;
  font-size: 0.95em;
  margin-left: 6px;
  font-weight: 600;
}
.cookie-modal .modal-footer {
  display: flex;
  gap: 14px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.cookie-modal .modal-close {
  background: #FFD966;
  color: #245488;
  border: none;
  border-radius: 22px;
  font-weight: 700;
  padding: 8px 24px;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 2px 16px -8px #FFD96633;
  transition: background 0.18s, color 0.17s;
}
.cookie-modal .modal-close:focus, .cookie-modal .modal-close:hover {
  background: #FFF2A3;
  color: #1B8B6F;
}

@media (max-width: 500px){
  .cookie-modal{ padding:18px 5vw 14px 5vw; }
}

/* ===== MISC ===== */
::-moz-selection { background: #FFD96688; color: #245488; }
::selection      { background: #FFD96688; color: #245488; }

/* ======== Utility Classes ======== */
.hide { display: none!important; }
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }
.mt-4    { margin-top: 4px!important; }
.mb-10   { margin-bottom: 10px!important; }
.mb-20   { margin-bottom: 20px!important; }
.mb-30   { margin-bottom: 30px!important; }

/* Ensure no content is ever overlapped, all margins and paddings are respected! */

/* ===== CUSTOM SCROLLBAR ===== */
body {
  scrollbar-color: #FFD966 #fff9ed;
  scrollbar-width: thin;
}
::-webkit-scrollbar {
  width: 10px;
  background: #FFFBEF;
}
::-webkit-scrollbar-thumb {
  background: #FFD966;
  border-radius: 9px;
}

/* ========== End of Style ========== */
