:root {
    --primary: #5d6bb0;
    --secondary: #b76e79;
    --light: #f8f9fc;
}

body {
    font-family: 'Lora', serif;
    line-height: 1.8;
    color: #333;
    background-color: var(--light);
    background-image: url('https://www.transparenttextures.com/patterns/soft-circle-scales.png');
    background-size: cover;
}

/* Overlay iniziale */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(93, 107, 176, 0.97);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    transition: opacity 1s ease;
}

.quote-box {
    text-align: center;
    padding: 2rem;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.poesia {
    font-family: 'Playfair Display', serif;
    font-size: 2.3rem;
    font-style: italic;
    color: #f0f0f0;
    margin-bottom: 1.5rem;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Pulsante switch lingua */
.language-switch {
    position: absolute;
    top: 10px;
    right: 10px;
}

.language-switch button {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

.language-switch button:hover {
    background-color: var(--secondary);
}

/* Stile logo */
.project-logo {
    width: 160px;
    height: auto;
    margin: 20px auto;
    display: block;
}

.enter-btn {
    background: transparent;
    border: 2px solid #f0f0f0;
    color: #f0f0f0;
    padding: 12px 30px;
    font-size: 1.1rem;
    margin-top: 2rem;
    cursor: pointer;
    transition: all 0.4s;
    border-radius: 30px;
}

.enter-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.profile-header {
    text-align: center;
    padding: 3rem 0;
}

.profile-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--secondary);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.tagline {
    font-style: italic;
    color: var(--primary);
    font-size: 1.2rem;
    margin-top: 1rem;
}

/* Sezioni */
section {
    padding: 4rem 2rem;
    border-bottom: 1px dashed var(--secondary);
}

footer {
    text-align: center;
    padding: 3rem 0;
}

/* Copyright e Disclaimer */
.handwritten-signature {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    color: var(--primary);
    text-align: center;
    margin: 1rem 0;
    font-weight: 700;
}

.disclaimer {
    font-size: 0.9rem;
    color: var(--dark);
    opacity: 0.8;
    max-width: 600px;
    margin: 10px auto;
    text-align: center;
}

.hidden { display: none; }
.fade-out { opacity: 0; }

.columns {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.col {
    flex: 1;
    min-width: 250px;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
    margin-top: 2rem;
}

.timeline:before {
    content: "";
    position: absolute;
    left: 5px;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--secondary);
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}

.timeline-year {
    position: absolute;
    left: -30px;
    top: 0;
    background: var(--primary);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: bold;
}

.timeline-content {
    background: rgba(255,255,255,0.7);
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid var(--primary);
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

/* Sezione CTA */
.cta-box {
    text-align: center;
    padding: 2rem;
    background: rgba(126, 87, 194, 0.08);
    border-radius: 10px;
    margin: 3rem 0;
    border: 1px dashed var(--secondary);
}

/* Email */
.email-box {
    font-size: 1.3rem;
    margin: 1.5rem 0;
    font-weight: 600;
}

.email-box a {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 2px dotted var(--secondary);
    transition: all 0.3s;
}

.email-box a:hover {
    color: #5e35b1;
    border-bottom-style: solid;
}

/* Social */
.social-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 0;
    margin: 1rem 0;
}

.social-links li a {
    text-decoration: none;
    color: var(--primary);
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-links li a:hover {
    color: var(--secondary);
}

.social-icon {
    width: 24px;
    height: auto;
    vertical-align: middle;
    margin-right: 0.5rem;
}

/* === TWEAK 1: Ombreggiature per Profondità === */
.profile-img {
    box-shadow: 0 10px 30px rgba(0,0,0,0.2); 
}

.menu-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(183, 110, 121, 0.4); 
}

/* === TWEAK 2: Pulsanti Più Reattivi === */
.enter-btn {
    transition: all 0.3s;
}

.enter-btn:hover {
    background: #5d6bb0; 
    color: white;
}

/* === TWEAK 3: Sezioni con Bordi Dinamici === */
.section-box {
    transition: border-color 0.3s;
}

.section-box:hover {
    border-bottom-color: #b76e79; 
}
/* Sezione quadro-narrativo */
.section-box ul {
    margin-top: 1rem;
    padding-left: 1.2rem;
    list-style-type: disc;
    color: var(--primary);
    font-size: 1.05rem;
}

.section-box ul li {
    margin-bottom: 0.8rem;
}

.section-box ul li a {
    color: var(--secondary);
    text-decoration: underline dotted;
    transition: color 0.3s ease;
}

.section-box ul li a:hover {
    color: var(--primary);
    text-decoration-style: solid;
}

/* Sezione evidenziata per esperienze */
#monserrato {
    background-color: rgba(247, 232, 216, 0.3);
    border: 2px solid var(--secondary);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.special-box {
    border-left: 6px solid #355E9B; /* blu profondo */
    background-color: #f7f7f7;
    padding: 20px;
    margin-top: 30px;
    border-radius: 8px;
}

/* Media Query per Mobile */
@media (max-width: 768px) {
    .poesia {
        font-size: 1.8rem;
    }
    .columns {
        flex-direction: column;
    }
}
.firma {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    color: #f0f0f0;
    margin-top: 1.5rem;
    font-style: italic;
    text-align: center;
}
.section-title {
  border-left: 5px solid #41729F;
  padding-left: 1rem;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #2d2d2d;
  font-weight: 600;
}

.section-box {
  scroll-margin-top: 100px; /* o regolalo se hai una navbar fissa */
}

/* Layout griglia sezioni principali */
.section-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    align-items: flex-start;
}

.section-grid > .text, .section-grid > .image {
    flex: 1 1 48%;
}

.section-grid .image img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .section-grid {
        flex-direction: column;
    }
    .section-grid > .text, .section-grid > .image {
        flex: 1 1 100%;
    }
}
.ad-oggi-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #8a2be2; /* viola scuro elegante */
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease;
}

.ad-oggi-btn:hover {
  background-color: #6a1bb9; /* sfumatura al passaggio del mouse */
}
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.article-card {
  background-color: #f8f8f8;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.article-card.alt {
  background-color: #ece7f8;
}

.article-card h3 {
  margin-top: 0;
  color: #333;
}

.article-card a {
  display: inline-block;
  margin-top: 10px;
  color: #3f00a3;
  font-weight: bold;
  text-decoration: none;
}

.article-card a:hover {
  text-decoration: underline;
}
@media (max-width: 600px) {
  .article-card {
    padding: 0.8rem;
    font-size: 0.95rem;
  }

  .article-card h3 {
    font-size: 1.1rem;
  }

  .article-card p {
    margin-bottom: 0.5rem;
  }

  .article-grid {
    gap: 0.8rem;
  }
}
.article-card.alt {
  background-color: #f0f0f5; /* grigio lavanda chiaro */
  border: 1px solid #d4d4d4;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.highlight-box {
  background-color: #f1f0fa;
  border-left: 6px solid var(--secondary);
  padding: 1.8rem;
  margin: 2rem 0;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  font-size: 1.05rem;
  color: #333;
}

.highlight-quote {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--primary);
  font-style: italic;
  margin-bottom: 1rem;
}

.hashtag {
  margin-top: 1rem;
  color: #666;
  font-size: 0.95rem;
}
.enter-btn.light {
  background-color: #f1f0fa;
  color: #333;
  border: 2px solid var(--primary);
  font-weight: bold;
}

.enter-btn.light:hover {
  background-color: #e6e3f5;
  color: var(--secondary);
}
.framed-photo {
  margin: 2rem 0;
  padding: 1rem;
  background-color: #f4f4f4;
  border: 1px solid #ccc;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.framed-photo img {
  width: 100%;
  border-radius: 8px;
}

.framed-photo p {
  text-align: center;
  font-style: italic;
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

/* Ottimizzazione per mobile */
@media (max-width: 768px) {
  .framed-photo {
    padding: 0.5rem;
  }
}
.article-card img:hover {
  filter: brightness(0.95);
  transition: all 0.3s ease;
}

.article-card img {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

@media screen and (max-width: 768px) {
  .article-grid {
    grid-template-columns: 1fr;
  }
  .article-card img {
    max-height: 300px;
    object-fit: cover;
  }
}
.enter-btn {
  display: inline-block;
  background-color: #f2f2f2; /* colore chiaro neutro */
  color: #333333; /* testo in grigio scuro */
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: background-color 0.3s ease;
}

.enter-btn:hover {
  background-color: #dddddd;
  color: #000000;
}
.menu-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.menu-btn {
  background: linear-gradient(135deg, #f2f2f2, #e6e6e6);
  color: #333;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 20px;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

.menu-btn:hover {
  background: linear-gradient(135deg, #dcdcdc, #cfcfcf);
  transform: translateY(-2px);
  color: #000;
}
.visioni-future {
  border: 2px solid #ccc;
  border-radius: 10px;
  background-color: #f9f9f9;
  padding: 30px 20px;
  margin-top: 2rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.contatto-speciale {
  border: 2px solid #d8d8d8;
  border-radius: 12px;
  padding: 30px 20px;
  background: #fffefc;
  box-shadow: 0 0 10px rgba(0,0,0,0.07);
  margin-top: 2rem;
  text-align: center;
}

.contatto-speciale .email-cta a {
  display: inline-block;
  background: #ffd699;
  color: #333;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  margin-top: 1rem;
  transition: background 0.3s ease;
}

.contatto-speciale .email-cta a:hover {
  background: #ffbe59;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.gallery-grid img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}
.gallery-two-columns {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.photo-pair {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.photo-pair img {
  width: 48%;
  max-width: 300px;
  border-radius: 8px;
  object-fit: cover;
}
.article-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.article-card {
  flex: 1 1 calc(33% - 20px); /* Tre per riga con margine */
  box-sizing: border-box;
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  min-height: 350px; /* Altezza minima armonica */
  display: flex;
  flex-direction: column;
  justify-content: space-between;

    /* NUOVA SEZIONE PNRR */
.pnrr-section {
  background: #f8f5ff;
  padding: 25px;
  border-radius: 12px;
  margin: 30px 0;
  border-left: 4px solid #4e2a8e;
}

.pnrr-content {
  margin-top: 20px;
}

.pnrr-content h3 {
  color: #4e2a8e;
  border-bottom: 1px solid #d4c2f0;
  padding-bottom: 10px;
}

.btn {
  display: inline-block;
  padding: 12px 25px;
  background: #4e2a8e;
  color: white !important;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 15px;
  transition: all 0.3s ease;
}

.btn:hover {
  background: #3a1c6b;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Ottimizzazione mobile per PNRR */
@media (max-width: 768px) {
  .pnrr-section {
    padding: 15px;
    margin: 20px 0;
  }
  
  .pnrr-content ul, 
  .pnrr-content ol {
    padding-left: 20px;
  }
}
/* AGGIUNGI QUESTO */
.highlight-box, .section-box, .pnrr-content {
  overflow-wrap: break-word;
  word-break: break-word;
}

@media (max-width: 600px) {
  .section-box li, .pnrr-content li {
    font-size: 0.9rem;
  }
}
   /* GARANTISCE UNIFORMITA' DELLE CARD */
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.social-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.card-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 15px;
  flex-grow: 1;
}

.card-footer {
  padding: 0 15px 15px;
} 
    
     /* STILE PER LA SEZIONE FAMIGLIA */
.social-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  margin: 30px auto;
  max-width: 1200px;
}

.social-card {
  flex: 1;
  min-width: 300px;
  max-width: 350px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.social-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.card-header {
  padding: 15px 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-header h4 {
  margin: 0;
  font-size: 1.3rem;
  color: #333;
}

.card-date {
  background: #f0f0f0;
  padding: 3px 10px;
  border-radius: 15px;
  font-size: 0.9rem;
}

.card-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-bottom: 3px solid #4e2a8e;
}

.card-content {
  padding: 15px 20px;
}

.card-content p {
  margin: 0;
  color: #555;
  line-height: 1.6;
}

.card-footer {
  padding: 0 20px 20px;
  text-align: center;
}

.read-more {
  display: inline-block;
  padding: 8px 20px;
  background: #4e2a8e;
  color: white !important;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.read-more:hover {
  background: #3a1c6b;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
  .social-grid {
    flex-direction: column;
    align-items: center;
  }
  
  .social-card {

      .citazione-breve {
  font-style: italic;
  font-size: 0.95rem;
  color: #444;
  margin: 10px 0;
  opacity: 0.85;
}

.replicable-message {
  color: #FFFAFA; /* Bianco neve */
}
      .replicable-message {
  color: #FFFAFA;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
}

