/* CSS RESET & NORMALIZE */
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 {
  scroll-behavior: smooth;
}
body {
  line-height: 1.54;
  background: #F7F6FB;
  color: #23272A;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  letter-spacing: 0.03em;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #C54930;
  text-decoration: none;
  transition: color 0.18s;
}
a:hover,
a:focus {
  color: #A12F11;
  text-decoration: underline;
}

button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
}
:focus {
  outline: 2px solid #A12F11;
  outline-offset: 1px;
}

/* SOFT PASTEL THEME COLORS */
:root {
  --primary: #23272A;
  --secondary: #F7F7F7;
  --accent: #C54930;
  --accent-dark: #A12F11;
  --pastel-peach: #FFDAD4;
  --pastel-mint: #CDEAE3;
  --pastel-blue: #D6E4FB;
  --pastel-lavender: #ECE7FB;
  --pastel-yellow: #FCF6D6;
  --white: #FFFFFF;
  --footer-bg: #EDE8F5;
}

/* TYPOGRAPHY SCALE & FONTS */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: 0.01em;
  color: var(--primary);
}
h1 { font-size: 2.2rem; margin-bottom: 24px; }
h2 { font-size: 1.6rem; margin-bottom: 18px; }
h3 { font-size: 1.2rem; margin-bottom: 12px; }
h4 { font-size: 1.02rem; }
@media (min-width: 600px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2rem; }
}
p, ul, ol, li {
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--primary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 16px;
}
ul, ol { padding-left: 22px; }
strong, b { color: var(--accent-dark); font-weight: 600; }
.subheadline {
  font-size: 1.2rem;
  color: #785672;
  font-weight: 400;
  margin-bottom: 28px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  box-sizing: border-box;
}
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

/* HEADER & NAVIGATION */
header {
  width: 100%;
  background: var(--white);
  box-shadow: 0 2px 18px 0 rgba(220,200,255,0.07);
  position: relative;
  z-index: 32;
  padding: 12px 0 0 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 16px;
}
header img[alt="Ripasschio Galerie"] {
  height: 44px;
  min-width: 110px;
}
.main-nav {
  display: flex;
  gap: 10px;
  align-items: center;
}
.main-nav a {
  padding: 8px 14px;
  border-radius: 24px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  color: var(--primary);
  transition: background 0.2s, color 0.2s;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--pastel-peach);
  color: var(--accent-dark);
}
.cta.primary{
  background: var(--accent);
  color: var(--white);
  padding: 10px 26px;
  border-radius: 32px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 10px 0 rgba(197,73,48,0.07);
  transition: background 0.22s, box-shadow 0.22s;
  margin-left: 28px;
  border: 2px solid var(--accent);
}
.cta.primary:hover, .cta.primary:focus {
  background: var(--accent-dark);
  color: var(--white);
  box-shadow: 0 4px 18px 0 rgba(197,73,48,0.12);
  border-color: var(--accent-dark);
}

.cta {
  background: var(--pastel-mint);
  color: var(--primary);
  padding: 12px 34px;
  border-radius: 32px;
  font-size: 1.1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin: 8px 0;
  box-shadow: 0 2px 10px 0 rgba(71,145,137,0.06);
  transition: background 0.22s, color 0.22s, box-shadow 0.22s;
  border: 1px solid var(--pastel-mint);
  display: inline-block;
  text-align: center;
  cursor: pointer;
}
.cta:hover, .cta:focus {
  background: var(--pastel-blue);
  color: var(--accent-dark);
  box-shadow: 0 4px 12px rgba(180,200,255,0.20);
  border-color: var(--pastel-blue);
}

/* Hamburger Button */
.mobile-menu-toggle {
  display: none;
  background: var(--pastel-peach);
  font-size: 2.3rem;
  border-radius: 18px;
  padding: 5px 18px;
  color: var(--accent-dark);
  border: 1px solid #FFDAD4;
  margin-left: 12px;
  transition: background 0.18s, color 0.18s;
  z-index: 55;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: var(--pastel-mint);
  color: var(--accent);
  border-color: var(--pastel-mint);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: var(--pastel-lavender);
  box-shadow: 0 8px 28px rgba(155,108,160,0.12);
  z-index: 999;
  transform: translateX(-110vw);
  transition: transform 0.32s cubic-bezier(.63,.09,.41,1.18);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 0 0 0;
  overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close {
  font-size: 2.6rem;
  color: var(--accent-dark);
  background: none;
  align-self: flex-end;
  border-radius: 16px;
  margin: 20px 20px 0 0;
  padding: 4px 16px;
  border: 1px solid var(--pastel-peach);
  background: var(--pastel-peach);
  transition: background 0.18s, color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus
{ background: var(--pastel-yellow); color: var(--accent); }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px 32px 0 32px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.12rem;
  color: var(--primary);
  padding: 13px 12px;
  border-radius: 20px;
  background: transparent;
  transition: background 0.15s, color 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--pastel-blue);
  color: var(--accent-dark);
}

/* Responsive Nav */
@media (max-width: 1080px) {
  .main-nav { gap: 6px; }
  .cta.primary { margin-left: 6px; padding: 8px 16px; }
}
@media (max-width: 920px) {
  header .container {
    flex-wrap: wrap;
    gap: 8px;
  }
  .cta.primary { margin-left: 0; }
}
@media (max-width: 820px) {
  .main-nav { display: none; }
  .cta.primary { display: none; }
  .mobile-menu-toggle { display: block; }
}

/* HERO */
.hero {
  background: linear-gradient(120deg, #FFDAD4 0%, #D6E4FB 100%);
  padding: 50px 0 40px 0;
  margin-bottom: 60px;
  position: relative;
}
.hero .container { display: flex; flex-direction: column; align-items: center; }
.hero .content-wrapper {
  align-items: center;
  gap: 22px;
}
.hero h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin: 0 0 10px 0;
  letter-spacing: 0.02em;
}
.hero .subheadline { text-align: center; }

/* FEATURES GRID */
.features .feature-grid, .gallery-highlights .feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 18px;
  justify-content: center;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--pastel-mint);
  border-radius: 22px;
  box-shadow: 0 2px 14px 0 rgba(180,230,215,0.10);
  padding: 26px 22px 18px 22px;
  flex: 1 1 240px;
  max-width: 340px;
  min-width: 220px;
  margin-bottom: 20px;
  transition: box-shadow 0.22s, transform 0.20s;
}
.feature-item:hover, .feature-item:focus-within {
  box-shadow: 0 6px 32px 0 rgba(71,145,137,0.15);
  transform: translateY(-2px) scale(1.012);
}
.feature-item img {
  height: 36px;
  margin-bottom: 8px;
}
.feature-item h3 {
  color: var(--accent-dark);
  margin-bottom: 8px;
}
.features ul, .gallery-highlights ul {
  margin-bottom: 0;
  margin-top: 8px;
  padding-left: 28px;
  color: #5E637A;
  list-style: disc;
}
.feature-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 18px 0 0 0;
  align-items: center;
}
.feature-icons img {
  height: 34px;
  background: var(--pastel-yellow);
  padding: 5px 9px;
  border-radius: 50%;
  border: 1.5px solid #FCF6D6;
}

/* TESTIMONIALS */
.testimonials {
  margin-bottom: 60px;
  background: var(--pastel-lavender);
  border-radius: 32px;
  padding: 40px 12px;
}
.testimonials h2 { margin-bottom: 22px; }
.testimonials .content-wrapper {
  gap: 24px;
  align-items: stretch;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: var(--white);
  border-radius: 22px;
  box-shadow: 0 2px 12px 0 rgba(175, 145, 245, 0.07);
  margin-bottom: 20px;
  font-size: 1rem;
  color: var(--primary);
  position: relative;
  transition: box-shadow 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 4px 28px 0 rgba(175, 145, 245, 0.19);
}
.testimonial-card p {
  font-size: 1.08em;
  color: #4E446A;
  padding-right: 8px;
  flex: 1 1 auto;
  margin-bottom: 0;
}
.testimonial-card strong {
  font-size: 0.95em;
  font-weight: 600;
  color: var(--accent-dark);
}

/* SECTION/CONTENT FLEX PATTERNS */
.card-container,
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: var(--pastel-blue);
  border-radius: 18px;
  box-shadow: 0 2px 12px 0 rgba(214,228,251,0.10);
  position: relative;
  transition: box-shadow 0.18s;
}
.card:hover {
  box-shadow: 0 6px 24px 0 rgba(214,228,251,0.14);
}
.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;
}
.artist-team .artist-profiles {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.artist-card {
  background: var(--pastel-yellow);
  border-radius: 20px;
  box-shadow: 0 2px 16px 0 rgba(252,246,214,0.07);
  padding: 22px 18px;
  flex: 1 1 220px;
  min-width: 200px;
  max-width: 300px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.18s;
}
.artist-card:hover {
  box-shadow: 0 4px 18px 0 rgba(252,246,214,0.18);
}

.newsletter-signup .newsletter-box {
  display: flex;
  align-items: center;
  background: var(--pastel-mint);
  border-radius: 18px;
  padding: 18px 14px;
  margin: 5px 0 0 0;
  gap: 10px;
}
.newsletter-signup .newsletter-box span {
  display: flex;
  align-items: center;
  justify-content: center;
}

.address-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.opening-hours {
  background: var(--pastel-lavender);
  border-radius: 17px;
  padding: 14px 22px 10px 18px;
  margin-top: 12px;
}
.opening-hours h3 {
  margin-top: 0;
  margin-bottom: 5px;
  font-size: 1.07rem;
}

/**************** RESPONSIVE & MOBILE ***************/
@media (max-width: 1024px) {
  .feature-grid, .card-container, .artist-team .artist-profiles {
    gap: 14px;
  }
}
@media (max-width: 820px) {
  .container, .section {
    padding: 32px 8px;
  }
}
@media (max-width: 700px) {
  .feature-grid,
  .card-container,
  .artist-team .artist-profiles {
    flex-direction: column;
    align-items: stretch;
  }
}
@media (max-width: 560px) {
  .section {
    padding: 18px 2px;
    margin-bottom: 32px;
  }
  .testimonials {
    padding: 20px 4px;
    border-radius: 16px;
  }
  .testimonial-card, .artist-card {
    padding: 13px 7px;
    border-radius: 12px;
  }
  .openng-hours { padding: 7px 6px; font-size: 0.97em; }
}
@media (max-width: 700px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .content-grid {
    flex-direction: column;
    gap: 16px;
  }
}

/******** CTA SECTIONS *********/
.cta-section, .cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-bottom: 32px;
}
.cta-section .cta,
.cta .cta {
  margin: 0 auto;
}

/********* FOOTER *************/
footer {
  background: var(--footer-bg);
  width: 100%;
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
  margin-top: 68px;
  box-shadow: 0 -4px 28px 0 rgba(175,145,245,0.08);
  padding: 32px 0 18px 0;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  max-width: 820px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
}
.footer-nav a {
  color: #5E637A;
  padding: 4px 10px;
  border-radius: 14px;
  transition: background 0.14s;
}
.footer-nav a:hover {
  background: var(--pastel-mint);
  color: var(--accent-dark);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.98rem;
  color: var(--primary);
}
.footer-contact img {
  height: 16px;
  margin-right: 4px;
  vertical-align: bottom;
}
.footer-contact a {
  color: var(--accent);
}
.footer-social {
  display: flex;
  gap: 12px;
  align-items: center;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
}
.footer-social img {
  width: 28px;
  height: 28px;
  background: var(--pastel-blue);
  border-radius: 50%;
  padding: 4px;
  transition: box-shadow .18s;
}
.footer-social a:hover img {
  box-shadow: 0 2px 16px 0 rgba(214,228,251,0.14);
}
@media (max-width: 850px) {
  footer .container {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
  .footer-nav {
    gap: 8px;
  }
}

/********* COOKIE CONSENT BANNER *********/
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: var(--pastel-lavender);
  box-shadow: 0 -2px 14px 0 rgba(175,145,245,0.17);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: 15px 8px 21px 8px;
  z-index: 1999;
  animation: bannerSlideUp 0.72s cubic-bezier(.56,.07,.26,1.20);
}
@keyframes bannerSlideUp {
  0% { transform: translateY(90px); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
.cookie-consent-banner span {
  font-size: 1rem;
  color: #5E637A;
  line-height: 1.5;
  margin-right: 12px;
  max-width: 410px;
}
.cookie-btn-group {
  display: flex;
  gap: 14px;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  background: var(--pastel-blue);
  border: 1.2px solid var(--accent);
  color: var(--primary);
  border-radius: 18px;
  padding: 8px 22px;
  box-shadow: 0 2px 12px 0 rgba(180,200,255,0.09);
  margin-left: 0;
  transition: background 0.18s, color 0.18s, border-color 0.16s;
}
.cookie-btn.accept {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.cookie-btn.reject {
  background: var(--pastel-peach);
  color: var(--accent-dark);
}
.cookie-btn.settings {
  background: var(--pastel-yellow);
  color: var(--primary);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--pastel-mint);
  color: var(--accent-dark);
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: var(--accent-dark);
  color: var(--white);
}

/********* COOKIE MODAL *********/
.cookie-modal-backdrop {
  position: fixed;
  z-index: 5555;
  background: rgba(72,58,94,0.12);
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInBg 0.35s;
}
@keyframes fadeInBg {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal {
  background: var(--white);
  border-radius: 26px;
  box-shadow: 0 8px 48px 0 rgba(175,145,245,0.19);
  width: 94vw;
  max-width: 380px;
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
  animation: popInModal 0.32s cubic-bezier(.61,.07,.23,1.44);
}
@keyframes popInModal {
  from { transform: scale(.86); opacity: 0.15; }
  to   { transform: scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.35rem;
  margin-bottom: 6px;
}
.cookie-modal .category {
  font-weight: 600;
  margin-top: 7px;
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  gap: 7px;
}
.cookie-modal-label {
  color: #5E637A;
  font-size: 1rem;
  margin-bottom: 7px;
}
.cookie-modal-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 1.01rem;
  margin-bottom: 6px;
}
.cookie-switch {
  appearance: none;
  width: 37px; height: 20px;
  background: var(--pastel-blue);
  border-radius: 10px;
  position: relative;
  outline: none;
  margin-right: 9px;
  box-shadow: 0 1px 4px 0 rgba(150,185,235,0.16);
  transition: background 0.22s;
}
.cookie-switch:checked {
  background: var(--pastel-mint);
}
.cookie-switch:before {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  background: var(--accent);
  border-radius: 50%;
  transition: left 0.21s, background 0.16s;
}
.cookie-switch:checked:before {
  left: 19px;
  background: var(--accent-dark);
}
.cookie-modal-close {
  position: absolute;
  top: 20px; right: 21px;
  background: none;
  border: none;
  font-size: 1.3em;
  color: var(--accent);
  cursor: pointer;
  transition: color 0.18s;
}
.cookie-modal-close:hover { color: var(--accent-dark);} 
.cookie-modal-actions {
  display: flex;
  width: 100%;
  gap: 16px;
  justify-content: flex-end;
}

/******** ANIMATIONS, SHADOWS, DETAILS **********/
.section, .hero, .testimonials, .feature-item, .card, .artist-card {
  box-shadow: 0 2px 12px 0 rgba(175, 145, 245, 0.06);
}
.section, .hero, .testimonials {
  border-radius: 24px;
}

/********* HTML ELEMENTS *********/
li {
  margin-bottom: 9px;
}
blockquote {
  background: var(--pastel-lavender);
  border-left: 6px solid var(--accent);
  margin: 18px 0;
  padding: 14px 22px;
  border-radius: 18px;
  font-size: 1.05rem;
  color: #4E446A;
}
table {
  width: 100%;
  background: var(--pastel-blue);
  border-radius: 12px;
  margin-bottom: 18px;
  overflow: hidden;
  border-collapse: separate;
}
th, td { padding: 8px 10px; }
th { background: var(--pastel-mint); font-weight: 600; }
code, pre {
  background: var(--pastel-yellow);
  border-radius: 7px; padding: 4px 8px;
  font-family: "Fira Mono", monospace;
  font-size: 0.93em;
  color: #272432;
}

/********* MISC **********/
details, summary {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
}

/************ OVERRIDES FOR SOFT-PASTEL *************/
[id^=cookie], .cookie-consent-banner, .cookie-modal {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
}

/********** THANK YOU PAGE ***********/
.thank-you {
  background: linear-gradient(90deg, #FFDAD4 0%, #CDEAE3 100%);
  padding-top: 60px; padding-bottom: 80px;
  margin-bottom: 0;
  border-radius: 28px;
  box-shadow: 0 2px 28px 0 rgba(220,200,255,0.15);
}
.thank-you h1 {
  color: var(--accent-dark);
  margin-bottom: 18px;
}

/*********** UTILITY: spacing ***********/
.mt-32 { margin-top: 32px !important; }
.mb-32 { margin-bottom: 32px !important; }
.mt-60 { margin-top: 60px !important; }
.mb-60 { margin-bottom: 60px !important; }

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