/*---------------------------------------------
  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,
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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F4EDED;
  color: #3b263c;
  font-family: 'Open Sans', Arial, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  display: block;
}
ul, ol {
  list-style: none;
}
a {
  color: #823766;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #e5735b;
  outline: none;
}
button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
:focus {
  outline: 2px dashed #e5735b;
  outline-offset: 2px;
}

/*---------------------------------------------
  ROOT COLORS & FONTS (fallbacks)
----------------------------------------------*/
:root {
  --color-primary: #823766;
  --color-primary-dark: #6d2352;
  --color-secondary: #F4EDED;
  --color-accent: #F89C8B;
  --color-accent-strong: #e5735b;
  --color-white: #fff;
  --color-black: #2c1d2b;
  --color-gray: #a78a9b;

  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
}

/*---------------------------------------------
  BASE TYPOGRAPHY
----------------------------------------------*/
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 800;
  letter-spacing: 0.02em;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.15;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}
p, ul, ol {
  color: var(--color-black);
  font-size: 1rem;
  margin-bottom: 16px;
  font-family: var(--font-body);
}
strong {
  font-weight: 700;
}
.subheadline {
  font-size: 1.2rem;
  color: var(--color-gray);
  margin-bottom: 24px;
  font-family: var(--font-body);
  font-weight: 500;
}

/* playful, alternate headline for fun */
h1, h2, h3 {
  font-family: var(--font-display), cursive;
  text-shadow: 0 1px 0 #fff, 2px 2px 0 #F89C8B10;
}

/*---------------------------------------------
  SPACING & LAYOUT PATTERNS
----------------------------------------------*/
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-white);
  box-shadow: 0 3px 18px rgba(248,156,139,0.10), 0 1.5px 3px rgba(130,55,102,0.09);
  border-radius: 20px;
  padding: 32px 24px;
  transition: transform 0.20s cubic-bezier(0.4,0.2,0.2,1), box-shadow 0.20s cubic-bezier(0.4,0.2,0.2,1);
}
.card:hover {
  transform: translateY(-8px) scale(1.025) rotate(-2deg);
  box-shadow: 0 8px 32px rgba(248,156,139,0.15), 0 6px 12px rgba(130,55,102,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: var(--color-white);
  border-radius: 22px;
  box-shadow: 0 3px 20px rgba(248,156,139,0.09);
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.15s;
  border: 2.5px solid var(--color-secondary);
  min-height: 90px;
}
.testimonial-card p {
  flex: 1 1 70%;
  color: #391e34;
  font-size: 1.1rem;
  line-height: 1.6;
}
.testimonial-user {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--color-accent-strong);
  padding-left: 10px;
  font-weight: bold;
}
.testimonial-card:hover {
  box-shadow: 0 8px 36px rgba(130,55,102,0.22);
  transform: scale(1.035) rotate(+1deg);
}
.feature-item, .contact-info-block > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Manual list spacing for consistency */
ul, ol {
  margin-bottom: 24px;
  padding-left: 18px;
}
.text-section ul, .content-wrapper ul {
  padding-left: 24px;
}
.text-section ul li, .content-wrapper ul li {
  margin-bottom: 10px;
  color: var(--color-primary-dark);
  list-style-type: disc;
  font-size: 1rem;
}

/*---------------------------------------------
  HEADER & NAVIGATION
----------------------------------------------*/
header {
  background: var(--color-white);
  border-bottom: 2.8px solid var(--color-accent);
  box-shadow: 0 2px 16px rgba(130,55,102,0.03);
  z-index: 50;
  position: relative;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.logo img {
  height: 54px;
  width: auto;
  transition: transform 0.18s ease;
  will-change: transform;
}
.logo:hover img {
  transform: scale(1.09) rotate(-4deg);
}
.main-nav {
  display: flex;
  gap: 30px;
  align-items: center;
}
.main-nav a {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--color-primary-dark);
  padding: 7px 12px;
  border-radius: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  position: relative;
  transition: background 0.22s, color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--color-white);
  background: var(--color-accent-strong);
  box-shadow: 0 2px 12px #f89c8b23;
}
.btn-primary {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--color-white);
  background: linear-gradient(90deg, var(--color-accent), var(--color-primary));
  padding: 12px 32px;
  border-radius: 26px;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 7px 27px rgba(248,156,139,0.12);
  border: none;
  margin-left: 22px;
  transition: background 0.18s, transform 0.18s, box-shadow 0.14s;
  display: inline-block;
  position: relative;
  cursor: pointer;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-primary);
  color: var(--color-accent);
  transform: scale(1.055) rotate(-2deg);
  box-shadow: 0 2px 12px #f89c8b55;
}

/*---------------------------------------------
  MOBILE NAVIGATION
----------------------------------------------*/
.mobile-menu-toggle {
  display: none;
  background: var(--color-accent-strong);
  color: #fff;
  font-size: 2.1rem;
  padding: 6px 16px;
  border-radius: 24px;
  border: none;
  margin-left: 18px;
  transition: background 0.15s, color 0.15s;
  z-index: 110;
}
.mobile-menu-toggle:hover {
  background: var(--color-primary);
  color: #fffce8;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-secondary);
  box-shadow: 0 2px 28px #391e3422;
  z-index: 9999;
  transform: translateX(100vw);
  transition: transform 0.36s cubic-bezier(.63,-0.21,.27,1.18);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 38px 24px 24px 24px;
  opacity:1;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  background: var(--color-accent-strong);
  color: #fff;
  font-size: 2.1rem;
  border-radius: 50%;
  align-self: flex-end;
  margin-bottom: 18px;
  border: none;
  width: 46px;
  height: 46px;
  z-index: 10000;
  box-shadow: 0 2px 10px #e5735b33;
  transition: background 0.16s;
}
.mobile-menu-close:hover {
  background: var(--color-primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.28rem;
  color: var(--color-primary-dark);
  padding: 18px 0 9px 0;
  border-bottom: 2.1px dashed var(--color-accent-strong);
  font-weight: 700;
  border-radius: 9px;
  transition: color 0.16s, background 0.15s;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-accent);
  color: #fff;
}

@media (max-width: 1000px) {
  header .main-nav, .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1000px) {
  .mobile-menu {
    display: none !important;
  }
}

/*---------------------------------------------
  HERO SECTION
----------------------------------------------*/
.hero {
  padding: 65px 0 50px 0;
  background: linear-gradient(90deg, var(--color-accent) 0%, #fff 100%);
  position: relative;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero h1 {
  color: var(--color-primary-dark);
  font-size: 2.5rem;
  margin-bottom: 18px;
  font-family: var(--font-display);
}
.hero .btn-primary {
  margin-top: 25px;
  font-size: 1.25rem;
}

/*---------------------------------------------
  FEATURES (home)
----------------------------------------------*/
.features .feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  margin-top: 24px;
}
.features .feature-grid li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: var(--color-white);
  border-radius: 18px;
  box-shadow: 0 3px 22px #e5735b11;
  padding: 28px 24px 21px 24px;
  width: 285px;
  min-width: 200px;
  min-height: 240px;
  transition: transform 0.18s, box-shadow 0.18s;
  border: 2.2px solid var(--color-secondary);
}
.features .feature-grid li img {
  width: 52px;
  height: 52px;
}
.features .feature-grid li:hover {
  transform: translateY(-6px) scale(1.03) rotate(-2deg);
  box-shadow: 0 12px 36px #F89C8B33;
  border-color: var(--color-accent-strong);
}
.features .feature-grid li h3 {
  color: var(--color-primary);
  margin-bottom: 5px;
  font-size: 1.19rem;
  font-family: var(--font-display);
  font-weight: 800;
}
.features .feature-grid li p {
  color: var(--color-black);
  margin-bottom: 0;
}

/*---------------------------------------------
  ABOUT, SERVICES, GALLERY, ETC
----------------------------------------------*/
.about-home, .about-intro, .about-values, .gallery-highlights, .cookie-policy, .privacy-policy, .gdpr-policy, .terms-of-use, .thank-you-confirmation {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 4.5px 22px #8237660a;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--font-body);
}
.contact-info-block {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
}
.contact-info-block > div {
  background: var(--color-secondary);
  border-radius: 16px;
  padding: 20px 18px;
  flex: 1 1 180px;
  min-width: 160px;
  box-shadow: 0 2px 8px #f89c8b18;
}
.map-block {
  margin-top: 20px;
}
.cta-section {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
}
.cta-section .btn-primary {
  font-size: 1.08rem;
}

/*---------------------------------------------
  PRICING TABLE (listino)
----------------------------------------------*/
.pricing-table table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 3px 22px #e5735b14;
}
.pricing-table th, .pricing-table td {
  padding: 16px 12px;
  text-align: left;
  font-size: 1rem;
  border-bottom: 1.7px solid #f89c8b2f;
}
.pricing-table th {
  background: var(--color-accent);
  color: var(--color-white);
  font-family: var(--font-display);
  font-weight: bold;
}
.pricing-table td {
  color: var(--color-primary-dark);
}
.pricing-table tr:last-child td {
  border-bottom: none;
}
.pricing-table .note {
  font-size: 0.97rem;
  color: var(--color-accent-strong);
  margin-top: 6px;
}

/*---------------------------------------------
  TESTIMONIAL SECTIONS (home and recensioni)
----------------------------------------------*/
.testimonials-home, .testimonials-main {
  background: var(--color-secondary);
}
.testimonials-home h2, .testimonials-main h1 {
  color: var(--color-accent-strong);
}

/*---------------------------------------------
  FOOTER
----------------------------------------------*/
footer {
  background: var(--color-primary-dark);
  color: var(--color-white);
  padding: 32px 0;
  font-family: var(--font-body);
  border-top: 3px solid var(--color-accent);
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: flex-start;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
footer nav a {
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  transition: color 0.18s, text-decoration 0.12s;
}
footer nav a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--color-white);
  font-size: 1rem;
  line-height: 1.5;
  margin-top: 18px;
}
.footer-info a {
  color: #fff;
  text-decoration: underline dotted var(--color-accent-strong);
  font-weight: 600;
}

/*---------------------------------------------
  COOKIE CONSENT BANNER
----------------------------------------------*/
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: var(--color-primary-dark);
  color: var(--color-white);
  box-shadow: 0 -4px 18px #391e342f;
  padding: 24px 20px;
  z-index: 99999;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 1rem;
  font-family: var(--font-body);
  justify-content: center;
  animation: popUpBottom 0.35s cubic-bezier(.61,-0.36,.5,1.13) 1;
}
@keyframes popUpBottom {
  0% { transform: translateY(100px); opacity: .2; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  margin: 0;
  color: #fff;
  flex: 1 1 300px;
}
.cookie-banner .cookie-btn {
  font-family: var(--font-display);
  font-weight: bold;
  font-size: 1rem;
  border-radius: 14px;
  border: none;
  padding: 10px 22px;
  margin-left: 6px;
  background: var(--color-accent-strong);
  color: #fff;
  transition: background 0.15s, color 0.15s, transform 0.14s;
  cursor: pointer;
  box-shadow: 0 1.5px 9px #e5735b25;
}
.cookie-banner .cookie-btn.settings {
  background: var(--color-accent);
  color: var(--color-primary-dark);
}
.cookie-banner .cookie-btn.reject {
  background: #a78a9b;
  color: #fff;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: var(--color-primary);
  color: #fff;
  transform: scale(1.05);
}
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: #391e34c5;
  z-index: 100002;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  animation: fadeInBg 0.25s;
}
@keyframes fadeInBg {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: var(--color-black);
  border-radius: 24px;
  padding: 38px 26px 34px 26px;
  max-width: 420px;
  width: 96vw;
  box-shadow: 0 9px 48px #82376625, 0 1.5px 9px #e5735b16;
  animation: popInModal 0.32s cubic-bezier(.61,-0.36,.5,1.13) 1;
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
}
@keyframes popInModal {
  0% { transform: scale(0.82) translateY(45px); opacity: .1; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.33rem;
  color: var(--color-primary-dark);
  margin-bottom: 4px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  font-size: 1.1rem;
  gap: 10px;
  margin-bottom: 15px;
}
.cookie-modal input[type="checkbox"] {
  accent-color: var(--color-primary);
}
.cookie-modal .cookie-modal-btns {
  display: flex;
  gap: 18px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.cookie-modal-close {
  position: absolute;
  top: 14px; right: 18px;
  background: var(--color-accent-strong);
  color: #fff;
  font-size: 1.6rem;
  border: none;
  border-radius: 50%;
  width: 32px; height: 32px;
  box-shadow: 0 1.5px 9px #e5735b18;
  transition: background 0.14s;
}
.cookie-modal-close:hover {
  background: var(--color-primary);
}
.cookie-modal .cookie-category {
  margin-bottom: 8px;
  font-size: 1rem;
}
.cookie-modal .cookie-category.essential {
  color: var(--color-accent-strong);
  font-weight: 700;
}

/*---------------------------------------------
  ANIMATION FOR FUN: WOBBLY BUTTONS, FUN HEADLINE HOVER
----------------------------------------------*/
@keyframes btnWobble {
  15% { transform: scale(1.06) rotate(-1deg); }
  30% { transform: scale(0.98) rotate(2deg); }
  45% { transform: scale(1.09) rotate(-2deg); }
  60% { transform: scale(1.01) rotate(0.5deg); }
  100% { transform: scale(1) rotate(0deg); }
}
.btn-primary:active {
  animation: btnWobble 0.4s cubic-bezier(.11,.91,.49,1.19) 1;
}
@media (hover: hover) {
  h1:hover, h2:hover {
    color: var(--color-accent-strong);
    text-shadow: 2px 2px 0 #e5735b19, 0 6px 16px #f89c8b15;
    transition: color 0.13s, text-shadow 0.18s;
  }
}

/*---------------------------------------------
  RESPONSIVE TYPOGRAPHY, LAYOUTS, SPACING
----------------------------------------------*/
@media (max-width: 900px) {
  .features .feature-grid {
    flex-direction: column;
    align-items: center;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 8px;
  }
  header .container {
    height: 64px;
  }
  .hero {
    padding: 36px 0 28px 0;
  }
  h1 {
    font-size: 1.7rem;
  }
  h2 {
    font-size: 1.12rem;
  }
  .features .feature-grid {
    gap: 18px;
  }
  .about-home, .about-intro, .about-values, .gallery-highlights, .cookie-policy, .privacy-policy, .gdpr-policy, .terms-of-use, .thank-you-confirmation {
    padding: 20px 10px !important;
    border-radius: 14px;
  }
  .section, section {
    padding: 24px 6px;
    margin-bottom: 32px !important;
  }
  .card {
    padding: 18px 12px;
    border-radius: 15px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 12px;
    min-height: 68px;
  }
  .content-grid {
    flex-direction: column;
    gap: 8px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
  .contact-info-block {
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 600px) {
  .footer-info, footer nav {
    gap: 10px;
    font-size: 0.97rem;
  }
}

/*---------------------------------------------
  UTILITY CLASSES
----------------------------------------------*/
.hide { display: none !important; }
.d-flex { display: flex; }
.flex-center { justify-content: center; align-items: center; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 8px !important; }
.mb-3 { margin-bottom: 16px !important; }
.mb-4 { margin-bottom: 24px !important; }
.mt-3 { margin-top: 16px !important; }
.mt-4 { margin-top: 24px !important; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.rounded { border-radius: 18px !important; }

/*---------------------------------------------
  CUSTOM FUN FONTS (GOOGLE FONTS IMPORT)
----------------------------------------------*/
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,800,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');

/*---------------------------------------------
  MISC STYLE ENHANCEMENT FOR PLAYFUL-DYNAMIC
----------------------------------------------*/
::-webkit-scrollbar {
  width: 8px;
  background: #f4eded;
}
::-webkit-scrollbar-thumb {
  background: var(--color-accent);
  border-radius: 9px;
}

/* Decorative playful dots background helper */
.section-playful-bg {
  background-image: radial-gradient(var(--color-accent-strong) 1px, transparent 1px),
                    radial-gradient(var(--color-accent) 1px, transparent 1px);
  background-size: 24px 24px, 36px 36px;
  background-position: 0 0, 12px 12px;
  background-repeat: repeat;
  border-radius: 24px;
}

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