/* === CSS RESET & NORMALIZE === */
:root {
  --primary: #1A3961;
  --secondary: #F1F5F9;
  --accent: #F9B043;
  --accent-dark: #d88a1a;
  --background: #FFFFFF;
  --text: #1A3961;
  --text-light: #5d6a88;
  --danger: #e55353;
  --shadow: 0 4px 24px rgba(26, 57, 97, 0.09);
  --radius: 18px;
  --transition: 0.22s cubic-bezier(.4,0,.2,1);
  --font-display: 'Montserrat', 'Arial Rounded MT Bold', Arial, sans-serif;
  --font-body: 'Open Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
html {
  box-sizing: border-box;
  font-size: 16px;
  background: var(--secondary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  font-family: inherit;
}
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--secondary);
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover,
a:focus {
  color: var(--accent);
}
ul, ol {
  padding-left: 1.25em;
  margin-bottom: 1.2em;
}
ul li, ol li {
  margin-bottom: 0.5em;
  font-size: 1.05em;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0 20px 0;
}
thead th {
  background: var(--primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  padding: 14px 8px;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}
td, th {
  border: 0;
  padding: 10px 8px;
  text-align: left;
}
tbody tr {
  background: #fff;
  border-bottom: 1px solid #eee;
}
tbody tr:last-child {
  border-bottom: none;
}
/* === CONTAINERS & SECTIONS === */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 18px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
}
/* creative element: angled color accent using an absolutely positioned SVG or gradient */
.section::before {
  content: '';
  display: block;
  position: absolute;
  top: -24px; left: 24px;
  width: 68px; height: 12px;
  background: var(--accent);
  border-radius: 12px;
  opacity: 0.32;
  z-index: 1;
  pointer-events: none;
}
.content-wrapper {
  position: relative;
  z-index: 2;
}
.text-section {
  margin-bottom: 28px;
}
.text-section:last-child {
  margin-bottom: 0;
}
/* SECTION spacing for stacked flex layouts */
@media (max-width: 768px) {
  .section {
    padding: 28px 8px;
  }
  .container {
    padding: 0 8px;
  }
}
/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--primary);
  line-height: 1.14;
}
h1 {
  font-size: 2.6rem;
  margin-bottom: 18px;
  color: var(--accent);
  text-shadow: 2px 4px 0 rgba(26,57,97,0.06);
  font-family: var(--font-display), cursive;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  color: var(--primary);
  position: relative;
}
h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 5px;
  background: var(--accent);
  border-radius: 3px;
  margin-top: 6px;
  opacity: 0.45;
}
h3 {
  font-size: 1.32rem;
  margin-top: 24px;
  margin-bottom: 10px;
  color: var(--accent);
  font-family: var(--font-display), cursive;
}
p {
  font-size: 1.07rem;
  color: var(--text-light);
  margin-bottom: 14px;
}
strong, b {
  font-weight: 700;
  color: var(--primary);
}
em, i {
  color: var(--accent-dark);
  font-style: italic;
}
blockquote {
  border-left: 6px solid var(--accent);
  padding-left: 20px;
  margin-bottom: 16px;
  color: var(--primary);
  background: var(--secondary);
  border-radius: 8px;
  font-size: 1.16em;
  font-style: italic;
}

/* === HEADER & NAVIGATION === */
header {
  width: 100%;
  padding: 18px 0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 3px 18px rgba(26,57,97,0.06);
}
header > a img {
  height: 50px;
  margin-right: 26px;
  margin-left: 8px;
  border-radius: 13px;
  box-shadow: 0 2px 14px rgba(26,57,97,0.11);
}
header nav {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-right: auto;
}
header nav a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.11em;
  padding: 6px 12px;
  border-radius: 8px;
  background: transparent;
  transition: background var(--transition), color var(--transition);
  position: relative;
}
header nav a:hover, header nav a:focus {
  background: var(--accent);
  color: #fff;
}
.cta-button {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: #fff !important;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.09em;
  border: none;
  border-radius: 18px;
  padding: 12px 28px;
  margin-left: 22px;
  box-shadow: 0 4px 22px rgba(249,176,67,0.18);
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), transform .14s;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  outline: none;
  z-index: 2;
}
.cta-button:hover, .cta-button:focus {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px) scale(1.03) rotate(-2deg);
  box-shadow: 0 6px 26px rgba(26,57,97,0.14);
}

/* === BURGER MENU (MOBILE NAVIGATION) === */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 16px;
  padding: 8px 13px;
  margin-left: 16px;
  box-shadow: 0 2px 12px rgba(249,176,67,0.11);
  cursor: pointer;
  align-items: center;
  transition: background var(--transition), transform 0.13s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--primary);
  transform: scale(1.08) rotate(5deg);
}
.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: linear-gradient(135deg, var(--accent) 0% , var(--primary) 80%);
  z-index: 999;
  transform: translateX(-100vw);
  transition: transform var(--transition);
  box-shadow: 3px 0 18px rgba(26,57,97,0.13);
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: rgba(255,255,255,0.13);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 2.05rem;
  margin: 22px 0 12px 22px;
  padding: 9px 12px;
  cursor: pointer;
  align-self: flex-start;
  transition: background .16s;
  z-index: 1005;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--accent-dark);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
  width: 100%;
  padding-left: 40px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  font-size: 1.32em;
  padding: 12px 4px 12px 0;
  border-radius: 14px 0  0 14px;
  background: none;
  transition: background .18s, color .14s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: rgba(255,255,255,0.13);
  color: var(--accent);
}
@media (max-width: 1050px) {
  .cta-button {
    padding: 10px 18px;
    font-size: 0.98em;
  }
  header nav a {
    font-size: 0.98em;
  }
}
@media (max-width: 900px) {
  header nav {
    gap: 10px;
  }
  header > a img {
    height: 38px;
    margin-right: 16px;
  }
}
@media (max-width: 820px) {
  header nav {
    display: none;
  }
  .cta-button {
    margin-left: 0;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (max-width: 600px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.3rem;
  }
  header {
    flex-direction: row;
    padding: 6px 0;
  }
}
/* === LAYOUTS (MANDATORY FLEXBOX PATTERNS) === */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 28px 18px;
  margin-bottom: 20px;
  flex: 1 1 290px;
  position: relative;
  z-index: 2;
  transition: box-shadow .21s, transform .16s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 10px 44px #F9B04320;
  transform: translateY(-10px) scale(1.012) rotate(-2deg);
}
.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) {
  .card-container,
  .content-grid,
  .text-image-section {
    flex-direction: column;
    gap: 14px;
  }
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--secondary);
  border-radius: var(--radius);
  margin-bottom: 20px;
  box-shadow: 0 2px 10px #1a396113;
  transition: box-shadow .22s;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 8px 28px #f9b04321;
  background: #fff7f2;
}
.testimonial-card blockquote {
  margin: 0;
  border: 0;
  background: none;
  color: var(--primary);
  font-size: 1.08em;
  font-weight: 500;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

/* === BUTTONS & LINK STYLES === */
button,
input[type="button"],
input[type="submit"] {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1em;
  border-radius: 16px;
  border: none;
  padding: 10px 22px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: background var(--transition), box-shadow .14s, transform .12s;
}
button:hover, button:focus,
input[type="button"]:hover, input[type="button"]:focus,
input[type="submit"]:hover, input[type="submit"]:focus {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 16px #1a396128;
  transform: translateY(-2px) scale(1.03) rotate(-1deg);
}

/* === FOOTER === */
footer {
  width: 100%;
  background: #fff;
  border-top: 3px solid var(--accent);
  margin-top: 48px;
  padding: 0 0 24px 0;
}
footer .container {
  padding: 0 18px;
}
footer .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: center;
  margin-top: 28px;
}
footer > .container > .content-wrapper > nav {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  justify-content: center;
  margin-bottom: 3px;
}
footer nav a {
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 1em;
  margin-left: 4px;
}
footer nav a:hover, footer nav a:focus {
  color: var(--accent);
}
footer img {
  height: 48px;
  margin-bottom: 4px;
}
footer .text-section {
  text-align: center;
  margin-bottom: 0;
}
footer p {
  font-size: 0.94em;
  color: var(--text-light);
}
@media (max-width: 700px) {
  footer .content-wrapper {
    gap: 9px;
    margin-top: 15px;
    font-size: 0.94em;
  }
}

/* === ARTISTIC ACCENTS === */
ul li::marker,
ol li::marker {
  color: var(--accent);
  font-size: 1.16em;
  font-family: var(--font-display);
}
hr {
  border: 0;
  height: 2px;
  background: var(--accent);
  margin: 28px 0;
  border-radius: 2px;
  opacity: 0.4;
}
thead th {
  letter-spacing: 0.04em;
}

/* === FORMS (IF ANY) === */
input, textarea, select {
  font-size: 1em;
  font-family: var(--font-body);
  padding: 10px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--primary);
  box-shadow: 0 1px 5px #1a39612c;
  margin-bottom: 16px;
  background: #fff;
  color: var(--text);
  transition: border .12s, box-shadow .18s;
}
input:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 2px 10px #f9b04311;
  outline: none;
}
label {
  color: var(--primary);
  font-weight: bold;
  font-family: var(--font-display);
  display: block;
  margin-bottom: 7px;
}

/* === RESPONSIVE TYPOGRAPHY SCALE === */
@media (max-width: 600px) {
  html {
    font-size: 15px;
  }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.08rem; }
  .cta-button { font-size: 0.93em; }
}

/* === MICRO-INTERACTIONS & TRANSITIONS === */
.section, .card, .cta-button, .testimonial-card, button {
  transition: box-shadow .22s, background .16s, color .17s, transform .15s;
}

/* === COOKIE CONSENT BANNER & MODAL === */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fffbe8;
  color: var(--primary);
  box-shadow: 0 -2px 20px #1a39611e;
  border-top: 3px solid var(--accent);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 28px;
  font-size: 1.05em;
  font-family: var(--font-body);
  animation: banner-in .7s cubic-bezier(.44,0,.2,1);
}
@media (max-width: 800px) {
  .cookie-banner {
    flex-direction: column;
    gap: 10px;
    padding: 16px 10px 16px 10px;
    font-size: 0.95em;
  }
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 18px;
}
.cookie-banner button {
  border-radius: 14px;
  font-family: var(--font-display);
}
.cookie-settings-btn {
  background: none;
  color: var(--accent);
  border: 2px solid var(--accent);
  padding: 8px 14px;
  font-weight: 600;
  transition: background .15s, color .14s;
}
.cookie-settings-btn:hover, .cookie-settings-btn:focus {
  background: var(--accent);
  color: #fff;
}
/* Cookie modal */
.cookie-modal {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%, 120vh);
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 9px 45px #1a396123, 0 1.5px 16px #f9b04313;
  padding: 38px 34px 22px 34px;
  z-index: 2010;
  width: 98vw;
  max-width: 410px;
  transition: transform .45s cubic-bezier(.47,0,.22,1);
  opacity: 0;
  pointer-events: none;
}
.cookie-modal.open {
  transform: translate(-50%, -50%);
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal h2 {
  font-size: 1.13rem;
  color: var(--primary);
  margin-bottom: 0.7em;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.cookie-category input[type="checkbox"] {
  width: 20px; height: 20px;
  accent-color: var(--accent);
  margin: 0 6px 0 0;
}
.cookie-category .locked {
  color: #8b94aa;
  font-size: 1.07em;
  margin-left: 2px;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  justify-content: flex-end;
  margin-top: 18px;
}
.cookie-modal .cookie-modal-actions button {
  border-radius: 13px;
  padding: 8px 18px;
}
@media (max-width: 525px) {
  .cookie-modal {
    padding: 16px 5vw 16px 5vw;
    max-width: 98vw;
  }
}
@keyframes banner-in {
  from {
    transform: translateY(80px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

/* === ICON ACCENTS in LISTS, CONTACT page === */
.text-section img[alt^="Indirizzo"],
.text-section img[alt^="Telefono"],
.text-section img[alt^="Email"],
.text-section img[alt^="Orari"] {
  width: 24px;
  height: 24px;
  margin-right: 8px;
  display: inline-block;
  vertical-align: middle;
  border-radius: 6px;
  box-shadow: 0 1.5px 6px #f9b04318;
  background: var(--secondary);
}
.text-section p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

/* === ACCENTED PRICE TAG/EMPHASIS in SERVICES === */
li em {
  font-size: 1em;
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  padding: 1px 8px 2px 8px;
  margin-left: 7px;
  font-style: normal;
  font-weight: bold;
  box-shadow: 0 1px 5px #f9b04328;
}

/* === RESPONSIVE STACKING FOR FLEX LAYOUTS ===*/
@media (max-width: 600px) {
  .section {
    margin-bottom: 31px;
    padding: 17px 4px;
  }
  .card {
    padding: 13px 8px;
    min-width: 0;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 10px;
    padding: 14px 8px;
  }
}

/* === HIGHLIGHT INTERACTIVE ELEMENTS === */
a:focus, button:focus, .cta-button:focus {
  outline: 3px dashed var(--accent-dark);
  outline-offset: 2px;
}

/* === MISC ACCESSIBILITÀ E VISUAL ===*/
::selection {
  background: var(--accent);
  color: #fff;
}

/* === SPECIAL CREATIVE/ARTISTIC DETAILS === */
.content-wrapper {
  position: relative;
  z-index: 1;
  background: none;
}
.content-wrapper h1,
.content-wrapper h2,
.content-wrapper h3 {
  position: relative;
  isolation: isolate;
}
.content-wrapper h1::before {
  content: '•';
  color: var(--primary);
  font-size: 2.1em;
  opacity: .14;
  vertical-align: bottom;
  position: absolute;
  left: -36px; top: 11px;
  z-index: -1;
}
@media (max-width: 600px) {
  .content-wrapper h1::before {
    left: -24px; font-size: 1.25em; top: 10px;
  }
}

/* === PRINT STYLES === */
@media print {
  nav,.cta-button,.mobile-menu,.cookie-banner,.cookie-modal,footer { display: none !important;}
  .section,.container,.content-wrapper { box-shadow: none !important; background: #fff !important;}
}

/* === END OF STYLE.CSS === */

