/**
 * Foglio di stile principale - Design IQOS Curious X
 * File: assets/css/style.css
 */

/* Reset e stili base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-black: #000000;
    --primary-white: #FFFFFF;
    --primary-gray: #1a1a1a;
    /*--primary-cyan: #00CED1;*/
    --primary-cyan: #28b8ce;
    --gold-color: #FFD700;
    --silver-color: #C0C0C0;
    --bronze-color: #CD7F32;
    --text-white: #FFFFFF;
    --text-black: #000000;
    --text-gray: #999999;
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-white);
    background-color: var(--primary-black);
    /*background-color: var(--primary-gray);*/
    min-height: 100vh;
    overflow-x: hidden;
}

/* Homepage Styles */
.homepage-wrapper {
    width: 100%;
    min-height: 100vh;
    background-image: url('../images/pattern-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.homepage-container {
    background-color: var(--primary-black);
    padding: 60px 80px;
    max-width: 800px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.logo-section {
    margin-bottom: 0px;
}

.logo-section img {
    max-width: 200px;
    width: 100%;
    height: auto;
}

.event-subtitle {
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-white);
    margin-bottom: 30px;
    font-weight: 300;
}

.welcome-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-white);
    margin-bottom: 10px;
    font-weight: 300;
}

.market-selection {
    margin: 40px 0;
}

.market-select {
    width: 100%;
    max-width: 320px;
    padding: 15px 20px;
    font-size: 16px;
    background-color: var(--text-white);
    color: var(--primary-black);
    border: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 20px;
    padding-right: 50px;
    transition: var(--transition);
}

.market-select:hover {
    opacity: 0.9;
}

.market-select:focus {
    outline: 2px solid var(--primary-cyan);
    outline-offset: 2px;
}

.btn-enter {
    display: inline-block;
    padding: 15px 60px;
    background-color: var(--primary-cyan);
    color: var(--text-white);
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition);
    margin-top: 20px;
}

.btn-enter:hover {
    background-color: #00B8C5;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 206, 209, 0.3);
}

.btn-enter:active {
    transform: translateY(0);
}

.internal-use {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: var(--text-gray);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Header per pagine interne - NUOVO DESIGN */
header {
    background-image: url('../images/pattern-bg.png');
    background-size: cover;
    background-position: center;
    padding: 40px 0 0 0;
    position: relative;
    width: 100%;
    z-index: 1000;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: -1;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
}

.header-logo {
    margin-bottom: 10px;
}

.header-logo img {
    max-width: 300px;
    width: 100%;
    height: auto;
}

.header-subtitle {
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-white);
    margin-bottom: 30px;
    font-weight: 300;
}

.footer-logo {
    margin-top: 10px;
}

.footer-logo img {
    max-width: 200px;
    width: 100%;
    height: auto;
}


/* Navigation - NUOVO DESIGN */
nav {
    background-color: transparent;
    position: relative;
    z-index: 900;
    padding-bottom: 20px;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    max-width: 1400px;
    margin: 0 auto;
    gap: 40px;
}

nav li {
    position: relative;
}

nav a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: none;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

nav a:hover {
    color: var(--primary-cyan);
}

nav a.active {
    color: var(--primary-cyan);
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary-cyan);
}

.cart-count {
    display: inline-block;
    background-color: var(--primary-cyan);
    color: var(--primary-black);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
    margin-left: 5px;
    min-width: 18px;
    text-align: center;
    font-weight: 600;
}

/* Main content */
main {
    min-height: calc(100vh - 200px);
    padding: 40px 0;
    /*background-color: var(--primary-black);*/
    background-color: var(--primary-gray);
}

.container {
    /*max-width: 1400px;*/
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.section {
    background: transparent;
    padding: 40px 0;
    margin-bottom: 30px;
}

.section h2 {
    color: var(--primary-cyan);
    margin-bottom: 10px;
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
}

.section > p {
    text-align: center;
    color: var(--text-white);
    margin-bottom: 40px;
    font-size: 16px;
}

/* Package cards - NUOVO DESIGN */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.package-card {
    background: var(--primary-black);
    border: 3px solid;
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    position: relative;
}

.package-card.gold {
    border-color: var(--gold-color);
}

.package-card.silver {
    border-color: var(--silver-color);
}

.package-card.bronze {
    border-color: var(--bronze-color);
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.package-card h3 {
    color: var(--text-white);
    margin-bottom: 20px;
    font-size: 18px; /*24px*/
    letter-spacing: 2px;
    font-weight: 400;
}

.package-card p {
    color: var(--text-white);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 30px;
    min-height: 80px;
}

.package-card .price {
    margin: 20px 0;
}

.package-card .price p {
    margin: 5px 0;
    /*font-size: 16px;*/
    color: var(--text-white);
    min-height: auto;
}

.package-card .price strong {
    font-weight: 600;
}

/* Package cards - Contacts */
.packages-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.package-card-2 {
    background: var(--primary-black);
    border: 3px solid;
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    position: relative;
}
.package-card-2 p {
    color: var(--text-white);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 30px;
    min-height: 0px;
}

/* More Info Button Image */
.btn-more-info-img {
    display: inline-block;
    margin-top: 20px;
    transition: var(--transition);
    max-width: 150px;
    height: auto;
}

.btn-more-info-img:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
}

.image-modal-content {
    position: relative;
    margin: 2% auto;
    padding: 0;
    width: 90%;
    max-width: 1200px;
    text-align: center;
}

.image-modal-content img {
    width: 100%;
    height: auto;
    max-width: 100%;
    margin: auto;
    display: block;
    box-shadow: 0 5px 30px rgba(255, 255, 255, 0.1);
}

.image-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--text-white);
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: var(--transition);
    z-index: 2001;
}

.image-modal-close:hover,
.image-modal-close:focus {
    color: var(--primary-cyan);
}

/* Unified Package Selection */
.package-selection {
    background: transparent;
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid #333;
    margin-top: 40px;
}

.selection-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.selection-controls .form-group {
    margin: 0;
}

.selection-controls select {
    width: 200px;
    background-color: var(--primary-white);
}

.checkbox-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-white);
    font-size: 14px;
}

.checkbox-inline input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.btn-add-book {
    padding: 12px 40px;
    background-color: var(--primary-cyan);
    color: var(--primary-black);
    border: none;
    font-weight: 600;
}

.btn-add-book:hover {
    background-color: #00B8C5;
}

/* Form elements updates */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 12px 8PX; /*20px;*/
    background-color: var(--primary-white);
    color: var(--text-black);
    border: 1px solid #666;
    font-size: 16px;
    transition: var(--transition);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-cyan);
    /*background-color: #111;*/
}

/* Info section */
.info-section {
    background: transparent;
    padding: 30px;
    border: 1px solid #333;
    margin-top: 40px;
}

.info-section h3 {
    color: var(--primary-cyan);
    margin-bottom: 20px;
    font-size: 20px;
}

.info-section ul {
    list-style: none;
    padding: 0;
}

.info-section li {
    color: var(--text-white);
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.info-section li:before {
    content: "•";
    color: var(--primary-cyan);
    position: absolute;
    left: 0;
}

/* Keep all other existing styles below... */

/* Buttons */
.btn {
    display: inline-block;
    /*padding: 12px 30px;*/
    padding: 12px 12px;
    background-color: var(--primary-cyan);
    color: var(--text-white);
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition);
}

.btn:hover {
    background-color: #00B8C5;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 206, 209, 0.3);
}

.btn-success {
    background-color: #28b8ce;
}

.btn-success:hover {
    background-color: #1e96a8;
}

.btn-danger {
    background-color: #e74c3c;
}

.btn-danger:hover {
    background-color: #c0392b;
}

.btn-small {
    padding: 8px 20px;
    font-size: 12px;
}

.btn-large {
    padding: 15px 40px;
    font-size: 16px;
    width: 100%;
}

/* Excursions */
.agenda-dates {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.date-tab {
    padding: 12px 30px;
    background-color: transparent;
    border: 1px solid #666;
    color: var(--text-white);
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
}

.date-tab:hover {
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
}

.date-tab.active {
    background-color: var(--primary-cyan);
    border-color: var(--primary-cyan);
    color: var(--primary-black);
}

.excursion-item {
    background: transparent;
    border: 1px solid #333;
    padding: 30px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.excursion-item.hidden {
    display: none;
}

.excursion-item:hover {
    border-color: var(--primary-cyan);
    box-shadow: 0 5px 20px rgba(0, 206, 209, 0.1);
}

.excursion-poster {
    margin-bottom: 20px;
    overflow: hidden;
    max-height: 300px;
    border-radius: 4px;
}

.excursion-image {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.excursion-item:hover .excursion-image {
    transform: scale(1.05);
}

.excursion-controls {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* Stili per le immagini poster delle escursioni */
.excursion-poster {
    margin: 20px 0;
    text-align: center;
    overflow: hidden;
    max-height: 300px;
    border-radius: 0;
    border: 1px solid #333;
}

.excursion-poster-img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.excursion-item:hover .excursion-poster-img {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Responsive per immagini escursioni */
@media (max-width: 768px) {
    .excursion-poster {
        max-height: 200px;
    }
    
    .excursion-poster-img {
        max-height: 200px;
    }
}

@media (max-width: 480px) {
    .excursion-poster {
        max-height: 150px;
    }
    
    .excursion-poster-img {
        max-height: 150px;
    }
}

/* Cart */
.cart-container {
    background: transparent;
    border: 1px solid #333;
}

.cart-empty {
    text-align: center;
    padding: 60px;
    color: var(--text-gray);
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #333;
    transition: var(--transition);
}

.cart-item:hover {
    background-color: #111;
}

.cart-item-info h4 {
    color: var(--primary-cyan);
    margin-bottom: 8px;
}

.cart-item-info p {
    color: var(--text-gray);
    font-size: 14px;
}

.cart-item-price {
    font-size: 20px;
    color: var(--text-white);
    margin-bottom: 10px;
}

.cart-total {
    padding: 30px;
    background-color: #111;
    text-align: right;
}

.cart-total h3 {
    color: var(--primary-cyan);
    font-size: 28px;
}

/* Messages */
.alert {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 0;
    position: relative;
}

.alert-success {
    /*background-color: rgba(39, 174, 96, 0.1);*/
    color: #fff; /* #27ae60;*/
    border: 1px solid #28b8ce;
}

.alert-error {
    background-color: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

.alert-info {
    background-color: rgba(0, 206, 209, 0.1);
    color: var(--primary-cyan);
    border: 1px solid var(--primary-cyan);
}

.alert-dismiss {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: inherit;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition);
}

.alert-dismiss:hover {
    opacity: 1;
}

/* Tables */
table {
    width: 100%;
    background: transparent;
    border-collapse: collapse;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #333;
}

th {
    background-color: #111;
    color: var(--primary-cyan);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
}

td {
    color: var(--text-white);
}

tr:hover {
    background-color: #111;
}

/* Footer */
footer {
    background-color: var(--primary-black);
    color: var(--text-gray);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid #333;
}

footer a {
    color: var(--text-gray);
    text-decoration: none;
    transition: var(--transition);
}

footer a:hover {
    color: var(--primary-cyan);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .homepage-container {
        padding: 40px 60px;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .section {
        padding: 30px 0;
    }
    
    .packages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .homepage-container {
        padding: 40px 30px;
        width: 95%;
    }
    
    .header-logo img {
        max-width: 250px;
    }

    .footer-logo img {
        max-width: 150px;
    }
    
    nav ul {
        flex-direction: column;
        gap: 10px;
    }
    
    .selection-controls {
        flex-direction: column;
        gap: 20px;
    }
    
    .cart-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .excursion-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .agenda-dates {
        gap: 10px;
    }
    
    .date-tab {
        padding: 10px 20px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .homepage-container {
        padding: 30px 20px;
    }
    
    .header-logo img {
        max-width: 200px;
    }

    .footer-logo img {
        max-width: 100px;
    }
    
    .btn-enter {
        padding: 12px 40px;
        font-size: 14px;
    }
    
    .section h2 {
        font-size: 24px;
    }
    
    .package-card {
        padding: 30px 20px;
    }
    
    table {
        font-size: 14px;
    }
    
    th, td {
        padding: 10px;
    }
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    border: 3px solid #333;
    border-top: 3px solid var(--primary-cyan);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

.package-card .price {
    background: rgba(0, 0, 0, 0.05);
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
}

.package-card .price p {
    margin: 5px 0;
}

/* Evidenzia il totale finale */
.package-card .price p:last-child {
    border-top: 1px solid #ddd;
    padding-top: 10px;
    margin-top: 10px;
}

/* Stile per il breakdown nel carrello */
.cart-item-price div {
    margin-bottom: 5px;
}

.cart-item-info p {
    margin: 3px 0;
}


@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Utility classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }

.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }

.p-1 { padding: 10px; }
.p-2 { padding: 20px; }
.p-3 { padding: 30px; }
.p-4 { padding: 40px; }

/*
* Sistema di notifiche centralizzato */
.notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.notification-overlay.show {
    opacity: 1;
    visibility: visible;
}

.notification-message {
    background-color: #28b8ce; /* Azzurro IQOS */
    color: #ffffff;
    padding: 30px 50px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 600px;
    width: 90%;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    position: relative;
}

.notification-overlay.show .notification-message {
    transform: translateY(0);
}

.notification-message.success {
    background-color: #28b8ce; /* Azzurro per successo */
}

.notification-message.error {
    background-color: #e74c3c; /* Rosso per errori */
}

.notification-message.info {
    background-color: #3498db; /* Blu per informazioni */
}

.notification-message h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 600;
}

.notification-message p {
    margin: 0;
    font-size: 18px;
    line-height: 1.4;
}

.notification-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.notification-close:hover {
    opacity: 1;
}

/* Override per gli alert vecchi - li nascondiamo per i messaggi del carrello */
#alerts-container {
    display: none; /* Temporaneamente nascosto per usare il nuovo sistema */
}

/* Animazione di caricamento migliorata */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading-overlay.show {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #28b8ce;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Stili per i messaggi inline nel carrello */
.cart-message {
    background-color: #28b8ce;
    color: #ffffff;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 5px;
    text-align: center;
    font-size: 16px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media queries per responsive */
@media (max-width: 768px) {
    .notification-message {
        padding: 20px 30px;
    }
    
    .notification-message h3 {
        font-size: 20px;
    }
    
    .notification-message p {
        font-size: 16px;
    }
}




