/* ======================================
   RESET & BASE STYLES
====================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%; /* 10px */
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    color: #2B2B2B;
    background-color: #F7F5F0;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #34785A;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #D9B166;
}

ul, ol {
    list-style: none;
}

.container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ======================================
   TYPOGRAPHY
====================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'DM Sans', sans-serif;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: #2B2B2B;
}

h1 {
    font-size: 3.2rem;
}

h2 {
    font-size: 2.8rem;
    position: relative;
}

h3 {
    font-size: 2.4rem;
}

h4 {
    font-size: 2rem;
}

h5 {
    font-size: 1.8rem;
}

h6 {
    font-size: 1.6rem;
}

p {
    margin-bottom: 1.5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    display: inline-block;
    margin-bottom: 1rem;
}

.separator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem auto;
}

.separator span {
    display: block;
    height: 3px;
    width: 60px;
    background: linear-gradient(90deg, #34785A, #D9B166);
    border-radius: 3px;
}

.subtitle {
    font-size: 2rem;
    color: #5A5A5A;
    font-weight: 400;
    margin-bottom: 2.5rem;
}

/* ======================================
   BUTTONS
====================================== */
.ui.button {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.6rem;
    font-weight: 500;
    padding: 1.2rem 2.4rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin: 0.5rem 0;
}

.ui.button.primary {
    background-color: #34785A;
    color: white;
    border: 2px solid #34785A;
}

.ui.button.primary:hover {
    background-color: #2c6a4e;
    border-color: #2c6a4e;
}

.ui.button.secondary {
    background-color: transparent;
    color: #34785A;
    border: 2px solid #34785A;
}

.ui.button.secondary:hover {
    background-color: rgba(52, 120, 90, 0.1);
}

.ui.button.tertiary {
    background-color: transparent;
    color: #5A5A5A;
    border: 2px solid #E8E2D5;
}

.ui.button.tertiary:hover {
    background-color: #E8E2D5;
    color: #2B2B2B;
}

.cta-button {
    display: inline-block;
    min-width: 180px;
    text-align: center;
}

/* ======================================
   HEADER & NAVIGATION
====================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #F7F5F0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1.5rem 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: block;
    max-width: 180px;
}

.logo img {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #34785A;
    margin: 5px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-list {
    display: flex;
    align-items: center;
}

.nav-list li {
    margin-left: 3rem;
    position: relative;
}

.nav-list li a {
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.nav-list li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #D9B166;
    transition: width 0.3s ease;
}

.nav-list li a:hover::after,
.nav-list li.active a::after {
    width: 100%;
}

.nav-list li.active a {
    color: #34785A;
    font-weight: 700;
}

/* ======================================
   HERO SECTION
====================================== */
.hero-section {
    position: relative;
    padding: 8rem 0;
    background: linear-gradient(135deg, #E8E2D5 0%, #F7F5F0 100%);
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text {
    flex: 1;
    padding-right: 4rem;
}

.hero-text h1 {
    font-size: 4.2rem;
    margin-bottom: 2rem;
    color: #2B2B2B;
}

.hero-image {
    flex: 1;
    transform: perspective(1000px) rotateY(-5deg);
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><circle cx="2" cy="2" r="1" fill="%2334785A" opacity="0.2"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

/* ======================================
   PAGE BANNER
====================================== */
.page-banner {
    background: linear-gradient(135deg, #34785A 0%, #2c6a4e 100%);
    color: white;
    padding: 6rem 0;
    text-align: center;
}

.page-banner h1 {
    color: white;
    margin-bottom: 1rem;
}

.page-banner p {
    font-size: 1.8rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

.small-banner {
    padding: 4rem 0;
}

/* ======================================
   INTRO SECTION
====================================== */
.intro-section {
    padding: 8rem 0;
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* ======================================
   BENEFITS SECTION
====================================== */
.benefits-section {
    padding: 8rem 0;
    background-color: #E8E2D5;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.benefit-card {
    background-color: #F7F5F0;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 70px;
    height: 70px;
    margin: 0 auto 2rem;
    background-color: #9AC2A5;
    color: #34785A;
    border-radius: 50%;
    font-size: 2.8rem;
}

.benefit-card h3 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.benefit-card p {
    text-align: center;
    margin-bottom: 0;
}

/* ======================================
   PORTFOLIO COMPONENTS
====================================== */
.portfolio-components {
    padding: 8rem 0;
}

.component-item {
    display: flex;
    align-items: center;
    margin-bottom: 6rem;
}

.component-item:last-child {
    margin-bottom: 0;
}

.component-item.reversed {
    flex-direction: row-reverse;
}

.component-image {
    flex: 1;
    max-width: 500px;
    margin-right: 4rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.component-item.reversed .component-image {
    margin-right: 0;
    margin-left: 4rem;
}

.component-content {
    flex: 1;
}

.component-content h3 {
    margin-bottom: 2rem;
    color: #34785A;
}

.read-more {
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    margin-top: 1rem;
}

.read-more i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(5px);
}

/* ======================================
   INVESTMENT STRATEGIES
====================================== */
.investment-strategies {
    padding: 8rem 0;
    background-color: #F7F5F0;
}

.strategies-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.strategy-image {
    flex: 1;
    min-width: 300px;
    margin-right: 4rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.strategy-text {
    flex: 1;
    min-width: 300px;
}

.strategy-item {
    margin-bottom: 2rem;
    padding-left: 3rem;
    position: relative;
}

.strategy-item h4 {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.strategy-item h4 i {
    color: #D9B166;
    margin-right: 1rem;
}

/* ======================================
   RECENT ARTICLES
====================================== */
.recent-articles {
    padding: 8rem 0;
    background-color: #E8E2D5;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.article-card {
    background-color: #F7F5F0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.article-image {
    height: 200px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: 2rem;
}

.article-content h3 {
    margin-bottom: 1rem;
    font-size: 2rem;
}

.article-meta {
    display: flex;
    align-items: center;
    margin-top: 1.5rem;
    color: #5A5A5A;
    font-size: 1.4rem;
}

.article-date {
    display: flex;
    align-items: center;
}

.article-date::before {
    content: '\f073';
    font-family: 'Font Awesome 5 Free';
    margin-right: 0.5rem;
}

/* ======================================
   CONSULTATION SECTION
====================================== */
.consultation-section {
    padding: 8rem 0;
    background-color: #F7F5F0;
}

.consultation-wrapper {
    display: flex;
    flex-wrap: wrap;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.consultation-content {
    flex: 1;
    min-width: 300px;
    padding: 4rem;
    background: linear-gradient(135deg, #34785A 0%, #2c6a4e 100%);
    color: white;
}

.consultation-content h2 {
    color: white;
    margin-bottom: 2rem;
}

.consultation-form {
    flex: 1;
    min-width: 300px;
    padding: 4rem;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid #E8E2D5;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 1.6rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #34785A;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
}

.checkbox-group input {
    width: auto;
    margin-right: 1rem;
    margin-top: 0.3rem;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: normal;
    line-height: 1.4;
}

.submit-button {
    width: 100%;
    margin-top: 1rem;
}

.disclaimer {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 2rem;
}

/* ======================================
   FOOTER
====================================== */
.site-footer {
    background-color: #2B2B2B;
    color: #E8E2D5;
    padding: 6rem 0 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-about {
    max-width: 400px;
}

.footer-logo {
    filter: brightness(0) invert(1);
    max-width: 150px;
    margin-bottom: 1.5rem;
}

.footer-contact {
    margin-top: 2rem;
}

.footer-contact p {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-contact p i {
    margin-right: 1rem;
    color: #D9B166;
}

.footer-links h3,
.footer-legal h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.footer-links h3::after,
.footer-legal h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #D9B166;
}

.footer-links ul li,
.footer-legal ul li {
    margin-bottom: 1rem;
}

.footer-links ul li a,
.footer-legal ul li a {
    color: #E8E2D5;
    transition: color 0.3s ease, padding 0.3s ease;
}

.footer-links ul li a:hover,
.footer-legal ul li a:hover {
    color: #D9B166;
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.footer-bottom .disclaimer {
    color: rgba(255, 255, 255, 0.6);
}

/* ======================================
   COOKIE CONSENT
====================================== */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 2rem;
    transition: bottom 0.5s ease;
}

.cookie-banner.visible {
    bottom: 0;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-content h3 {
    margin-bottom: 1rem;
}

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.cookie-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1100;
    overflow-y: auto;
}

.cookie-modal-content {
    position: relative;
    background-color: white;
    max-width: 600px;
    margin: 50px auto;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 2.4rem;
    cursor: pointer;
    color: #5A5A5A;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #2B2B2B;
}

.cookie-options {
    margin: 3rem 0;
}

.cookie-option {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #E8E2D5;
}

.cookie-option:last-child {
    border-bottom: none;
}

.option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.option-header h3 {
    margin-bottom: 0;
    font-size: 1.8rem;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #E8E2D5;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: #34785A;
}

input:focus + .slider {
    box-shadow: 0 0 1px #34785A;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.cookie-modal-buttons {
    display: flex;
    justify-content: space-between;
}

/* ======================================
   FAQ PAGE
====================================== */
.faq-section {
    padding: 6rem 0;
}

.faq-wrapper {
    display: flex;
    flex-wrap: wrap;
}

.faq-categories {
    flex: 0 0 250px;
    margin-right: 4rem;
    margin-bottom: 3rem;
}

.faq-categories ul {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: sticky;
    top: 100px;
}

.faq-categories ul li {
    border-bottom: 1px solid #E8E2D5;
}

.faq-categories ul li:last-child {
    border-bottom: none;
}

.faq-categories ul li a {
    display: block;
    padding: 1.5rem 2rem;
    color: #5A5A5A;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.faq-categories ul li a:hover,
.faq-categories ul li a.active {
    background-color: #34785A;
    color: white;
}

.faq-content {
    flex: 1;
    min-width: 300px;
}

.faq-group {
    display: none;
}

.faq-group.active {
    display: block;
}

.faq-group h2 {
    margin-bottom: 3rem;
    color: #34785A;
}

.faq-item {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: rgba(52, 120, 90, 0.05);
}

.faq-question h3 {
    margin-bottom: 0;
    font-size: 1.8rem;
    flex: 1;
    padding-right: 2rem;
}

.toggle-icon {
    font-size: 1.6rem;
    color: #34785A;
    transition: transform 0.3s ease;
}

.faq-item.active .toggle-icon {
    transform: rotate(45deg);
}

.faq-answer {
    display: none;
    padding: 0 2rem 2rem;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-answer ul {
    list-style-type: disc;
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

.faq-answer ul li {
    margin-bottom: 0.5rem;
}

/* ======================================
   FONDAMENTI INVESTIMENTO PAGE
====================================== */
.content-index {
    padding: 4rem 0;
    background-color: #E8E2D5;
}

.index-wrapper {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.index-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.index-list li a {
    display: block;
    padding: 1rem 1.5rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.index-list li a:hover {
    background-color: #34785A;
    color: white;
    transform: translateY(-3px);
}

.content-section {
    padding: 6rem 0;
    border-bottom: 1px solid #E8E2D5;
}

.content-section:last-child {
    border-bottom: none;
}

.content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.principles-grid,
.factors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin: 3rem 0;
}

.principle-item,
.factor-item {
    background-color: white;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.principle-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background-color: #9AC2A5;
    color: #34785A;
    border-radius: 50%;
    font-size: 2.4rem;
}

.principle-item h3,
.factor-item h4 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #34785A;
}

.allocation-content,
.stocks-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4rem;
    margin: 3rem 0;
}

.allocation-text,
.content-column {
    flex: 1;
    min-width: 300px;
}

.allocation-image,
.stocks-image,
.construction-image,
.monitoring-image {
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.allocation-list,
.diversification-list,
.features-list,
.metrics-list,
.considerations-list,
.monitoring-aspects,
.rebalancing-benefits,
.adapting-situations,
.tools-list {
    margin-bottom: 2rem;
}

.allocation-list li,
.diversification-list li,
.features-list li,
.metrics-list li,
.considerations-list li,
.monitoring-aspects li,
.rebalancing-benefits li,
.tools-list li {
    margin-bottom: 1rem;
    padding-left: 2.5rem;
    position: relative;
}

.allocation-list li::before,
.diversification-list li::before,
.features-list li::before,
.metrics-list li::before,
.considerations-list li::before,
.monitoring-aspects li::before,
.rebalancing-benefits li::before,
.tools-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0.2rem;
    color: #34785A;
}

.sectors-grid,
.strategies-grid,
.models-grid,
.approaches-grid,
.mistakes-grid,
.considerations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin: 2.5rem 0;
}

.sector-item,
.strategy-item,
.model-item,
.approach-item,
.mistake-item,
.consideration-item {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.sector-item h4,
.strategy-item h4,
.strategy-item h5,
.model-item h4,
.approach-item h4,
.mistake-item h4,
.consideration-item h4 {
    color: #34785A;
    margin-bottom: 1rem;
}

.allocation-chart {
    display: flex;
    height: 30px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.chart-segment {
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: 500;
    font-size: 1.4rem;
}

.conservative-chart .chart-segment:nth-child(1) {
    background-color: #8C3A3A;
}
.conservative-chart .chart-segment:nth-child(2) {
    background-color: #34785A;
}
.conservative-chart .chart-segment:nth-child(3) {
    background-color: #D9B166;
}
.conservative-chart .chart-segment:nth-child(4) {
    background-color: #9AC2A5;
}

.moderate-chart .chart-segment:nth-child(1) {
    background-color: #8C3A3A;
}
.moderate-chart .chart-segment:nth-child(2) {
    background-color: #34785A;
}
.moderate-chart .chart-segment:nth-child(3) {
    background-color: #D9B166;
}
.moderate-chart .chart-segment:nth-child(4) {
    background-color: #9AC2A5;
}

.dynamic-chart .chart-segment:nth-child(1) {
    background-color: #8C3A3A;
}
.dynamic-chart .chart-segment:nth-child(2) {
    background-color: #34785A;
}
.dynamic-chart .chart-segment:nth-child(3) {
    background-color: #D9B166;
}
.dynamic-chart .chart-segment:nth-child(4) {
    background-color: #9AC2A5;
}

.allocation-details {
    list-style-type: none;
    margin-bottom: 1.5rem;
}

.allocation-details li {
    padding-left: 2.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.allocation-details li:nth-child(1)::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: #8C3A3A;
}

.allocation-details li:nth-child(2)::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: #34785A;
}

.allocation-details li:nth-child(3)::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: #D9B166;
}

.allocation-details li:nth-child(4)::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: #9AC2A5;
}

.model-description {
    font-style: italic;
    color: #5A5A5A;
}

.construction-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4rem;
    margin: 3rem 0;
}

.construction-text {
    flex: 1;
    min-width: 300px;
}

.process-list {
    counter-reset: process-counter;
    list-style-type: none;
    margin-bottom: 2rem;
}

.process-list li {
    counter-increment: process-counter;
    margin-bottom: 1.5rem;
    padding-left: 4rem;
    position: relative;
}

.process-list li::before {
    content: counter(process-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    background-color: #34785A;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
}

.monitoring-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4rem;
    margin: 3rem 0;
}

.monitoring-text {
    flex: 1;
    min-width: 300px;
}

.adapting-situations > ul > li {
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.adapting-situations > ul > li > ul {
    margin-top: 0.5rem;
    font-weight: normal;
}

.adapting-situations > ul > li > ul > li {
    margin-bottom: 0.5rem;
    padding-left: 2rem;
    position: relative;
}

.adapting-situations > ul > li > ul > li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #D9B166;
}

/* ======================================
   CONTATTI PAGE
====================================== */
.contact-section {
    padding: 6rem 0;
}

.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-details {
    margin: 3rem 0;
}

.contact-item {
    display: flex;
    margin-bottom: 2.5rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: #9AC2A5;
    color: #34785A;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    margin-right: 1.5rem;
}

.contact-text h3 {
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.contact-disclaimer {
    background-color: #F7F5F0;
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid #D9B166;
}

.contact-form-container {
    flex: 1;
    min-width: 300px;
    background-color: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.map-section {
    padding: 6rem 0;
    background-color: #F7F5F0;
}

.map-section h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ======================================
   POLICY PAGES
====================================== */
.policy-content {
    padding: 6rem 0;
}

.policy-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
}

.policy-toc {
    flex: 0 0 250px;
    position: sticky;
    top: 100px;
    align-self: flex-start;
}

.policy-toc h2 {
    margin-bottom: 2rem;
}

.policy-toc ul {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 2rem;
}

.policy-toc ul li {
    margin-bottom: 1rem;
}

.policy-toc ul li a {
    color: #5A5A5A;
    transition: color 0.3s ease, padding 0.3s ease;
}

.policy-toc ul li a:hover {
    color: #34785A;
    padding-left: 5px;
}

.policy-sections {
    flex: 1;
    min-width: 300px;
}

.policy-section {
    margin-bottom: 4rem;
}

.policy-section h2 {
    color: #34785A;
    margin-bottom: 2rem;
    font-size: 2.4rem;
}

.policy-section h3 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.policy-section ul,
.policy-section ol {
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.policy-section ul li,
.policy-section ol li {
    margin-bottom: 0.8rem;
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0 2.5rem;
}

.cookie-table th, 
.cookie-table td {
    padding: 1rem;
    text-align: left;
    border: 1px solid #E8E2D5;
}

.cookie-table th {
    background-color: #F7F5F0;
    font-weight: 700;
}

.cookie-table tr:nth-child(even) {
    background-color: #F7F5F0;
}

/* ======================================
   THANKS PAGE
====================================== */
.thanks-section {
    padding: 8rem 0;
    text-align: center;
}

.thanks-content {
    max-width: 700px;
    margin: 0 auto;
}

.thanks-icon {
    font-size: 8rem;
    color: #34785A;
    margin-bottom: 2rem;
}

.thanks-content h1 {
    margin-bottom: 2rem;
}

.thanks-content p {
    margin-bottom: 1.5rem;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.suggested-resources {
    padding: 6rem 0;
    background-color: #F7F5F0;
}

.suggested-resources h2 {
    text-align: center;
    margin-bottom: 4rem;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.resource-item {
    background-color: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resource-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.resource-icon {
    font-size: 3.5rem;
    color: #D9B166;
    margin-bottom: 2rem;
}

.resource-item h3 {
    margin-bottom: 1.5rem;
}

.resource-link {
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    margin-top: 1.5rem;
}

.resource-link i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.resource-link:hover i {
    transform: translateX(5px);
}

/* ======================================
   UTILITIES
====================================== */
.iti {
    width: 100%;
}

/* ======================================
   MEDIA QUERIES
====================================== */
@media (max-width: 1024px) {
    html {
        font-size: 56.25%; /* 9px */
    }
    
    .hero-text h1 {
        font-size: 3.6rem;
    }
    
    .component-item,
    .component-item.reversed {
        flex-direction: column;
    }
    
    .component-image,
    .component-item.reversed .component-image {
        margin: 0 0 3rem 0;
        max-width: 100%;
    }
    
    .strategies-content {
        flex-direction: column;
    }
    
    .strategy-image {
        margin: 0 0 3rem 0;
        width: 100%;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 50%; /* 8px */
    }
    
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.6rem;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 8rem 3rem 3rem;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }
    
    .nav-list.active {
        right: 0;
    }
    
    .nav-list li {
        margin: 0 0 2rem 0;
        width: 100%;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .hero-content {
        flex-direction: column;
    }
    
    .hero-text {
        padding-right: 0;
        margin-bottom: 4rem;
        text-align: center;
    }
    
    .consultation-wrapper {
        flex-direction: column;
    }
    
    .consultation-content,
    .consultation-form {
        padding: 3rem;
    }
    
    .faq-categories {
        flex: 0 0 100%;
        margin-right: 0;
        margin-bottom: 3rem;
    }
    
    .faq-categories ul {
        position: static;
    }
    
    .policy-toc {
        flex: 0 0 100%;
        position: static;
        margin-bottom: 3rem;
    }
    
    .cookie-modal-content {
        width: 90%;
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .cookie-buttons {
        flex-direction: column;
    }
    
    .cookie-buttons button {
        width: 100%;
    }
    
    .cookie-modal-buttons {
        flex-direction: column;
    }
    
    .cookie-modal-buttons button {
        width: 100%;
        margin-bottom: 1rem;
    }
}