/* ==========================================================
  Fractal Casa - Scandinavian Clean CSS
  Developed for mobile-first contemporary, elegant, accessible websites.
  Brand: Modern, elegant, Scandinavian-inspired, light, natural, harmonious.
  Font: Montserrat (display), Nunito (body)
========================================================== */

/* ====================== 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;
  box-sizing: border-box;
  vertical-align: baseline;
}
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}
body {
  line-height: 1.6;
  font-family: 'Nunito', Arial, Helvetica, sans-serif;
  background: #F5F8F2;
  color: #32404A;
  font-size: 16px;
  min-height: 100vh;
}
* {
  box-sizing: border-box;
}
a {
  color: #32404A;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #A9C95A;
  outline-offset: 2px;
}
img {
  max-width: 100%;
  display: block;
}
ul, ol {
  padding-left: 1.25em;
  margin-bottom: 1rem;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #32404A;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
p {
  margin-bottom: 1rem;
  font-size: 16px;
  color: #32404A;
}

/* =================== BRANDING & COLORS =================== */
:root {
  --primary: #32404A;
  --secondary: #A9C95A;
  --accent: #F5F8F2;
  --surface: #FFFFFF;
  --text-main: #32404A;
  --text-inverse: #fff;
  --text-muted: #82929E;
  --shadow: 0 2px 8px 0 rgba(50,64,74,0.06);
  --radius: 14px;
}

/* =================== TYPOGRAPHY SCALE =================== */
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.375rem;
  margin-bottom: 14px;
}
h4 {
  font-size: 1.125rem;
  margin-bottom: 12px;
}
section ul, section ol {
  font-size: 16px;
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.0625rem; }
}

/* ======= GENERAL CONTAINER & LAYOUT (FLEX) ======= */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 36px;
    padding: 28px 10px;
  }
}

/* ========= FLEXBOX CARD / GRID SYSTEM ========= */
.card-container,
.card-grid,
.feature-grid,
.tips-preview,
.faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card,
.tips-preview li,
.feature-grid li,
.faq-item {
  margin-bottom: 20px;
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 20px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.card:hover,
.feature-grid li:hover,
.tips-preview li:hover {
  box-shadow: 0 4px 16px 0 rgba(50,64,74,0.13);
  transform: translateY(-2px) scale(1.0125);
}

.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.testimonial-card blockquote {
  font-family: 'Nunito', Arial, Helvetica, sans-serif;
  color: #32404A;
  font-size: 1.1rem;
  font-style: italic;
  margin: 0;
  line-height: 1.45;
}
.testimonial-card span {
  display: block;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  color: var(--primary);
  font-style: normal;
  margin-top: 8px;
  font-size: 1rem;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.tips-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.tips-preview li {
  flex: 1 1 280px;
  min-width: 220px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 18px 16px;
  transition: box-shadow 0.15s, transform 0.15s;
}

@media (max-width: 768px) {
  .tips-preview {
    flex-direction: column;
    gap: 16px;
  }
}

/* =============== MAIN NAVIGATION & LOGO ================ */
header {
  background: var(--accent);
  width: 100%;
  box-shadow: 0 2px 8px 0 rgba(50,64,74,0.05);
  z-index: 100;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 10px 0;
  gap: 16px;
}
.logo {
  height: 38px;
  width: auto;
  margin-right: 22px;
  display: block;
}
.main-nav ul {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  list-style: none;
  margin: 0 0 0 15px;
}
.main-nav li a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #32404A;
  padding: 7px 12px;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
}
.main-nav li a:hover,
.main-nav li a:focus {
  color: #A9C95A;
  background: rgba(169,201,90,0.07);
}

.btn-primary,
.btn-secondary {
  display: inline-block;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 17px;
  border: none;
  border-radius: 22px;
  padding: 11px 28px;
  transition: background 0.22s, color 0.18s, box-shadow 0.17s, transform 0.12s;
  box-shadow: 0 2px 8px 0 rgba(50,64,74,0.05);
  cursor: pointer;
  outline: none;
  text-align: center;
  margin-top: 6px;
  margin-bottom: 10px;
}
.btn-primary {
  background: #A9C95A;
  color: #32404A;
}
.btn-primary:hover,
.btn-primary:focus {
  background: #32404A;
  color: #fff;
}
.btn-secondary {
  background: #fff;
  color: #32404A;
  border: 1.5px solid #A9C95A;
}
.btn-secondary:hover,
.btn-secondary:focus {
  background: #A9C95A;
  color: #32404A;
}

/* ================ RESPONSIVE NAVIGATION ================ */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 30px;
  color: #32404A;
  margin-left: auto;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background 0.18s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #e1e7db;
}

/* MOBILE NAV STYLES */
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #F5F8F2;
  z-index: 999;
  padding: 24px 0 0 0;
  transform: translateX(-100%);
  transition: transform 0.34s cubic-bezier(.37,.55,.58,1.27);
  box-shadow: 4px 0 40px 0 rgba(50,64,74,0.09);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin-right: 26px;
  background: none;
  border: none;
  font-size: 32px;
  color: #32404A;
  cursor: pointer;
  margin-bottom: 14px;
  padding: 8px 10px;
  border-radius: 8px;
  transition: background 0.18s;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  background: #e1e7db;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 0;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  padding: 18px 26px;
  font-weight: 600;
  font-size: 1.15rem;
  color: #32404A;
  border-bottom: 1px solid #e1e7db;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:focus,
.mobile-nav a:hover {
  background: #A9C95A;
  color: #fff;
}

@media (max-width: 1020px) {
  .main-nav ul {
    gap: 8px;
  }
}
@media (max-width: 900px) {
  .main-nav ul,
  .main-nav .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 901px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ================== FOOTER LAYOUT =================== */
footer {
  background: #fff;
  color: #32404A;
  font-size: 15px;
  padding: 38px 0 28px 0;
  box-shadow: 0 -2px 10px 0 rgba(50,64,74,0.06);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 18px;
}
.footer-nav a {
  color: #32404A;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  border-radius: 8px;
  padding: 6px 12px;
  transition: background 0.16s;
}
.footer-nav a:focus,
.footer-nav a:hover {
  background: #F5F8F2;
  color: #A9C95A;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
}
.contact-info img {
  height: 19px;
  width: 19px;
  margin-right: 8px;
  vertical-align: middle;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}
.footer-brand img {
  height: 34px;
  width: auto;
}

@media (max-width: 600px) {
  footer .container {
    padding: 0 10px;
  }
  .footer-nav, .contact-info, .footer-brand {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
}

/* ================= SCANDINAVIAN ELEMENTS ================ */
section {
  background: none;
  border-radius: 0;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 10px;
  margin-bottom: 8px;
}
.feature-grid li {
  flex: 1 1 245px;
  min-width: 185px;
  background: #fff;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.16s, transform 0.17s;
}
.feature-grid li img {
  margin-bottom: 13px;
  height: 38px;
  width: 38px;
}
.feature-grid li h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #32404A;
}
.feature-grid li p {
  color: #32404A;
  font-size: 1rem;
}
@media (max-width: 900px) {
  .feature-grid {
    flex-direction: column;
    gap: 16px;
  }
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.service-list li {
  background: #fff;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 22px 18px 18px 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.service-list h3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 1.15rem;
}
.prezzo {
  color: #A9C95A;
  font-weight: 700;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  margin-left: 10px;
}

.faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.faq-item {
  flex: 1 1 310px;
  min-width: 185px;
}
@media (max-width: 900px) {
  .faq-list {
    flex-direction: column;
    gap: 14px;
  }
}

.newsletter-signup {
  display: flex;
  align-items: center;
  padding: 11px 16px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px 0 rgba(50,64,74,0.04);
  gap: 10px;
  margin-top: 7px;
}

/* =================== CONTACT & SOCIAL ==================== */
.contact-detail-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-top: 10px;
  margin-bottom: 19px;
}
.contact-detail-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  font-size: 1rem;
}
.social-links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.social-links a {
  display: inline-block;
  background: #F5F8F2;
  border-radius: 50%;
  padding: 7px;
  margin-right: 5px;
  transition: background 0.15s;
}
.social-links a:focus,
.social-links a:hover {
  background: #A9C95A;
}
.social-links img {
  width: 24px;
  height: 24px;
}

/* =============== COOKIES CONSENT BANNER ================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fff;
  color: #32404A;
  box-shadow: 0 -2px 16px rgba(50,64,74,0.09);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  padding: 20px 16px 12px 16px;
  transition: transform 0.3s;
}
.cookie-banner.hide {
  transform: translateY(120%);
  pointer-events: none;
}
.cookie-banner__text {
  font-size: 1rem;
  max-width: 700px;
  text-align: center;
}
.cookie-banner__actions {
  display: flex;
  gap: 11px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.cookie-btn {
  border-radius: 18px;
  border: none;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 8px 19px;
  margin: 0;
  cursor: pointer;
  transition: background 0.13s, color 0.13s, box-shadow 0.11s;
  box-shadow: 0 1px 6px 0 rgba(50,64,74,0.04);
}
.cookie-btn.accept {
  background: #A9C95A;
  color: #32404A;
}
.cookie-btn.accept:hover,
.cookie-btn.accept:focus {
  background: #32404A;
  color: #fff;
}
.cookie-btn.settings {
  background: #F5F8F2;
  color: #32404A;
  border: 1.2px solid #A9C95A;
}
.cookie-btn.settings:hover,
.cookie-btn.settings:focus {
  background: #A9C95A;
  color: #32404A;
}
.cookie-btn.reject {
  background: #fff;
  border: 1.2px solid #32404A;
  color: #32404A;
}
.cookie-btn.reject:hover,
.cookie-btn.reject:focus {
  background: #32404A;
  color: #fff;
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(50,64,74,0.17);
  z-index: 2020;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s;
}
.cookie-modal-overlay.open {
  pointer-events: auto;
  opacity: 1;
}
.cookie-modal {
  background: #fff;
  color: #32404A;
  border-radius: 19px;
  box-shadow: 0 6px 40px 2px rgba(50,64,74,0.14);
  max-width: 400px;
  width: 97vw;
  padding: 32px 20px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: fadein 0.24s cubic-bezier(.3,.85,.37,1.2);
}
@keyframes fadein {
  0% { opacity: 0; transform: scale(0.97); }
  100% { opacity: 1; transform: scale(1); }
}
.cookie-modal__header {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1.13rem;
  margin-bottom: 7px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 7px;
}
.cookie-category label {
  font-family: 'Nunito', Arial, Helvetica, sans-serif;
  font-size: 1rem;
}
.cookie-toggle {
  width: 34px;
  height: 18px;
  appearance: none;
  background: #e1e7db;
  border-radius: 999px;
  position: relative;
  outline: none;
  transition: background 0.19s;
  cursor: pointer;
}
.cookie-toggle:checked {
  background: #A9C95A;
}
.cookie-toggle:before {
  content: '';
  display: block;
  position: absolute;
  left: 3px;
  top: 2.5px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.19s;
}
.cookie-toggle:checked:before {
  left: 17px;
}
.cookie-modal__actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.cookie-modal__close {
  position: absolute;
  top: 13px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  color: #32404A;
  border-radius: 5px;
  transition: background 0.16s;
  cursor: pointer;
}
.cookie-modal__close:hover,
.cookie-modal__close:focus {
  background: #e1e7db;
}

/* =================== UTILITY CLASSES =================== */
.text-muted {
  color: #82929E !important;
}
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-1 { margin-top: 8px; }
.mb-1 { margin-bottom: 8px; }
.mt-2 { margin-top: 16px; }
.mb-2 { margin-bottom: 16px; }
.mt-3 { margin-top: 24px; }
.mb-3 { margin-bottom: 24px; }
.rounded { border-radius: var(--radius); }
.shadow { box-shadow: var(--shadow); }

/* =================== MISC & MEDIA QUERIES =================== */
@media (max-width: 768px) {
  .container {
    padding: 0 10px;
  }
  .main-nav {
    min-height: 54px;
    gap: 9px;
  }
  .content-wrapper {
    gap: 20px;
  }
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.2rem; }
}
@media (max-width: 390px) {
  .btn-primary, .btn-secondary {
    padding: 10px 11px;
    font-size: 15px;
  }
  h1 { font-size: 1.19rem; }
}

/* ===================== MICRO-INTERACTIONS ===================== */
.card, .feature-grid li, .tips-preview li, .service-list li, .faq-item {
  cursor: pointer;
}
.card:active,
.feature-grid li:active,
.tips-preview li:active {
  transform: scale(0.99);
  box-shadow: 0 1px 2px rgba(50,64,74,0.11);
}
.btn-primary:active, .btn-secondary:active { transform: scale(0.975); }

/* ===================== PRINT (MINIMAL) ===================== */
@media print {
  .main-nav, .mobile-menu-toggle, .cookie-banner, .mobile-menu, .footer-nav, .footer-brand, .social-links { display: none !important; }
  body { background: #fff; color: #32404A; }
}

/* ==================== END OF CSS ==================== */
