

body { 
    margin: 0; font-family: Arial, sans-serif;
    color: white; 
    background: url("images-destinations/castellammare.png") no-repeat center center fixed; 
    background-size: cover; 
    position: relative; 
}

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.25)
    );
    z-index: -1;
}

html {
    scroll-behavior: smooth;
}

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

.paragraph {
    max-width: 900px;
    margin: 40px auto;
    text-align: center;
    line-height: 1.6;
    font-size: 18px;
    background: rgba(0, 0, 0, 0.235);
    padding: 15px 20px;
    border-radius: 10px;
    color: white;
    text-shadow: 2px 2px 6px rgba(237, 70, 9, 0.277);
    box-sizing: border-box;
}

.content-text {
    flex: 1;
    min-width: 250px;
    width: 35%;
    font-size: 18px;
    line-height: 1.6;
    background: rgba(0, 0, 0, 0.235);
    padding: 15px 20px;
    border-radius: 10px;
    color: white;
    text-shadow: 2px 2px 6px rgba(237, 70, 9, 0.277);
    box-sizing: border-box;
}

/* ========================= SCROLL IMAGES ========================= */

.scroll-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 20px;
    padding: 20px;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}

.image-item {
    min-width: 300px;
    flex: 0 0 auto;
}

.image-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 300px;
    text-decoration: none;
}

.image-item img {
    width: 300px;
    height: 240px;
    max-height: 280px;
    object-fit: cover;
    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;
    display: block;
    box-sizing: border-box;
}

.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;
    width: 300px;
    box-sizing: border-box;
    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: rgba(0, 0, 0, 0.573);
    padding: 8px 12px;
    border-radius: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    display: block;
    letter-spacing: 2px;
}

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

/* ========================= FIRST SCROLL BIGGER ========================= */

.first-scroll .image-item {
    min-width: 420px;
    flex: 0 0 420px;
}

.first-scroll .image-item a {
    width: 420px;
}

.first-scroll .image-item img {
    width: 420px;
    height: 300px;
}

.first-scroll .image-item p {
    width: 420px;
}

/* ========================= CONTENT ROWS ========================= */

.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);
    box-sizing: border-box;
}

.small-img {
    width: 30%;
    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;
    width: 45%;
}

.four-image-title {
    font-size: 2rem;
    font-weight: bold;
    color: white;
    width: 100%;
    margin-bottom: 15px;
    text-align: center;
}

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

.image-square {
    width: 45%;
}

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

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

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

/* ========================= IMAGE SQUARE (2x2 GRID) ========================= */

.image-square {
    aspect-ratio: 1 / 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    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);
    box-sizing: border-box;
}

.image-square img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    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%;
    aspect-ratio: 1 / 1;
    grid-template-columns: repeat(2, 1fr);
    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.45);
    aspect-ratio: 1 / 1;
}