/* ============================
  Sapori dal Mondo Rimini
  Elegant Classic Theme CSS
  Mobile-First, Flexbox-Only Layouts
============================ */

/*==== CSS Reset & Normalize ====*/
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: #f9f6f2;
}
*, *::before, *::after {
  box-sizing: inherit;
}
body {
  margin: 0;
  font-family: 'Georgia', 'Times New Roman', serif;
  background: #FCFAF7;
  color: #2E3545;
  min-height: 100vh;
  line-height: 1.7;
  font-size: 1rem;
  letter-spacing: 0.01em;
}
h1, h2, h3, h4, h5, h6 {
  color: #274460;
  font-family: 'Georgia', 'Times New Roman', serif;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.4rem; margin-bottom: 14px; }
h4, h5, h6 { font-size: 1.125rem; margin-bottom: 10px; }
p, ul, ol, table { margin-top: 0; margin-bottom: 16px; }
ul, ol {
  padding-left: 22px;
}
li {
  margin-bottom: 8px;
}
a {
  color: #274460;
  text-decoration: none;
  transition: color .18s;
}
a:hover, a:active, a:focus {
  color: #F2C14E;
}
strong, b {
  font-weight: 700;
  color: #2e3545;
}
em, i {
  font-style: italic;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}
hr {
  border: none;
  border-top: 1px solid #e5e1d8;
  margin: 36px 0;
}
table {
  border-collapse: collapse;
  width: 100%;
  background: #fff;
  margin-bottom: 24px;
  border-radius: 8px;
  overflow: hidden;
}
th, td {
  border: 1px solid #e5e1d8;
  padding: 14px 12px;
  text-align: left;
}
th {
  background: #F2C14E;
  color: #274460;
  font-weight: 700;
}
td {
  background: #fffdf8;
}

/*==== Typography for Elegant Classic style ====*/
.subheadline {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 1.175rem;
  color: #5C677D;
  margin-bottom: 20px;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: 0.03em;
}
small {
  font-size: 0.92rem;
  color: #786c5a;
}

/*==== General Containers ====*/
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
.content-wrapper {
  width: 100%;
}

.section {
  background: #fff;
  border-radius: 18px;
  margin-bottom: 60px;
  padding: 40px 20px;
  box-shadow: 0 8px 28px 0 rgba(39,68,96,0.04), 0 1.5px 6px rgba(244,195,78,0.08);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

/*==== Header ====*/
header {
  background: #fff;
  border-bottom: 1px solid #E8E5D9;
  box-shadow: 0 3px 16px 0 rgba(39,68,96,0.04);
  position: sticky;
  top: 0;
  z-index: 50;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  align-items: center;
}
header nav a {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 1.12rem;
  color: #274460;
  padding: 6px 0;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: color 0.16s, border 0.18s;
}
header nav a:hover, header nav a:focus {
  color: #F2C14E;
  border-bottom: 2px solid #F2C14E;
  background: transparent;
}
header img {
  height: 56px;
  min-width: 48px;
  margin-right: 24px;
}

/*==== Call to Action Buttons ====*/
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Georgia', 'Times New Roman', serif;
  background: #F2C14E;
  color: #274460;
  border-radius: 30px;
  border: none;
  outline: none;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 12px 32px;
  box-shadow: 0 4px 12px rgba(244,193,78,0.06);
  margin: 8px 0;
  text-align: center;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  min-width: 130px;
}
.cta.primary {
  background: #274460;
  color: #fff;
  box-shadow: 0 6px 16px rgba(39,68,96,0.10);
}
.cta.primary:hover, .cta.primary:focus {
  background: #F2C14E;
  color: #274460;
  box-shadow: 0 3px 16px rgba(39,68,96,0.12);
}
.cta:not(.primary):hover, .cta:not(.primary):focus {
  background: #274460;
  color: #fff;
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/*==== Flex Layout Patterns ====*/
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(39,68,96,0.08);
  padding: 26px 24px;
  flex: 1 1 330px;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.18s, box-shadow 0.18s;
}
.card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 24px 0 rgba(39,68,96,0.10);
  z-index: 2;
}

.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: #fffdf8;
  border-radius: 14px;
  box-shadow: 0 2px 12px 0 rgba(39,68,96,0.06);
  margin-bottom: 20px;
  flex: 1 1 280px;
  font-size: 1.10rem;
  color: #2e3545;
  min-width: 200px;
  border-left: 5px solid #F2C14E;
  transition: box-shadow 0.16s;
}
.testimonial-card strong {
  font-family: 'Georgia', 'Times New Roman', serif;
  color: #274460;
  font-size: 0.98rem;
  letter-spacing: 0.025em;
  margin-left: 8px;
}
.testimonial-card:hover {
  box-shadow: 0 8px 28px 0 rgba(39,68,96,0.12);
}
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.features-grid > div {
  background: #fffdf8;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(244,193,78,0.07);
  flex: 1 1 250px;
  min-width: 240px;
  padding: 30px 28px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  border: 1.5px solid #f2e8cb;
  transition: box-shadow 0.17s, border 0.18s;
}
.features-grid > div img {
  height: 44px;
  width: auto;
  margin-bottom: 8px;
}
.features-grid > div:hover {
  box-shadow: 0 8px 20px rgba(244,193,78,0.17);
  border-color: #F2C14E;
}
/* For .feature-item interface (not seen in current HTML) */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fffdf8;
  margin-bottom: 20px;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(244,193,78,0.06);
  padding: 20px 16px;
}

.testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 16px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 16px;
}
.contact-details p {
  display: flex;
  align-items: center;
  gap: 10px;
}
.contact-details img {
  height: 22px;
  width: auto;
}

/*==== Footer ====*/
footer {
  background: #fff;
  border-top: 1px solid #E8E5D9;
  margin-top: 40px;
  box-shadow: 0 -3px 16px 0 rgba(39,68,96,0.04);
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 22px 20px 14px;
}
footer nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 6px;
}
footer nav a {
  color: #9b946d;
  font-size: 1rem;
  font-family: 'Georgia', 'Times New Roman', serif;
  transition: color 0.16s;
}
footer nav a:hover {
  color: #F2C14E;
}

/*==== Responsive Styles (Mobile-First) ====*/
@media (max-width: 1020px) {
  .container {
    max-width: 98vw;
    padding: 0 12px;
  }
  .features-grid > div {
    min-width: 180px;
    padding: 22px 12px 10px;
  }
}
@media (max-width: 850px) {
  .card-container, .features-grid, .content-grid, .testimonials {
    gap: 14px;
  }
  .container {
    padding: 0 8px;
  }
  .section {
    padding: 30px 8px;
  }
  header .container {
    gap: 6px;
  }
  .features-grid > div {
    padding: 16px 10px 8px;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 100vw;
    padding: 0 4vw;
  }
  .content-grid, .card-container, .features-grid, .testimonials {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  header nav {
    display: none;
  }
  .cta.primary {
    margin-left: 0;
  }
}
@media (max-width: 600px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.3rem; }
  .section {
    padding: 18px 2vw;
    margin-bottom: 36px;
    border-radius: 12px;
  }
  .features-grid > div, .card {
    border-radius: 10px;
    padding: 14px 6px 8px;
  }
  .testimonial-card {
    padding: 14px 8px;
    border-radius: 9px;
  }
}

/*==== Hamburger/Mobile Menu Styles ====*/
.mobile-menu-toggle {
  display: inline-flex;
  background: #F2C14E;
  color: #274460;
  font-size: 2.2rem;
  border: none;
  border-radius: 6px;
  padding: 4px 16px;
  cursor: pointer;
  margin-left: 8px;
  z-index: 102;
  align-items: center;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  min-width: 44px;
  min-height: 44px;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: #274460;
  color: #fff;
}
@media (min-width: 769px) {
  .mobile-menu-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; height: 100vh; width: 100vw;
  background: rgba(39,68,96,0.95);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transform: translateX(-100vw);
  transition: transform 0.36s cubic-bezier(.56,.02,.29,1.01);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  position: absolute;
  top: 20px; right: 20px;
  background: #F2C14E;
  color: #274460;
  border-radius: 22px;
  border: none;
  font-size: 2.2rem;
  padding: 4px 14px;
  z-index: 2001;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(244,193,78,0.13);
  transition: background .2s, color .2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #274460;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 90px 32px 32px 24px;
  font-family: 'Georgia', 'Times New Roman', serif;
  width: 100%;
  height: 100%;
  overflow-y: auto;
}
.mobile-nav a {
  font-size: 1.3rem;
  color: #fff;
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 1.5px solid #F2C14E30;
  transition: color 0.17s, border 0.2s;
  border-radius: 2px;
}
.mobile-nav a:hover, .mobile-nav a:active {
  color: #F2C14E;
  border-bottom: 2px solid #F2C14E;
  background: #1c2b3a44;
  padding-left: 4px;
}

/*==== Cookie Consent Banner ====*/
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fffdf8;
  color: #2e3545;
  border-top: 2.5px solid #F2C14E;
  box-shadow: 0 -3px 12px rgba(39,68,96,0.10);
  z-index: 9999;
  padding: 24px 20px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  font-size: 1.1rem;
  animation: cookieBannerFadeIn 0.7s cubic-bezier(.77,.11,.6,1.1);
}
@keyframes cookieBannerFadeIn {
  from { opacity: 0; transform: translateY(80px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-banner .cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cookie-banner button {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 1rem;
  padding: 10px 24px;
  border-radius: 20px;
  border: none;
  outline: none;
  cursor: pointer;
  margin: 2px 0;
  font-weight: 700;
  transition: background .17s, color .13s, box-shadow .18s;
}
.cookie-banner .cookie-accept {
  background: #274460;
  color: #fff;
}
.cookie-banner .cookie-accept:hover, .cookie-banner .cookie-accept:focus {
  background: #F2C14E;
  color: #274460;
}
.cookie-banner .cookie-reject {
  background: #F2C14E;
  color: #274460;
}
.cookie-banner .cookie-reject:hover, .cookie-banner .cookie-reject:focus {
  background: #274460;
  color: #fff;
}
.cookie-banner .cookie-settings-btn {
  background: #fff;
  border: 1.5px solid #F2C14E;
  color: #274460;
}
.cookie-banner .cookie-settings-btn:hover, .cookie-banner .cookie-settings-btn:focus {
  background: #F2C14E15;
  color: #274460;
}

/*==== Cookie Settings Modal ====*/
.cookie-modal-bg {
  position: fixed;
  z-index: 10001;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(39,68,96,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInCookieModalBg 0.3s;
}
@keyframes fadeInCookieModalBg {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: #2e3545;
  border-radius: 18px;
  box-shadow: 0 10px 48px rgba(39,68,96,0.22);
  max-width: 410px;
  width: 98vw;
  padding: 34px 28px 32px 28px;
  z-index: 10002;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  animation: cookieModalIn .4s cubic-bezier(.72,.05,.32,1.16);
}
@keyframes cookieModalIn {
  from { opacity: 0; transform: translateY(60px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-modal h3 {
  margin: 0 0 18px 0;
  font-size: 1.3rem;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 1.06rem;
  width: 100%;
}
.cookie-category label {
  font-weight: bold;
  color: #274460;
}
.cookie-category input[type="checkbox"] {
  accent-color: #F2C14E;
  width: 18px;
  height: 18px;
}
.cookie-modal-actions {
  display: flex;
  gap: 15px;
  margin-top: 22px;
}
.cookie-modal .close-cookie-modal {
  margin-left: auto;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #274460;
  padding: 2px 10px;
  cursor: pointer;
  position: absolute;
  top: 14px; right: 22px;
}
.cookie-modal .close-cookie-modal:hover {
  color: #F2C14E;
}

@media (max-width: 620px) {
  .cookie-modal {
    padding: 16px 8px 18px 8px;
    border-radius: 12px;
  }
  .cookie-modal h3 {
    font-size: 1.08rem;
  }
}

/*==== Misc. Utility ====*/
.text-center {
  text-align: center;
}
.d-flex {
  display: flex !important;
}
.flex-column {
  flex-direction: column !important;
}
.flex-row {
  flex-direction: row !important;
}
.gap-20 {
  gap: 20px !important;
}
.rounded {
  border-radius: 18px !important;
}

/*==== Animations & Micro-Interactions ====*/
.cta, .cta.primary, .card, .features-grid > div, .testimonial-card {
  transition: 
    background 0.18s cubic-bezier(0.55,.17,.53,1.14), 
    color 0.18s cubic-bezier(0.55,.17,.53,1.14), 
    box-shadow 0.18s, 
    border 0.19s, 
    transform 0.16s
  ;
}
a:focus, button:focus, .cta:focus {
  outline: 2.5px solid #F2C14E;
  outline-offset: 2px;
}

/*==== Accessibility and Selection ====*/
::selection {
  background: #F2C14E77;
  color: #274460;
}
::-moz-selection {
  background: #F2C14E77;
  color: #274460;
}

/*==== Hide scrollbar for modal/mobile nav on iOS ====*/
.mobile-nav, .cookie-modal {
  -webkit-overflow-scrolling: touch;
}

/*==== Custom Scrollbars ====*/
body::-webkit-scrollbar {
  width: 9px;
  background: #F2C14E27;
}
body::-webkit-scrollbar-thumb {
  background: #F2C14E;
  border-radius: 6px;
}

/*==== Print Basics ====*/
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-bg {display: none !important;}
  body { background: #fff; color: #222; }
}
