
*,*::before,*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --green: #C3CC49;
    --white: #FFFFFF;
    --blue: #234B83;
    --font: "Roboto", "Helvetica Neue", "san-serif";
    --hero-padding-bottom: 10vw;
    font-size: 1.2rem;
}

html {
    scroll-behavior: smooth;
}

img {
    display: block;
    max-width: 100%;
}

body {
    margin: 0;
    font-family: "Roboto", "Helvetica Neue", sans-serif;
}

/*STORY*/
.story-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    position: relative;
    font-family: var(--font);
    padding-inline: 20px;
}

.story-hero {
    color: var(--white);
    padding-bottom: var(--hero-padding-bottom);
    position: relative;
    padding-top: 20vh;
}

.story-content {
    color: var(--blue);
    padding-bottom: 200px;
    position: relative;
}

.story-hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    left: 0;
}

.story-hero-background {
    position: absolute;
    z-index: -2;
    width: 100vw;
    height: 100%;
    overflow: hidden;
}

.story-grid h1, .story-grid h2 {
    font-size: 13vw;
}

.story-grid h1 {
    grid-column: 1 / span 4;
    text-align: right;
    margin-right: 4vw;
    margin-top: 5vh;
}

.story-grid .p1 {
    grid-column: 4 / span 2; 
}

.story-grid .p2 {
    grid-column: 2 / span 2;
    text-align: right;
}

.story-grid h2 {
    grid-column: 2 / span 4;
    position: relative;
    z-index: 1;
}

.story-hero-hershel {
    transform: translate(-40px);
    margin-bottom: -4vw;
    z-index: -1;
}

.story-anna {
    grid-column: 1 / span 2;
    margin-top: calc(var(--hero-padding-bottom) * -1.5);
    position: relative;
}

.story-grid .p3 {
    grid-column: 3 / span 2;
    margin-top: 30px;
    margin-bottom: 65%;
}

.story-grid .p4 {
    grid-column: 1 / span 2;
    text-align: right;
    margin-bottom: 40%;
    margin-top: -60%;
}

.story-conchiglie {
    grid-column: 3 / span 3;
    margin-top: -35%;
}

.story-grid .p5 {
    grid-column: 3 / span 2; 
    margin-top: -10%;
}

.story-grid .p6 {
    grid-column: 1 / span 2;
    text-align: right;
    margin-top: -130%;
}

.story-grid h3 {
    font-size: 40px; 
}

.story-pianta {
    grid-column: 1 / span 2;
    margin-top: -35%;
}

.story-copertina {
    grid-column: 3 / span 2;
    margin-top: -20px;
}

/*COLLEZIONE BOTANICA*/
.header-slider {
    position: absolute;
    top: 0px;
    left: 0vw;
    z-index: 100;
    width: 70vw;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.6vw;
    margin-left: 2vw;
}

.header-slider img {
    width: 2.6vw;
    height: 2.6vw;
}

.header-slider a {
    position: relative;
    text-decoration: none;
    color: white;
    font-size: 3.17vw;
    white-space: nowrap;
}

.header-slider a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: white;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.header-slider a:hover::after {
    transform: scaleX(1);
}

.slider-pagine-nav { list-style-type: none; position: relative; }

.slider-pagine {
    display: flex;
    align-items: center;
    margin-left: auto;
    justify-content: right;
}

.slider-pagine-slides-container {
    position: relative; 
}

.slider-pagine-buttons {
    position: absolute;
    z-index: 1;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
    margin: 3vh;
    filter: drop-shadow(-2px 5px 4px rgba(0,0,0,0.25));
}

.slider-pagine-nav button:hover {
    color: var(--green);
    text-decoration: underline;
}

.slider-pagine-buttons button { pointer-events: all; }

.copertina {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    position: absolute;
    margin-right: 10vw;
    transform: translateX(-20vw);
}

.collezione-botanica {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    margin: 0;
    font-family: "Roboto", "Helvetica Neue", sans-serif;
  
}

button {
    border: none;
    outline: none;
    background: none;
    padding: 0;
}

.slider-pagine-nav {
    list-style-type: none;
    margin-right: 2vw;
    line-height: 2;
}

.slider-pagine-nav li button {
    color: var(--white);
    font-family: var(--font);
    font-size: 36px;
}

.slider-pagine-slides {
    width: 27vw;
    height: 100vh;
    overflow: auto;
    scroll-snap-type: y mandatory;
}

.slider-pagine-slides li { scroll-snap-align: center; }

.slider-pagine-slides img {
    height: 70vh;
    width: 70vw;
    object-fit: cover;
    object-position: center;
}

.modal {
    position: relative;
    width: 50%;
    height: 50%;
    filter: drop-shadow(-2px 7px 9px rgba(0,0,0,1));
    justify-content: center;
    padding: 5vw;
    margin-left: 7vw;
}

.modal img { max-height: 80vh; }

#close-btn {
    position: relative;
    float: right;
    margin-left: 2vw;
    width: 70vw;
    font-size: 5vw;
    color: white;
    cursor: pointer;
}

/*HEADER*/
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: absolute;
    width: 100vw;
    z-index: 1;
    padding: 26px 2.6vw;
    gap: 2vw;
}

.menu-and-logo {
    display: flex;
    gap: 2.6vw;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    position: relative;
}

.logo-link img {
    width: 20vw;
    height: 4.36vw;
}

.logo-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #C3CC49;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.logo-link:hover::after { transform: scaleX(1); }

#main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.6vw;
}

#main-nav img {
    width: 2.6vw;
    height: 2.6vw;
}

#main-nav a {
    position: relative;
    text-decoration: none;
    color: white;
    font-size: 3.17vw;
    white-space: nowrap;
}

#main-nav a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #C3CC49;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

#main-nav a:hover::after { transform: scaleX(1); }

#freccia {
    margin-left: -2vw;
    width: 3.9vw;
    height: 3.9vw;
}

/*FOOTER*/
#footer {
    width: 100%;
    background-image: linear-gradient(to bottom, #234b8300 0%, #234B83 70%);
    position: absolute;
    bottom: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5.2vw;
    padding: 25px 0;
    color: white;
    text-align: center;
    left: 0px;
    padding: 4vw;
}

.footer-link {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 2.6vw;
}

#footer::before {
    content: "";
    width: 80%;
    height: 2px;
    background-color: white;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

#footer img {
    width: 2.6vw;
    height: 2.6vw;
}
    

#footer .footer-logo {
    width: 20vw;
    height: 4.36vw;
 }   

#footer a {
   
    color: white;
    text-decoration: none;
}
#footer p {
  margin: 0;
}

#footer a {
  position: relative;
  color: white;
  text-decoration: none;
}
#footer a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #C3CC49;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

#footer a:hover::after { transform: scaleX(1); }

/* menu popup */

#side-menu {
    position: fixed;
    top: -100vh;
    left: 0;
    width: 15vw;
    height: 100vh;
    background: white;
    z-index: 9999;
    transition: top 0.45s ease-in-out;
    display: flex;
    align-items: center;
    text-align: center;
}

#side-menu.active { 
    top: 0; 
}

.side-menu-inner {
    display: flex;
    flex-direction: column;
    gap: 4vw;
    padding-left: 2.5vw;
    text-align: center;
    align-items: center;
}

.side-menu-inner a {
    display: flex;
    align-items: center;
    gap: 1vw;
    text-decoration: none;
    color: #1E3A72;
    font-size: 2.3vw;
    position: relative;
}

.side-menu-inner a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #C3CC49;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.side-menu-inner a:hover::after { 
    transform: scaleX(1); 
}

.close-icon {
    width: 4vw;
    height: 4vw;
    margin-bottom: 1.5vw;
}

/*ABOUT*/
.header-about {
    position: absolute;
    top: 0px;
    left: 0vw;
    z-index: 100;
    width: 70vw;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.6vw;
    margin-left: 2vw;
}

.header-about img {
    width: 2.6vw;
    height: 2.6vw;
}

.header-about a {
    position: relative;
    text-decoration: none;
    color: white;
    font-size: 3.17vw;
    white-space: nowrap;
}

.header-about a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: white;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.header-about a:hover::after {
    transform: scaleX(1); 
}

ul { list-style-type: none; }

a {
    text-decoration: none;
    color: var(--white);
    font-family: var(--font);
}

.fonti li { text-decoration: underline; }

li a:hover { color: var(--green); }

.about {
    position: relative;
    background-image: url('sfondo.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    padding: 4vw;
}

.about-description { margin-bottom: 7vh; }
/* Colonna sinistra: il testo */
.about-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 50%;
}

.about-left {
    margin-top: -35vh;
    margin-right: 10vh; }

.about-left img {
    width: 400px;
    height: auto;
}

@media (max-width: 834px) {
    /*STORY*/
    .story-grid {
            grid-template-columns: repeat(3, minmax(0, 1fr));
    }

        .story-grid h1 {
        writing-mode: vertical-rl;
        grid-column: 1 / span 1;
        transform: rotate(180deg);
        place-content: center;
    }

    .story-grid .p1 {
        grid-column: 2 / span 2;
    }

    .story-grid .p2 {
        grid-column: 1 / span 2;
        text-align: right;
    }

    .story-grid h2 {
        writing-mode: vertical-rl;
        grid-column: 3 / span 1;
        place-content: center;
    }

    .story-hero-hershel {
        grid-column: 2 / span 2;
    }

    .story-anna {
        grid-column: 1 / span 2;
        margin-top: calc(var(--hero-padding-bottom) * -5.5);
    }

    .story-grid .p3 {
        grid-column: 1 / span 3;
        margin: 0;
    }

    .story-grid .p4 {
        grid-column: 1 / span 3;
        text-align: left;
        margin: 0;
    }

    .story-conchiglie {
        grid-column: 1 / span 3;
        margin: 0;
    }

    .story-grid .p5 {
        grid-column: 1 / span 3;
        margin: 0;
    }

    .story-grid .p6 {
        grid-column: 1 / span 3;
        text-align: left;
        margin: 0;
    }

    .story-grid h3 {
        grid-column: 1 / span 3;
        margin: 0;
    }

    .story-pianta {
        grid-column: 1 / span 3;
        margin: 0;
    }

    .story-copertina {
        grid-column: 1 / span 3;
        margin: 0;
    }

    /*COLLEZIONE BOTANICA*/
    .sstella1, .sstory-nav, .sabout-nav, .sstella4 {
        display: none;
    }

    .header-slider {
        width: 100vw;
        margin-left: 0px;
    }

        /* Layout principale collezione botanica */
    .collezione-botanica {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        position: relative;
        background: #234B83;
    }
 
    
    /* Copertina grande al centro */
    .copertina {
        position: relative;
        width: 100%;
        height: auto;
        max-height: 50vh;
        object-fit: contain;
        transform: none;
        margin: 0;
        order: 2;
        display: block;
    }
 
    /* Container dello slider */
    .slider-pagine {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin: 0;
        padding: 0;
        order: 3;
        flex: 1;
        position: relative;
    }
 
    /* Navigazione Parte 1, 2, 3  */
    .slider-pagine-nav {
        display: flex !important;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 10vw;
        margin: 0;
        padding: 2vh 0;
        list-style: none;
    }
 
    .slider-pagine-nav li {
        display: block;
    }
 
    .slider-pagine-nav li button {
        font-size: 5vw;
        color: white;
        background: none;
        border: none;
        cursor: pointer;
    }
 
    /* Container slides con frecce */
    .slider-pagine-slides-container {
        position: relative;
        width: 100%;
        flex: 1;
        display: flex;
        align-items: center;
        min-height: 35vh;
    }
 
    /* Slider orizzontale */
    .slider-pagine-slides {
        width: 100%;
        height: 35vh;
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        padding: 0;
        margin: 0;
    }
 
    .slider-pagine-slides::-webkit-scrollbar {
        display: none;
    }
 
    .slider-pagine-slides > li {
        display: flex;
        flex-direction: row;
        list-style: none;
        flex-shrink: 0;
    }
 
    .slider-pagine-slides img {
        width: 75vw;
        height: 35vh;
        object-fit: contain;
        flex-shrink: 0;
        scroll-snap-align: center;
        margin: 0 2.5vw;
    }
 
    /* Frecce ai lati  */
    .slider-pagine-buttons {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        left: 0;
        right: 0;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        pointer-events: none;
        padding: 0 4vw;
        z-index: 100;
        margin: 0;
        filter: none;
    }
 
    .slider-pagine-buttons button {
        pointer-events: all;
        width: auto;
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        cursor: pointer;
        padding: 3vw;
    }
 
    .slider-pagine-buttons button img {
        width: 12vw;
        height: 12vw;
        margin: 0;
        filter: drop-shadow(-2px 5px 4px rgba(0,0,0,0.25));
    }
 
    /* Freccia sinistra - ruota verso sinistra */
    #slider-pagine-prev img {
        content: url('frecciaalto.svg');
        transform: rotate(-90deg);
    }
 
    /* Freccia destra - ruota verso destra */
    #slider-pagine-next img {
        transform: rotate(-90deg);
    }
 
    /* Modal */
    #modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.9);
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 9999;
        padding: 0;
        margin: 0;
        filter: none;
    }
 
    #modal-image {
        max-width: 90vw;
        max-height: 70vh;
        object-fit: contain;
    }
 
    #close-btn {
        position: absolute;
        top: 5vw;
        right: 5vw;
        font-size: 12vw;
        width: auto;
        margin: 0;
        color: white;
        cursor: pointer;
    }

    /*HEADER*/
    #main-nav .collezione-nav, .stella3, .about-nav, .stella4 {
        display: none;
    }

    .header-story {
        display: flex;
        flex-direction: column-reverse;
    }

    /*ABOUT*/
    .astella1, .astory-nav, .astella2, .acollezione-nav {
        display: none;
    }

    .header-about {
        width: 100vw;
        margin-left: 0px;
    }

    .about {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 8vw 4vw;
    }
    
    .about-left {
        margin-top: 0;
        margin-right: 0;
        order: 1;
    }
    
    .about-left img {
        width: 60vw;
        max-width: 300px;
    }
    
    .about-right {
        max-width: 100%;
        order: 2;
        align-items: flex-start;
        margin-top: 4vh;
        text-align: left;
    }
    
    .header-about {
        width: 100vw;
        margin-left: 0;
        justify-content: center;
    }

    /*Footer*/
    #footer {
        display: flex;
        flex-direction: column;
    }

    .footer-link {
        display: flex;
        flex-direction: row;
    }

    .fgoup, #freccia, .fstella1 {
        display: none;
    }
}



/* FOOTER 
*/ 
@media (max-width: 834px) {

    #footer {
        display: flex;
        flex-direction: column;
        gap: 2vh;
        padding: 4vw 4vw 6vw 4vw;
    }

    #footer .footer-logo {
        width: 50vw;
        height: auto;
        order: 1;
    }

    .footer-link {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 3vw;
        order: 2;
    }

    #footer img:not(.footer-logo) {
        width: 4vw;
        height: 4vw;
    }

    .fgoup, #footer #freccia, .fstella1 {
        display: none;
    }
}