* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Stem, sans-serif;
    background: #f5f5f5;
    color: #333;
}

/* ===== NAVBAR ===== */
header {
  background: white;
  padding: 15px 30px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  background: white;
}

.nav-container {
  display: flex;
  justify-content: space-between; /* logo a sinistra, menu a destra */
  align-items: center;
}

/* Menu desktop */
.navbar ul {
  display: flex;
  list-style: none;
  gap: 20px; /* spazio tra voci */
}

.navbar ul li a {
  text-decoration: none;
  color: #333;
  font-size: 15px;
  font-weight: 500;
  padding: 6px 10px; /* piccolo padding per hover */
  border-radius: 5px; /* serve per l'effetto hover */
  transition: all 0.2s ease-in-out;
}

.navbar ul li a:hover {
  color: white;
  background-color: #FF595A;
  text-decoration: none;
}

/* HERO SECTION */
.hero {
    display: flex;
    flex-wrap: wrap;
    width: calc(100% - 40px);
    background-color: #FF595A;
    min-height: 55vh;
    margin: 20px;
}
.hero-left {
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.icon-img {
    width: 70px;
    filter: brightness(0) invert(1);
    margin: 140px 0 0 100px;
}
.logo-img {
    width: 300px;
    filter: brightness(0) invert(1);
    margin: 160px 0 10px 0;
}
.hero-left h1 {
    margin-left: 120px;
    margin-top: 90px;
    color: white;
    font-size: clamp(28px, 5vw, 59px);
    font-weight: bold;
}
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-left: 120px;
    margin-top: 30px;
}
.btn, .btn-outline {
    padding: 10px 20px;
    font-size: clamp(16px, 2vw, 25px);
    border-radius: 15px;
    text-decoration: underline;
    font-weight: bold;
}
.btn {
    background: #939393;
    color: white;
}
.btn-outline {
    background: white;
    color: #939393;
}
.hero-right {
    flex:  1 1 50%;
    position: relative;
    overflow: hidden;
    height:80%;
    background-color: #545454;
	justify-content: flex-end;
	 animation: slideInRight 1s ease-out forwards;
	 margin-top:100px;
}
.hero-right video {
    width: 80%;
    height: 200%;
    object-fit: cover;
	margin:50px;

}
@keyframes slideInRight {
    0% {
        transform: translateX(100%); /* start offscreen */
        opacity: 0;                  
    }
    100% {
        transform: translateX(0);    /* final position */
        opacity: 1;
    }
}
/* ===== TWO BOXES ===== */
.section-heading {
    text-align: center;
    margin: 40px 0 20px;
    font-size: clamp(20px, 3vw, 25px);
}

/* Container for the two boxes */
.two-box-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 20px; /* space between boxes */
    max-width: 1200px;
    margin: 0 auto 40px;
}

/* Each box */
.box {
    flex: 1 1 45%; /* responsive width */
    min-width: 280px; /* prevent too small on mobile */
    padding: 30px 20px;
    text-align: center;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    animation: zoomIn 0.8s ease-out forwards;
    opacity: 0;
}

/* Border between boxes on desktop */
.two-box-container .box:nth-child(2) {
    border-left: 2px solid #ddd;
    padding-left: 40px;
}

/* Box logo */
.box-logo {
    width: 180px;
    max-width: 100%;
    margin-bottom: 20px;
}

/* Box heading */
.box h4 {
    font-size: clamp(20px, 3vw, 30px);
    margin-bottom: 15px;
}

/* Box paragraph */
.box p {
    font-size: clamp(16px, 2.5vw, 25px);
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Box buttons */
.btn2, .btn3 {
    display: inline-block;
    padding: 10px 30px;
    background: #EF4B4B;
    color: white;
    text-decoration: none;
    border-radius: 15px;
    font-size: clamp(18px, 2.5vw, 25px);
    transition: all 0.3s ease;
}

.btn2:hover, .btn3:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* ===== ANIMATION ===== */
@keyframes zoomIn {
    0% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

/* ===== RESPONSIVE ===== */
@media(max-width: 1024px) {
    .two-box-container {
        gap: 15px;
    }
}

@media(max-width: 768px) {
    .two-box-container {
        flex-direction: column;
        align-items: center;
    }
    .two-box-container .box:nth-child(2) {
        border-left: none;
        padding-left: 20px;
        margin-top: 20px;
    }
}
.image img{
    width: 100%;    /* full width */
    height:350px;   /* maintain aspect ratio */
    display: block; /* removes inline spacing */
}
/* ICONS */
.footer-icons {
    background-color: #f5f5f5;
    text-align: center;
    padding: 60px 20px 40px 20px;
	background:white;
}

.footer-icons .section-heading {
    color: #353539;
    font-size: 2rem;
    margin-bottom: 40px;
    line-height: 1.2;
}

.icons-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 90px;
	background:white;
}

.icon-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 120px; /* fixed width for alignment */
    text-align: center;
}

.icon-box img {
    width: 60px;   /* icon size */
    height: 60px;
    margin-bottom: 10px;
}

.icon-box p {
    font-size: 0.95rem;
    color: #353539;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .icons-container {
        gap: 25px;
    }
    
    .icon-box {
        width: 100px;
    }

    .icon-box img {
        width: 50px;
        height: 50px;
    }

    .footer-icons .section-heading {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .icons-container {
        gap: 15px;
    }

    .icon-box {
        width: 80px;
    }

    .icon-box img {
        width: 40px;
        height: 40px;
    }

    .footer-icons .section-heading {
        font-size: 1.3rem;
    }
}


/* Footer */
.footer-divider {
    width: 100%;
    height: 300px; /* Adjust to the visible wave height */
    background-image: url('../Divider_Homepage.jpg'); /* Change path if needed */
    background-repeat: no-repeat;
    background-position: top center; /* Focus on top part */
    background-size: 100% auto; /* Keep original proportions */
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1024px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }
    .hero {
        flex-direction: column;
    }
    .hero-left, .hero-right {
        flex: 1 1 100%;
    }
    .hero-left h1, .hero-buttons {
        margin-left: 20px;
    }
    .btn, .btn-outline, .btn2, .btn3 {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .icon-img {
        margin: 40px ;
    }
    .logo-img {
        width: 200px;
        margin: 50px auto;
    }
    .hero-left h1 {
        font-size: 30px;
        text-align: center;
        margin-left:140px;

    }
    .hero-buttons {
		    display: flex;           /* make it a flex container */
    justify-content: center; /* center the buttons horizontally */
    gap: 20px;               /* space between buttons */
    padding: 40px;
    }
	.btn, .btn-outline, .btn2, .btn3 {
        width: 200px;
    }
    .two-box-container {
        flex-direction: column;
    }
}
/* ===== MEDIUM SMALL DEVICES (555px and below) ===== */
@media (max-width: 555px) {

    /* Hero Section */
    .hero-left {
        align-items: center;
        text-align: center;
        padding: 1.5rem;
    }

    .hero-left h1 {
        font-size: 2rem;
        margin-left: 0;
        margin-top: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.8rem;
        justify-content: center;
        margin-left: 0;
        margin-top: 1rem;
        padding: 1rem 0;
    }

    .btn, .btn-outline, .btn2, .btn3 {
        width: 90%;
        font-size: 1rem;
        padding: 0.6rem 1rem;
    }

    /* Hero Right Video */
    .hero-right {
        margin-top: 2rem;
        height: auto;
    }

    .hero-right video {
        width: 100%;
        height: auto;
        margin: 0;
        border-radius: 1rem;
    }

    /* Two Boxes Section */
    .two-box-container {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }

    .box {
        padding: 1.5rem 1rem;
        text-align: center;
    }

    .box-logo {
        width: 50%;
        max-width: 150px;
        margin-bottom: 1rem;
    }

    .box h4 {
        font-size: 1.3rem;
    }

    .box p {
        font-size: 1rem;
    }

    /* Footer Icons */
    .icons-container {
        gap: 1rem;
    }

    .icon-box {
        flex: 1 1 70px;
    }

    .icon-box img {
        width: 50%;
    }

    .icon-box p {
        font-size: 0.85rem;
    }

    /* Logo and Icon Images */
    .logo-img {
        width: 60%;
        max-width: 220px;
        margin: 1rem auto;
    }

    .icon-img {
        width: 20%;
        max-width: 70px;
        margin: 0.5rem auto;
    }
}
/* ===== EXTRA SMALL DEVICES (360px and below) ===== */
@media (max-width: 360px) {
header {
    background: white;
    padding: 5px 10px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    top: 0;
    position: sticky;
    z-index: 1000;
}
    /* Hero Section */
    .hero-left h1 {
        font-size: 1.5rem; /* smaller heading */
        margin-left: 0;
        text-align: center;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem 0;
    }

    .btn, .btn-outline, .btn2, .btn3 {
        width: 100%;  /* full width buttons */
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }

    /* Icons */
    .icon-img {
        width: 18%;
        max-width: 60px;
        margin: 0.5rem auto;
    }

    .logo-img {
        width: 70%;
        max-width: 200px;
        margin: 0.5rem auto 1rem auto;
    }

    /* Two Boxes Section */
    .two-box-container {
        flex-direction: column;
        gap: 1rem;
    }

    .box {
        padding: 1.5rem 1rem;
    }

    .box-logo {
        width: 40%;
        max-width: 120px;
        margin-bottom: 1rem;
    }

    .box h4 {
        font-size: 1.2rem;
    }

    .box p {
        font-size: 0.9rem;
    }

    /* Footer Icons */
    .icon-box {
        flex: 1 1 50px;
    }

    .icon-box img {
        width: 50%;
    }

    .icon-box p {
        font-size: 0.8rem;
    }
}
