
/* ========================= GENERAL ========================= */
body {
    background: url("images-culinary-traditions/sfondo.png") center/cover no-repeat fixed;
    background-size: cover;
    margin: 0;
    font-family: 'Baloo 2', Arial, sans-serif;
    color: white;
}



body::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(10, 30, 80, 0.3),
        rgba(0, 0, 0, 0.2),
        rgba(120, 60, 20, 0.3)
    );
    z-index: -1;
}

html {
    scroll-behavior: smooth;
}

.title-container {
    display: flex;               /* use flexbox for perfect centering */
    justify-content: center;     /* centers horizontally */
    align-items: center;         
    margin: 40px auto;
    padding: 10px 20px;
}

.title-container .title { 
    font-size: 5rem; 
    font-weight: bold;
    color: #fff; 
    text-shadow: 2px 2px 6px rgba(0,0,0,0.6); /* subtle shadow to make it pop */
}

/* ========================= PARAGRAPHS ========================= */

.paragraph {
    max-width: 900px;
    margin: 20px auto;        /* spacing around the box */
    text-align: center;
    line-height: 1.6;
    font-size: 18px;
    padding: 20px;           
    background: rgba(0, 0, 0, 0.416); 
    border-radius: 12px;      /* smooth corners */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.244); 
}
/* ========================= SCROLL IMAGES ========================= */

/* Horizontal scroll container */

.scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 20px;
}

/* Make scroll images bigger */
.image-item {
    min-width: 300px;
}

.image-item img {
    width: 300px;      
    height: 240px;    
    max-height: 280px;  /* prevent resizing */
    object-fit: cover;  /* maintain aspect ratio and fill */
    border: 5px solid rgba(103, 95, 95, 0.191);
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.55);
    padding: 5px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.image-item img:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.image-item p {
    margin-top: 8px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 1.4em;       
    font-weight: normal;
    text-align: center;
    color: #bbb3af;
    background: rgb(0, 0, 0);
    padding: 8px 12px;
    border-radius: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.445); /* shadow for readability */
    display: inline-block;
    letter-spacing: 2px
}

.image-item:hover p {
    opacity: 1;
}

.content-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 40px auto;
    padding: 20px;
    max-width: 1100px;
    background: rgba(255,255,255,0.08);
    border-radius: 15px;
    backdrop-filter: blur(4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}


.small-img {
    width: 30%;
    border-radius: 10px;
}

.content-text {
    flex: 1;
    min-width: 250px; 
    font-size: 18px;
    line-height: 1.6;
    padding: 15px;
    background: rgba(0, 0, 0, 0.5); /* semi-transparent black behind text */
    border-radius: 10px;
}

/* ========================= SECTION TITLES ========================= */

.section-title {
    writing-mode: horizontal-tb;
    transform: none;            
    font-size: 2rem;
    font-weight: bold;
    color: white;
    margin-bottom: 15px;
    text-align: center;
    border: none;                
    padding: 0;
}

.left-column {
    display: flex;
    flex-direction: column;
    align-items: center; /* centers the title above the images */
    width: 45%;          /* same width as your image-square */
}


/* ========================= SECTION LAYOUT FIX ========================= */


.content-text {
    width: 35%;
}

/* ========================= SCROLL ANIMATION ========================= */

.fade-in {
    opacity: 1;
    transform: none;
    transition: none;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}


.image-square {
    width: 45%;              /* size of the big square */
    aspect-ratio: 1 / 1;     /* keeps it perfectly square */
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2x2 layout */
    gap: 10px;
    background: rgba(0, 0, 0, 0.45);
    padding: 12px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.image-square img {
    width: 100%;
    height: 100%;
    object-fit: cover;       /* keeps images neat and visible */
    border-radius: 10px;
    box-shadow: 0 6px 15px  rgba(0,0,0,0.3);
    aspect-ratio: 1 / 1;
}

/* Bigger images for last sections */
.image-square.large-squares {
    width: 100%;              /* larger than default 45% */
    aspect-ratio: 1 / 1;     /* keeps squares */
    grid-template-columns: repeat(2, 1fr); /* still 2x2 grid */
    gap: 15px;
}

.image-square.large-squares img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.302);
    aspect-ratio: 1 / 1;     /* ensures images remain squares */
}

/* Container for all paragraphs under Food Festivals */
.section-text {
    font-size: 20px; 
    background: rgba(0, 0, 0, 0.447);
    color: #fff;                   /* bright text for readability */
    padding: 15px 20px;
    border-radius: 12px;
    line-height: 1.6;
    margin-bottom: 20px;           /* spacing between paragraphs */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.424); /* subtle depth */
}

.section h3.section-title + p {
    margin-top: 20px;
}

.section h2.section-title{
    font-size: 3rem; 
    color: rgb(255, 255, 255)
}

.section h3.section-title {
    font-size: 1.5rem; 
    text-align: left;
    color: rgb(245, 241, 241)
}

