/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}

body {
    line-height: 1;
}

ol,
ul {
    list-style: none;
}

blockquote,
q {
    quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/** End CSS Reset */

:root {
    --company-color: #E61C1C;
    --bg-black: #000;
    --bg-dark: #1c1c1c;
    --test: #2e2e2e;
    --bg-red: #E61C1C;
    --bg-white: #FFF;
    --bg-light: #f5f5f5;
    --text-light: #f5f5f5;
    --text-secondary: #303030;
    --text-secondary-alt: #d9d9d9;
    --text-dark: #1c1c1c;
    --text-red: #E61C1C;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    line-height: 1.6;
}

body.theme-light {
    background-color: var(--bg-white);
    color: var(--text-dark);
}

body.theme-dark {
    background-color: var(--bg-black);
    color: var(--text-light);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Bebas Neue", sans-serif;
    font-weight: 400;
    line-height: 1.2;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 5rem;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease, padding 0.3s ease;
    z-index: 1000;
}

.theme-light header {
    background-color: var(--bg-white);
}

.theme-dark header {
    background-color: var(--bg-black);
}

header.scrolled {
    padding: 0 1.4rem;
    border-bottom: 1px solid #333;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    font-style: italic;
}

.logo img {
    width: 4rem;
    height: 4rem;
}

.theme-light .logo {
    color: var(--text-dark);
}

.theme-dark .logo {
    color: var(--text-light);
}

h1 {
    font-size: 6rem;
    line-height: 0.9;
}
.theme-light h1 {
    color: var(--text-light);
}
.theme-dark h1 {
    color: var(--text-light);
}

h2 {
    font-size: 3rem;
}
.theme-light h2 {
    color: var(--text-dark);
}
.theme-dark h2 {
    color: var(--text-light);
}

h3 {
    font-size: 1.75rem;
}
.theme-light h3 {
    color: var(--text-dark);
}
.theme-dark h3 {
    color: var(--text-light);
}

h4 {
    font-size: 1.25rem;
}
.theme-light h4 {
    color: var(--text-dark);
}
.theme-dark h4 {
    color: var(--text-light);
}

.theme-light p {
    color: var(--text-secondary);
}
.theme-dark p {
    color: var(--text-secondary-alt);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media screen and (min-width: 1024px) {
    .social-links {
        flex-direction: row;
    }
}

.social-links a {
    display: flex;
    align-items: center;
    gap: .5rem;
    text-decoration: none;
}

.social-links a img {
    width: 2rem;
    height: 2rem;
}

.pizze {
    scroll-margin-top: 5rem;
    padding: 1rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
}
.theme-light .pizze {
    background: var(--bg-white);
}
.theme-dark .pizze {
    background: var(--bg-black);
}

.slider-container {
    margin-top: .5rem;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media screen and (min-width: 1024px) {
    .slider-container {
        width: 100%;
        overflow: auto;
    }
}

.slider-track {
    display: flex;
    transition: transform 0.4s ease-out;
}

@media screen and (min-width: 1024px) {
    .slider-track {
        width: 100%;
        justify-content: space-between;
        gap: 2rem;
    }
}

.slide {
    min-width: 100%;
    padding: .5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .25rem;
}

@media screen and (min-width: 1024px) {
    .slide {
        flex: 1;
        min-width: unset;
        padding: 0;
    }
}

.img-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: #333;
    border-radius: 8px;
}

.slide h3 {
    color: var(--company-color);
}

.protein {
    font-weight: bold;
    font-size: 0.9rem;
}

.desc {
    font-size: 0.85rem;
    text-align: center;
}
.theme-light .desc {
    color: var(--text-secondary);
}
.theme-dark .desc {
    color: var(--text-secondary-alt);
}

.dots {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

@media screen and (min-width: 1024px) {
    .dots {
        display: none;
    }
}

.dot {
    width: 15px;
    height: 15px;
    background: #444;
    border-radius: 50%;
}

.dot.active {
    background: var(--company-color);
}

.red {
    color: var(--text-red)!important;
}

.secondary {
    color: var(--text-secondary)!important;
}

.bg-red {
    background-color: var(--company-color)!important;
}

.hero {
    min-height: 100vh;
    scroll-margin-top: 5rem;
    padding: 5rem 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1rem;
    background-color: var(--bg-black);
    background-image: linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, 0.7)), url('images/hero.jpeg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

@media screen and (min-width: 1024px) {
    .hero {
        background-size: contain;
        background-position: right;
    }
}

.hero-content {
    display: flex;
    flex-direction: column;
}

.hero-content p {
    line-height: 1.2;
}
.theme-light .hero-content p {
    color: var(--text-light);
}
.theme-dark .hero-content p {
    color: var(--text-light);
}

.card-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--text-red);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    padding: 0.5rem;
}

.card-icon svg {
    color: var(--text-red);
}

.concept {
    scroll-margin-top: 5rem;
    padding: 1rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
}
.theme-light .concept {
    background-color: var(--bg-light);
}
.theme-dark .concept {
    background-color: var(--bg-dark);
}

.theme-light .concept h2,
.theme-light .concept h3 {
    color: var(--text-dark);
}

.theme-dark .concept h2,
.theme-dark .concept h3 {
    color: var(--text-light);
}

.concept-content {
    margin-top: .5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    width: 100%;
}

@media screen and (min-width: 1024px) {
    .concept-content {
        display: grid;
        align-items: start;
        grid-template-columns: 1fr auto 1fr auto 1fr;
    }
}

.concept-content-separator {
    width: 90%;
    height: 2px;
    background-color: var(--text-red);
}

@media screen and (min-width: 1024px) {
    .concept-content-separator {
        width: 2px;
        height: 100%;
    }
}

.concept-card {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    gap: 2rem;
    align-items: center;
}

@media screen and (min-width: 1024px) {
    .concept-card {
        flex-direction: column;
        justify-content: center;
        gap: .5rem;
    }
}

@media screen and (min-width: 1024px) {
    .concept-card div {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

.brand {
    scroll-margin-top: 5rem;
    padding: 1rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
}
.theme-light .brand {
    background-color: var(--bg-light);
}
.theme-dark .brand {
    background-color: var(--bg-dark);
}

.theme-light .brand h2,
.theme-light .brand h3 {
    color: var(--text-dark);
}
.theme-dark .brand h2,
.theme-dark .brand h3 {
    color: var(--text-light);
}

.brand-content {
    margin-top: .5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
}

.brand-content div.img-placeholder:nth-child(1) {
    display: none;
}

@media screen and (min-width: 1024px) {
    .brand-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 2rem;
        width: 100%;
    }

    .brand-content div.img-placeholder:nth-child(1) {
        display: block;
    }
}

.gallery {
    scroll-margin-top: 5rem;
    padding: 1rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
}
.theme-light .gallery {
    background-color: var(--bg-white);
}
.theme-dark .gallery {
    background-color: var(--bg-black);
}

.gallery-content {
    width: 100%;
    margin-top: .5rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .5rem;
}

@media screen and (min-width: 1024px) {
    .gallery-content {
        grid-template-columns: repeat(4, 1fr);
    }
}

.info {
    scroll-margin-top: 5rem;
    padding: 1rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 1rem;
}
.theme-light .info {
    background-color: var(--bg-light);
}
.theme-dark .info {
    background-color: var(--bg-dark);
}

.info-content {
    width: 100%;
    margin-top: .5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
}

@media screen and (min-width: 1024px) {
    .info-content {
        display: grid;
        grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
        align-items: center;
    }
}

.info-content-separator {
    width: 90%;
    height: 2px;
    background-color: var(--text-red);
}

@media screen and (min-width: 1024px) {
    .info-content-separator {
        width: 2px;
        height: 100%;
    }
}

.info-card {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 2rem;
}

@media screen and (min-width: 1024px) {
    .info-card {
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: .5rem;
        height: 100%;
    }
}

.info-card svg {
    color: var(--text-red);
}

@media screen and (min-width: 1024px) {
    .info-card-content {
        flex: unset;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

.info-card-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--text-red);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    padding: 0.5rem;
}

footer {
    padding: 1rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
}
.theme-light footer {
    background-color: var(--bg-white);
}
.theme-dark footer {
    background-color: var(--bg-black);
}

@media screen and (min-width: 1024px) {
    footer {
        flex-direction: row;
        align-items: flex-end;
    }
}

.copyright {
    font-size: .8rem;
    text-align: center;
}
.theme-light .copyright {
    color: var(--text-dark);
}
.theme-dark .copyright {
    color: var(--text-light);
}

.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: right 0.4s ease-in-out;
    z-index: 9;
}

@media screen and (min-width: 1024px) {
    .nav-menu {
        display: none;
    }
}

.nav-menu.active {
    right: 0;
}

.nav-menu ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    list-style: none;
    text-align: center;
}

.nav-menu a {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
}
.theme-light .nav-menu a {
    color: var(--text-light);
}
.theme-dark .nav-menu a {
    color: var(--text-light);
}

.nav-menu .switch-lang {
    position: absolute;
    top: 2.5rem;
    left: 2rem;
    transform: translate(0, -50%);
    display: flex;
}

.nav-menu-desktop {
    display: none;
}

@media screen and (min-width: 1024px) {
    .nav-menu-desktop {
        display: block;
    }

    .nav-menu-desktop ul {
        display: grid;
        align-items: center;
        grid-template-columns: auto auto auto;
        gap: .5rem;
        list-style: none;
    }

    .nav-menu-desktop ul li a.text-link {
        font-size: 1.5rem;
        font-weight: bold;
        text-decoration: none;
        text-transform: uppercase;
        transition: color .3s ease-in-out;
    }
    .theme-light .nav-menu-desktop ul li a.text-link {
        color: var(--text-dark);
    }
    .theme-dark .nav-menu-desktop ul li a.text-link {
        color: var(--text-light);
    }

    .nav-menu-desktop ul li a.image-link {
        display: flex;
        text-decoration: none;
    }

    .nav-menu-desktop ul li a:hover {
        color: var(--company-color);
    }
}

.menu-separator {
    width: 90%;
    height: 3px;
    border-radius: 5px;
    background-color: var(--company-color);
}

.menu-desktop-separator {
    width: 3px;
    height: 90%;
    border-radius: 5px;
}


/* Animazione Hamburger Icon */
.menu-icon {
    cursor: pointer;
    z-index: 10;
    width: 30px;
}

@media screen and (min-width: 1024px) {
    .menu-icon {
        display: none;
    }
}

.menu-icon span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--text-red);
    margin: 5px 0;
    transition: 0.3s;
}

.menu-icon.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.menu-icon.open span:nth-child(2) {
    opacity: 0;
}

.menu-icon.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -7px);
}

.back-to-top {
    position: fixed;
    bottom: 55px;
    right: 20px;
    width: 45px;
    height: 45px;
    background-color: var(--company-color);
    color: #FFF;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 100;
    /* Effetto transizione */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease-in-out;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:active {
    transform: scale(0.9);
}

.ext-link {
    text-decoration: none;
    position: relative;
    display: inline-block;
    transition: color 0.3s ease-in-out;
}
.theme-light .ext-link {
    color: var(--text-dark);
}
.theme-dark .ext-link {
    color: var(--text-light);
}

.ext-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--company-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease-in-out;
}

.ext-link:hover {
    color: var(--company-color);
}

.ext-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.separator {
    width: 4rem;
    height: 3px;
    border-radius: 5px;
    background-color: var(--company-color);
}

.btn {
    text-decoration: none;
    padding: .5rem 2rem;
    border-radius: 10px;
    background-color: var(--bg-red);
    transition: box-shadow .2s ease-in-out;
}
.theme-light .btn {
    color: var(--text-light);
}
.theme-dark .btn {
    color: var(--text-light);
}

.btn:hover {
    box-shadow: 0 0 5px var(--bg-red), 0 0 10px var(--bg-red);
}

.theme-light .btn h4 {
    color: var(--text-light);
}
.theme-dark .btn h4 {
    color: var(--text-light);
}

.btn-social {
    background-color: var(--bg-red);
    padding: .5rem 2rem;
    border-radius: 10px;
    border: 2px solid var(--text-red);
    transition: box-shadow .2s ease-in-out;
}
.theme-light .btn-social {
    color: var(--text-light);
}
.theme-dark .btn-social {
    color: var(--text-light);
}

.btn-social:hover {
    box-shadow: 0 0 5px var(--bg-red), 0 0 10px var(--bg-red);
}

.theme-light .btn-social h4 {
    color: var(--text-light);
}
.theme-dark .btn-social h4 {
    color: var(--text-light);
}

.btn-social-alt {
    background-color: transparent;
}

.btn-icon {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background: unset;
    padding: 0;
    margin: 0;
    border: none;
    outline: none;
}
.theme-light .btn-icon {
    color: #001275;
}
.theme-dark .btn-icon {
    color: #f2be00;
}

.section-separator {
    width: 100%;
    display: none;
    height: 1px;
    background-color: #434343;
}

.nav-menu .change-theme {
    position: absolute;
    top: 2.5rem;
    left: 4rem;
    transform: translate(0, -50%);
}

.d-none {
    display: none;
}
