body {
    font-family: 'Roboto', sans-serif;
    background-color: #e3e1e1;
    color: #333;
}
.bg-primary {
    background-color: #6200ea !important;
}
.btn-primary {
    background-color: #03a9f4 !important;
    border: none;
}
.btn-light {
    background-color: #fdd835 !important;
    color: #333;
}
/* Header comune a tutte le pagine */

/* Header per Mindset */
.header-mindset {
    background: linear-gradient(135deg, #4A148C, #7E57C2);
}

/* Header per Development */
.header-development {
    background: linear-gradient(135deg, #0D47A1, #1976D2);
}


/*Index image*/
/* Rendi l'header fisso */
#header-placeholder {
    position: fixed; /* Lo fissa in alto */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* Assicura che rimanga sopra tutto */
}


/* Evita che l'Hero Section venga coperta dall'header */
/* Hero Section con overlay per migliorare leggibilità */
/* Stile generale Hero Section */
.hero-section {
    position: relative;
    background: url('../images/index/index2.webp') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

/* Overlay per contrasto migliore */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Scuro ma non opprimente */
    z-index: 1;
}

/* Contenitore del testo */
.hero-section .container {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

/* Stile per il titolo */
.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.8);
    animation: fadeInDown 1s ease-in-out;
}

/* Stile per il sottotitolo */
.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 400;
    margin-top: 10px;
    opacity: 0.9;
    animation: fadeInUp 1.2s ease-in-out;
}

/* Bottone Call to Action */
.btn-hero {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    background: linear-gradient(45deg, #ff8c00, #ff4500);
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(255, 69, 0, 0.4);
    transition: 0.3s;
}

.btn-hero:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(255, 69, 0, 0.6);
}

/* Animazioni */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsività */
@media (max-width: 768px) {
    .hero-section {
        height: auto;
        padding: 100px 20px;
        background-attachment: scroll;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .btn-hero {
        font-size: 1rem;
        padding: 10px 20px;
    }
}


/* Stile del testo per maggiore leggibilità */
.hero-section h1 {
    font-size: clamp(2rem, 5vw, 4rem); /* Dimensione adattabile tra 2rem e 4rem */
    font-weight: bold;
    line-height: 1.5; /* Migliora la leggibilità del titolo */
    margin-bottom: 30px; /* Distanza tra il titolo e il primo paragrafo */
}

.hero-section p {
    font-size: clamp(1rem, 2vw, 1.5rem); /* Testo adattabile tra 1rem e 1.5rem */
    max-width: 800px; /* Impedisce che il testo diventi troppo largo */
    margin: 0 auto 20px auto; /* Centra e aggiunge spazio tra i paragrafi */
    line-height: 1.5; /* Aumenta lo spazio tra le righe */
}

/* Per dispositivi molto piccoli */
@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 1.8rem;
        line-height: 1.4; /* Spazio leggermente maggiore per migliorare leggibilità */
    }

    .hero-section p {
        font-size: 1rem;
        line-height: 1.7; /* Testo più leggibile su schermi piccoli */
        margin-bottom: 15px; /* Riduce lo spazio tra i paragrafi su mobile */
    }
}


/*End index image*/

/*Hero section text*/
.hero-section h1 {
    font-size: clamp(2rem, 5vw, 4rem); /* Dimensione adattabile tra 2rem e 4rem */
    font-weight: bold;
    line-height: 1.5; /* Migliora la leggibilità del titolo */
    margin-bottom: 30px; /* Distanza tra il titolo e il primo paragrafo */
}

.hero-section p {
    font-size: clamp(1rem, 2vw, 1.5rem); /* Testo adattabile tra 1rem e 1.5rem */
    max-width: 800px; /* Impedisce che il testo diventi troppo largo */
    margin: 0 auto 20px auto; /* Centra e aggiunge spazio tra i paragrafi */
    line-height: 1.5; /* Aumenta lo spazio tra le righe */
}

/* Per dispositivi molto piccoli */
@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 1.8rem;
        line-height: 1.4; /* Spazio leggermente maggiore per migliorare leggibilità */
    }

    .hero-section p {
        font-size: 1rem;
        line-height: 1.7; /* Testo più leggibile su schermi piccoli */
        margin-bottom: 15px; /* Riduce lo spazio tra i paragrafi su mobile */
    }
}


/*End hero section text*/

/* Sezione introduttiva - spaziatura e leggibilità ottimale */
.section-intro {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    padding: 30px 20px;
    max-width: 960px;
    margin: 40px auto;
    line-height: 1.8;
}

.section-intro p {
    font-size: 1.05rem;
    color: #333;
    margin: 0;
}
/* Responsive */

@media (max-width: 768px) {
    .section-intro {
        margin: 40px 10px;
        padding: 30px 20px;
    }

    .section-intro p {
        font-size: 1.05rem;
    }
}

/* End introductio section blog*/


/* Sezione Missione estesa */
section.missione {
    background-color: #f8f9fa;
    border-left: 5px solid #0d6efd;
    padding: 2rem;
    margin-top: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.05);
}

/* Mini missione in home */
.missione-mini {
    background-color: #f0f0f0;
    border-left: 4px solid #007bff;
    padding: 1rem 1.5rem;
    margin-top: 2rem;
    border-radius: 0.3rem;
}
/* Firma del blog */
.blog-signature {
    background-color: #f8f9fa;
    border-left: 4px solid #6c757d; /* grigio Bootstrap */
    padding: 1rem 1.25rem;
    margin-top: 3rem;
    font-style: italic;
    font-size: 0.95rem;
    border-radius: 0.25rem;
}



.card {
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}
.card:hover {
    transform: scale(1.05);
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1);
}
.fab-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #6200ea;
    color: white;
    border-radius: 50%;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}
.fab-icon:hover {
    background-color: #3700b3;
}

.header {
    background-color: #0288D1; /* Material Light Blue */
    color: #FFFFFF;
    animation: slideInFromTop 1s ease-in;
}

.navbar {  
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.navbar-brand, .nav-link {
    color: #FFFFFF;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba%28255, 255, 255, 0.7%29' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.nav-link {
    text-align: center;
    margin: 0 10px;
}

.nav-link:hover {
    color: #81D4FA; /* Material Light Blue Accent */
}

.blog-header {
    padding-top: calc(70px + 2rem);
    padding-bottom: 50px;
    background-color: #6200ea;
    color: #FFFFFF;
    text-align: center;
    animation: slideInFromRight 1s ease-in;
}


.blog-post, .card, .about-text {
    padding: 2rem;
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    animation: fadeIn 1.5s ease-in;
}

a {
    color: #0288D1; /* Material Light Blue */
}

a:hover {
    color: #0277BD; /* Material Darker Blue */
    text-decoration: none;
}

main {
    flex: 1;
}

footer {
    background-color: #CFD8DC; /* Material Light Blue Grey */
    color: #37474F; /* Material Blue Grey */
    text-align: center;
    padding: 1rem;
    animation: fadeIn 1s ease-in;
}

.fab-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #6200ea;
    color: white;
    border-radius: 50%;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.fab-icon:hover {
    background-color: #3700b3;
}

.about-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 3rem;
    animation: fadeIn 1s ease-in;
}

.about-img {
    width: 100%;
    max-width: 800px;
    border-radius: 10px;
    margin: 1rem 10;
}

@media (min-width: 768px) {
    .about-container {
        max-width: 800px;
        margin: 0 auto;
    }
    .about-img {
        float: left;
        width: 40%;
        margin-right: 2rem;
        margin-bottom: 1rem;
    }
    .about-text {
        text-align: justify;
    }
}

@media (max-width: 767px) {
    .about-container {
        padding: 0 1rem;
    }
    .about-img {
        margin-bottom: 1.5rem;
    }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes slideInFromRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromTop {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* === Stile articoli blog === */

.article-container {
    max-width: 850px;
    margin: 50px auto;
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    animation: fadeIn 1s ease-in;
}

.article-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.article-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #4A148C;
    margin-bottom: 1rem;
}

.article-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.article-content p strong {
    font-weight: 700;
    color: #000;
}

.article-content em {
    font-style: italic;
    color: #555;
}

.article-content ul,
.article-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.article-content ul li,
.article-content ol li {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.article-content blockquote {
    font-style: italic;
    background-color: #f3f3f3;
    border-left: 5px solid #7E57C2;
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    color: #555;
}

.article-content h3 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.6rem;
    font-weight: 600;
    color: #333;
    border-left: 4px solid #7E57C2;
    padding-left: 0.75rem;
}

.article-content a {
    color: #6200ea;
    font-weight: 600;
    text-decoration: underline;
}

.article-content a:hover {
    color: #3700b3;
}

/* Responsive per articoli */
@media (max-width: 768px) {
    .blog-signature {
        font-size: 0.85rem;
        padding: 0.75rem 1rem;
        margin-top: 2rem;
    }

    .article-container {
        padding: 1rem;
        margin: 20px 1rem;
    }

    .article-title {
        font-size: 1.6rem;
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }

    .article-content p {
        font-size: 0.95rem;
        line-height: 1.7;
        margin-bottom: 1.2rem;
    }

    .article-content ul li,
    .article-content ol li {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .article-content blockquote {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }

    .article-content h3 {
        font-size: 1.2rem;
        padding-left: 0.5rem;
        margin-top: 2rem;
        margin-bottom: 0.8rem;
    }
}

@media (max-width: 480px) {
    .blog-signature {
        font-size: 0.8rem;
        padding: 0.6rem 0.9rem;
    }
    
    .article-title {
        font-size: 1.4rem;
    }

    .article-content p {
        font-size: 0.9rem;
    }

    .article-content h3 {
        font-size: 1.1rem;
    }
}


/* === Responsive code blocks === */
pre {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 1rem;
  background-color: #f8f9fa;
  padding: 1rem;
  border-radius: 0.375rem;
  overflow-x: auto;
  max-width: 100%;
}

pre code {
  display: block;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Font più piccolo su smartphone */
@media (max-width: 576px) {
  pre {
    font-size: 0.875rem;
  }
}


