html {
    box-sizing: border-box;
}
*, *:before, *:after {
    box-sizing: inherit;
}
body {
    margin: 0;
    font-family: Arial, sans-serif;
    text-align: center;
    background:#fff;
}
/* Arrotonda tutte le immagini */
img {
    border-radius: 12px;
}
.header {
    background-color: #221C35;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    z-index: 1000;
    min-height: 70px;
    padding: 0 5vw;
}

.menu {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.2em;
    background: none;
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background 0.2s;
}
.menu:hover {
    background: rgba(255,255,255,0.1);
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 1 auto;
    margin: 0 auto;
    text-align: center;
}
.logo img {
    height: 70px;
    width: auto;
    max-width: 60vw;
    display: block;
    margin: 0 auto;
    transition: height 0.2s, max-width 0.2s;
}

/* Responsive: Tablet */
@media (max-width: 1024px) {
    .logo img {
        height: 50px;
        max-width: 50vw;
    }
    .menu {
        left: 10px;
    }
}

/* Responsive: Smartphone */
@media (max-width: 700px) {
    .header {
        min-height: 50px;
        padding: 0 2vw;
    }
    .logo img {
        height: 36px;
        max-width: 70vw;
    }
    .menu {
        left: 5px;
        font-size: 1em;
        padding: 4px 10px;
    }
}

/* Smartphone piccoli */
@media (max-width: 480px) {
    .logo img {
        height: 26px;
        max-width: 80vw;
    }
}

/* Reset e base */
html {
    box-sizing: border-box;
}
*, *:before, *:after {
    box-sizing: inherit;
}
body {
    margin: 0;
    font-family: Arial, sans-serif;
    text-align: center;
    background: #fff;
}

/* Header */
.header {
    background-color: #221C35;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center; /* Centra il logo */
    padding: 20px 5vw;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    z-index: 1000;
    min-height: 70px;
}

/* Logo sempre centrato */
.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
}
.logo img {
    height: 70px;
    width: auto;
    max-width: 180px;
    display: block;
    margin: 0 auto;
}

/* Menu */
.menu {
    cursor: pointer;
    font-size: 1.2em;
    background: none;
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background 0.2s;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}
.menu:hover {
    background: rgba(255,255,255,0.1);
}

/* Dropdown */
.dropdown {
    display: none;
    position: fixed;
    background-color: #fff;
    box-shadow: 0px 4px 16px rgba(67, 1, 1, 0.2);
    left: 10px;
    top: 70px;
    width: 180px;
    z-index: 2000;
    border-radius: 8px;
    overflow: hidden;
}
.dropdown a {
    display: block;
    padding: 14px 18px;
    color: #221C35;
    text-decoration: none;
    font-weight: 500;
    text-align: left;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}
.dropdown a:last-child {
    border-bottom: none;
}
.dropdown a:hover {
    background-color: #f4f4f4;
}

/* Content */
.content {
    padding-top: 110px;
    width: 100vw;
    max-width: 100vw;
}

/* Immagini responsive e arrotondate */
img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Slider */
.slider {
    position: relative;
    width: 100vw;
    max-width: 900px;      /* Limite massimo larghezza */
    height: 60vh;
    min-height: 250px;
    max-height: 600px;     /* Limite massimo altezza */
    overflow: hidden;
    background-color: black;
    margin: 0 auto 24px auto;
    border-radius: 12px;
}

.slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    border-radius: 12px;
    max-width: 100%;
    max-height: 100%;
}
.slider img.active {
    opacity: 1;
}

/* Info e contatti */
.info {
    background-color: #221C35;
    color: white;
    padding: 32px 5vw;
    border-radius: 12px;
    margin: 24px auto;
    max-width: 900px;
    box-shadow: 0 2px 12px rgba(67,1,1,0.08);
}
.big-image {
    width: 100%;
    max-width: 900px;
    height: 40vh;
    min-height: 180px;
    object-fit: cover;
    background-color: black;
    display: block;
    margin: 0 auto 32px auto;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(67,1,1,0.08);
}
.contacts {
    padding: 24px 5vw;
    background-color: #f4f4f4;
    border-radius: 12px;
    margin: 0 auto 32px auto;
    max-width: 900px;
    box-shadow: 0 2px 12px rgba(67,1,1,0.08);
}

/* Tablet */
@media (max-width: 1024px) {
    .logo img {
        height: 55px;
    }
    .info {
        padding: 20px 3vw;
        font-size: 16px;
    }
    .big-image {
        height: 28vh;
    }
    .slider {
        height: 32vh;
    }
}

/* Smartphone */
@media (max-width: 700px) {
    .header {
        flex-direction: row;
        align-items: center;
        padding: 10px 2vw;
    }
    .logo img {
        height: 40px;
        max-width: 120px;
    }
    .info {
        padding: 12px 2vw;
        font-size: 14px;
    }
    .slider {
        height: 22vh;
    }
    .big-image {
        height: 18vh;
    }
    .contacts {
        padding: 14px 2vw;
    }
    .menu {
        left: 10px;
    }
}

/* Smartphone piccoli */
@media (max-width: 480px) {
    .header {
        min-height: 50px;
        padding: 6px 1vw;
    }
    .logo img {
        height: 28px;
        max-width: 80px;
    }
    .info, .contacts {
        padding: 8px 1vw;
        font-size: 13px;
    }
    .slider {
        height: 14vh;
    }
    .big-image {
        height: 10vh;
    }
    .menu {
        left: 5px;
        font-size: 1em;
        padding: 4px 10px;
    }
}

.dropdown {
    display: none;
    position: fixed;
    background-color: #fff;
    box-shadow: 0px 4px 16px rgba(67, 1, 1, 0.2);
    left: 10px;
    top: 70px;
    width: 180px;
    z-index: 2000;
    border-radius: 8px;
    overflow: hidden;
}
.dropdown a {
    display: block;
    padding: 14px 18px;
    color: #221C35;
    text-decoration: none;
    font-weight: 500;
    text-align: left;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}
.dropdown a:last-child {
    border-bottom: none;
}
.dropdown a:hover {
    background-color: #f4f4f4;
}
.content {
    padding-top: 110px;
    width: 100vw;
    max-width: 100vw;
}
.slider {
    position: relative;
    width: 100vw;
    height: 60vh;
    min-height: 250px;
    max-height: 600px;
    overflow: hidden;
    background-color: black;
    margin: 0 auto 24px auto;
}
.slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}
.slider img.active {
    opacity: 1;
}
.info {
    background-color: #221C35;
    color: white;
    padding: 32px 5vw;
    border-radius: 12px;
    margin: 24px auto;
    max-width: 900px;
    box-shadow: 0 2px 12px rgba(67,1,1,0.08);
}
.big-image {
    width: 100%;
    max-width: 900px;
    height: 40vh;
    min-height: 180px;
    object-fit: cover;
    background-color: black;
    display: block;
    margin: 0 auto 32px auto;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(67,1,1,0.08);
}
.contacts {
    padding: 24px 5vw;
    background-color: #f4f4f4;
    border-radius: 12px;
    margin: 0 auto 32px auto;
    max-width: 900px;
    box-shadow: 0 2px 12px rgba(67,1,1,0.08);
}
@media (max-width: 1024px) {
    .logo img {
        height: 55px;
    }
    .info {
        padding: 20px 3vw;
        font-size: 16px;
    }
    .big-image {
        height: 28vh;
    }
    .slider {
        height: 32vh;
    }
}
@media (max-width: 700px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 2vw;
    }
    .logo img {
        height: 40px;
    }
    .info {
        padding: 12px 2vw;
        font-size: 14px;
    }
    .slider {
        height: 22vh;
    }
    .big-image {
        height: 18vh;
    }
    .contacts {
        padding: 14px 2vw;
    }
}
@media (max-width: 480px) {
    .header {
        min-height: 50px;
        padding: 6px 1vw;
    }
    .logo img {
        height: 28px;
    }
    .info, .contacts {
        padding: 8px 1vw;
        font-size: 13px;
    }
    .slider {
        height: 14vh;
    }
    .big-image {
        height: 10vh;
    }
}