.cookie-banner {
  position: fixed;
  bottom: 20px;            /* non più attaccato al bordo */
  left: 50%;
  transform: translateX(-50%);
  max-width: 90%;          /* responsive */
  width: 600px;            /* limite desktop */
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  padding: 20px;
  border-radius: 12px;     /* effetto box sovrapposto */
  display: none;
  z-index: 9999;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  font-family: sans-serif;
}

.cookie-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
}

.cookie-buttons button {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
}

#accept-cookies { background-color: #4caf50; color: #fff; }
#reject-cookies { background-color: #d9534f; color: #fff; }

.cookie-link {
  color: #bbb;
  font-size: 0.9em;
  text-decoration: underline;
  align-self: flex-end;
}

/* 📱 Responsive per smartphone e tablet */
@media (max-width: 600px) {
  .cookie-banner {
    bottom: 10px;
    width: 95%;
    padding: 15px;
  }

  .cookie-buttons {
    flex-direction: column;
  }

  .cookie-buttons button {
    width: 100%;
  }

  .cookie-link {
    align-self: flex-start;
  }
}

/* =========== VARIABILI ========= */
:root {
  --paper-img: url("../img/022d150291faefa2fff9474aafcecaf6.png");
  --panel-pad: 36px;
  --muted: rgba(0, 0, 0, 0.6);
  --white-opaque: rgba(255, 255, 255, 0.9);
  --accent: #1a1a1a;
  --bordeaux: #800020;
  --bg-panel: #fff8f0;
  --thumb-size: 54px;
  --shadow-light: rgba(0, 0, 0, 0.15);
  --shadow-strong: rgba(0, 0, 0, 0.3);
}

/* Body + sfondo carta */
body.paper-bg {
  margin: 0;
  min-height: 100vh;
  font-family: "Lora", Georgia, serif;
  color: var(--accent);
  background: var(--paper-img) no-repeat center center fixed;
  background-size: cover;
}

/* App wrapper: due colonne affiancate */
.app-wrap {
  max-width: 1280px;
  margin: 36px auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 10px;
}

/* Pannali */
.panel {
  min-height: 70vh;
  /* padding: var(--panel-pad); */
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

/* Left panel */
.panel-left {
  text-align: center;
  background: transparent;
}

/* Right panel */
.panel-right {
  text-align: left;
  background: transparent;
}

/* Inner content width controls */
.left-inner {
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
}

.right-inner {
  max-width: 640px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding-bottom: 0;
}

/* AVATAR */
.avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  margin: 6px auto 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(240, 240, 240, 0.9));
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  background-image: url("../img/profilo.jpeg");
  background-size: cover;
  background-position: center;
  border: 6px solid rgba(255, 255, 255, 0.85);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.avatar:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.small-avatar {
  width: 90px;
  height: 90px;
}

/* Main Name */
.main-name {
  font-family: "Cormorant Garamond", "Playfair Display", serif;
  font-size: 42px;
  line-height: 0.95;
  font-weight: 700;
  margin: 6px 0 18px;
  text-align: center;
  letter-spacing: 0.5px;
  color: #1a1a1a;
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.5);
}

.main-name.small {
  font-size: 18px;
  margin-top: 6px;
  font-weight: 700;
}

/* Small headings */
.small-title,
.right-heading,
h3 {
  font-family: "Cormorant Garamond", "Playfair Display", serif;
  font-weight: 800;
  letter-spacing: 1px;
  margin-top: 50px;
  text-transform: uppercase;
  font-size: 20px;
  color: #1a1a1a;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.4);
}

/* About paragraph - MIGLIORATO */
.about-paragraph {
  color: #1a1a1a;
  margin: 8px 0 18px;
  font-size: 15px;
  line-height: 1.7;
  font-weight: 400;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* ==========================
   CONTATTI AGGIORNATI
   ========================== */
.contacts {
  text-align: left;
  margin: 12px auto 18px;
  width: 90%;
  font-size: 15px;
  font-family: "Lora", serif;
  color: var(--accent);
}

.contacts-title {
  font-weight: bold;
  margin-bottom: 8px;
  font-size: 16px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-panel);
  border: 2px solid var(--bordeaux);
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  margin: 8px 0;
}

.contact-item:hover {
  box-shadow: 0 4px 12px var(--shadow-strong);
  transform: translateY(-2px);
  background: rgba(255, 248, 240, 1);
}

/* Icone inline tramite Unicode */

.contact-seleziona-lingua{
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-panel);
  border: 2px solid var(--bordeaux);
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  margin: 8px 0;
}



.contact-item.phone::before {
  content: "✆";
  font-size: 18px;
  color: var(--bordeaux);
  font-weight: bold;
}

.contact-item.email::before {
  content: "✉";
  font-size: 18px;
  color: var(--bordeaux);
  font-weight: bold;
}

.contact-item a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  transition: border-color 0.3s ease;
}

.contact-item a:hover {
  border-bottom-color: var(--bordeaux);
}


/* ==========================
   PULSANTI AGGIORNATI
   ========================== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  border: 2px solid var(--bordeaux);
  background: var(--bg-panel);
  font-family: "Lora", Georgia, serif;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  color: var(--accent);
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 3px 8px var(--shadow-light);
  font-size: 15px;
}

.btn:hover {
  background: rgba(255, 248, 240, 1);
  color: var(--accent);
  border-color: var(--bordeaux);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 6px 16px var(--shadow-strong);
}

.btn:active {
  transform: translateY(-1px);
}

.btn.ghost {
  background: rgba(17, 17, 17, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn.small {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
}

.appointments {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

/* Right headings */
.right-heading,
.right-sub {
  align-self: flex-start;
  text-align: left;
  margin-bottom: 18px;
}

.right-heading {
  font-family: "Cormorant Garamond", serif;
  font-size: 26px;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.4);
}

.right-sub {
  font-family: "Lora", serif;
  font-style: italic;
  color: #1a1a1a;
  font-weight: 400;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.4);
  font-size: 14px;
}

/* Works page */
.works-panel {
  padding: var(--panel-pad);
}

.works-inner {
  max-width: 640px;
  margin: 0 auto;
}

.works-block {
  margin-top: 18px;
}

.works-block h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 16px;
  margin-bottom: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #1a1a1a;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.works-row {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.thumbs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 80px;
}

.thumb {
  width: var(--thumb-size);
  height: var(--thumb-size);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 4px var(--shadow-light);
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.thumb:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 10px var(--shadow-strong);
}

.thumb.active {
  border: 3px solid var(--bordeaux);
  transform: scale(1.05);
}

.desc-area {
  flex: 1;
  display: flex;
  align-items: center;
}

.desc-text {
  background: rgba(255, 255, 255, 0.95);
  padding: 14px;
  border-radius: 6px;
  box-shadow: 0 2px 6px var(--shadow-light);
  color: #1a1a1a;
  min-height: 56px;
  font-family: "Lora", serif;
  line-height: 1.6;
  font-weight: 400;
}

/* Responsive */
/* @media (max-width: 900px) {
  .app-wrap { 
    grid-template-columns: 1fr; 
    padding: 18px; 
    margin: 18px; 
  }
  
  .works-row { 
    flex-direction: column; 
  }
  
  .thumbs { 
    flex-direction: row; 
    width: auto; 
    overflow: auto; 
  }
  
  .thumb { 
    width: 80px; 
    height: 80px; 
  }
  
  .left-inner { 
    max-width: 100%; 
  }

  .mini-carousel-viewport {
    max-width: 100%;
    height: 280px;
  }

  .mini-prev {
    left: 10px;
    font-size: 16px;
    padding: 8px 12px;
  }

  .mini-next {
    right: 10px;
    font-size: 16px;
    padding: 8px 12px;
  }

  .social-links {
    gap: 25px;
  }

  .social-links a {
    font-size: 32px;
  }
} */

/* Modal / bacheca */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  z-index: 80;
  backdrop-filter: blur(4px);
}

.modal[aria-hidden="false"] {
  display: flex;
}

.modal-card {
  /* width: 92%; */
  max-width: 550px;
  background: rgba(255, 248, 240, 0.98);
  padding: 28px;
  border-radius: 12px;
  position: relative;
  font-family: "Lora", serif;
  box-shadow: 0 12px 32px var(--shadow-strong);
  border: 2px solid var(--bordeaux);
}

.modal-card h3 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--bordeaux);
  font-size: 24px;
}

.modal-close {
  position: absolute;
  right: 12px;
  top: 12px;
  border: 0;
  background: none;
  font-size: 28px;
  cursor: pointer;
  color: #666;
  transition: color 0.2s ease, transform 0.2s ease;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.modal-close:hover {
  color: var(--bordeaux);
  background: rgba(0, 0, 0, 0.05);
  transform: rotate(90deg);
}

.board-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.board-list li {
  padding: 12px 14px;
  margin: 10px 0;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 6px;
  border-left: 4px solid var(--bordeaux);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.board-list li:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.board-form {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.board-form input {
  flex: 1;
  padding: 12px;
  border: 2px solid var(--bordeaux);
  border-radius: 6px;
  font-family: "Lora", serif;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.board-form input:focus {
  outline: none;
  border-color: var(--bordeaux);
  box-shadow: 0 0 0 3px rgba(128, 0, 32, 0.1);
}

/* === MINI CAROUSEL CENTRATO CON BORDEUX === */
.mini-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 30px;
  padding-right: 30px;
  width: 100%;
}

.mini-carousel-viewport {
  width: 100%;
  max-width: 550px;
  height: 340px;
  overflow: hidden;
  border-radius: 12px;
  border: 3px solid var(--bordeaux);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  position: relative;
  background: rgba(255, 255, 255, 0.1);
}

.mini-carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.mini-slide {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.mini-slide img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  margin: auto;
}

/* Bottoni navigazione - MIGLIORATI */
.mini-prev,
.mini-next {
  background: rgba(255, 248, 240, 0.95);
  backdrop-filter: blur(3px);
  border: 3px solid var(--bordeaux);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 22px;
  color: var(--accent);
  cursor: pointer;
  box-shadow: 0 4px 10px var(--shadow-light);
  transition: all 0.3s ease;
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.mini-prev:hover,
.mini-next:hover {
  background: rgba(255, 255, 255, 1);
  border-color: var(--bordeaux);
  color: var(--accent);
  box-shadow: 0 6px 16px var(--shadow-strong);
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
}

.mini-prev {
  position: absolute;
  left: -60px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.mini-next {
  position: absolute;
  right: -30px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.mini-prev:hover {
  transform: translateY(-50%) scale(1.12);
}

.mini-next:hover {
  transform: translateY(-50%) scale(1.12);
}

.mini-prev:active,
.mini-next:active {
  transform: translateY(-50%) scale(1.05);
}

/* === INDICATORI CAROUSEL - NUOVO === */
.carousel-indicators {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
}

.indicator-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.indicator-dot:hover {
  background: rgba(0, 0, 0, 0.4);
  transform: scale(1.2);
}

.indicator-dot.active {
  background: var(--bordeaux);
  transform: scale(1.4);
  border-color: var(--bordeaux);
  box-shadow: 0 0 8px rgba(128, 0, 32, 0.5);
}

.about-wrapper {
  background-color: rgba(255, 248, 240, 0.95);
  border: 2px solid var(--bordeaux);
  border-radius: 12px;
  padding: 20px 22px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-bottom: 25px;
}

.about-wrapper {
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  cursor: default;
}

.about-wrapper:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
  border-color: var(--bordeaux);
}


.about-wrapper2 {
  background-color: rgba(255, 248, 240, 0.95);
  border: 2px solid var(--bordeaux);
  border-radius: 12px;
  padding: 16px 40px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-bottom: 35px;
  min-width: 400px;
  margin-top: 0px;
}

.about-wrapper2 {
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  cursor: default;
}

.about-wrapper2:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
  border-color: var(--bordeaux);
}

.about-wrapper2 .right-heading {
  margin-top: 0;
}

.about-wrapper2 .right-sub {
  margin-top: 0;
}

/* Animazioni smooth */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.panel {
  animation: fadeIn 0.6s ease-out;
}

/* Focus states per accessibilità */
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--bordeaux);
  outline-offset: 2px;
}

/* Titoli con tocco artistico */
.right-heading,
.works-block h3,
.about-wrapper3 h2 {
  position: relative;
}

.right-heading::after,
.works-block h3::after,
.about-wrapper3 h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  width: 60%;
  height: 4px;
  background: rgba(135, 80, 120, 0.25);
  /* colpo di pennello elegante */
  border-radius: 2px;
}

/* Riquadri più artistici e raffinati */
.thumb-container,
.about-wrapper3,
.contacts {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.thumb-container:hover,
.about-wrapper3:hover,
.contacts:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(60, 30, 50, 0.15);
  /* ombra morbida */
}

/* Cursor feedback su elementi interattivi */
a,
.thumb {
  cursor: pointer;
}

/* Piccola icona di scorrimento */
.scroll-hint {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-top: 2px;
  letter-spacing: 0.5px;
}

/* ============================================
   RESPONSIVE AGGIUNTIVO (non invasivo)
   ============================================ */

/* Tablet grandi / laptop 1024px */
@media (max-width: 1024px) {

  /* Passa da due colonne a una quando serve */
  .app-wrap {
    grid-template-columns: 1fr;
    /*     transform: scale(0.85);
    margin-right: 25%; */
  }

  .about-wrapper2,
  .about-wrapper3 {
    padding-left: 20px;
    padding-right: 20px;
  }

  .mini-carousel-viewport {
    height: 280px;
  }

  .mini-prev {
    left: 10px;
  }

  .mini-next {
    right: 10px;
  }
}

/* Smartphone / 768px */
@media (max-width: 768px) {



  /* Le frecce del carousel rientrano */
  .mini-prev {
    left: 14%;
  }

  .mini-next {
    right: 19%;
  }

  /* Altezza dinamica per le immagini: non taglia più */
  .mini-carousel-viewport {
    transform: scale(0.75);
    height: auto;
  }

  .mini-carousel-track,
  .mini-slide {
    height: auto;
  }

  .mini-slide img {
    height: auto;
    max-height: 280px;
    object-fit: contain;
  }

  .about-wrapper3 {
    min-width: 0;
  }

  /* pannelli non devono forzare altezza */
  .panel {
    min-height: auto;
  }
}

/* Ulteriore fix per schermi molto piccoli */
@media (max-width: 480px) {

  .home {
    width: 135%;
    /* align-items: center; */
    margin-left: -25%;
    margin-right: 50%;
    /* margin-right: 15%; */
    transform: scale(0.8);
  }


  .app-wrap {
    overflow-x: hidden;

  }

  .panel-right {
    margin-left: 1%;
    width: 100%;
  }

  .mini-slide img {
    max-height: 220px;
  }

  .mini-prev {
    left: 16%;
    top: 55%;
  }

  .mini-next {
    right: 21%;
    top: 55%;
  }

  .mini-carousel-wrapper {
    align-items: center;
    left: 3%;
  }

  .about-wrapper2,
  .about-wrapper3 {
    padding: 12px;
  }
}

.bottone {
  text-align: center;
  margin-top: 70px;
}



.contact-seleziona-lingua{
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-panel);
  border: 2px solid var(--bordeaux);
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  margin: 8px 0;
}
