/* ==========================================
   Civico 52 - Alchimia Levantina (Style V2 - Civico52 Brand)
   ========================================== */

   @import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

   :root {
       --bg-main: #ffffff;
       --bg-card: #fdfdfd;
       --primary-brand: #5e1c32; /* Burgundy Civico 52 */
       --primary-brand-dim: rgba(94, 28, 50, 0.1);
       --accent-spice: #5e1c32;
       --text-main: #333333;
       --text-heading: #1d1d1b;
       --text-muted: #777777;
       --border-color: #eaeaea;
       
       --font-heading: 'Playfair Display', serif;
       --font-body: 'Montserrat', sans-serif;
   }
   
   * {
       box-sizing: border-box;
       margin: 0;
       padding: 0;
   }
   
   body {
       font-family: var(--font-body);
       background-color: var(--bg-main);
       color: var(--text-main);
       line-height: 1.6;
       overflow-x: hidden;
   }
   
   /* Glassmorphism utility - Adattato per sfondo chiaro */
   .glass-card {
       background: var(--bg-card);
       border: 1px solid var(--border-color);
       border-radius: 4px; /* Angoli più netti come il sito */
       box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
   }
   
   /* Header */
   .hero {
       height: 35vh;
       min-height: 250px;
       position: relative;
       display: flex;
       align-items: center;
       justify-content: center;
       text-align: center;
       background: var(--primary-brand);
       color: #ffffff;
	   margin: 0 40px;
   }
   
   .hero-content {
       position: relative;
       z-index: 2;
       padding: 0 20px;
   }
   
   .hero h1 {
       font-family: var(--font-heading);
       font-size: 3rem;
       font-weight: 400;
       letter-spacing: 2px;
       margin-bottom: 10px;
   }
   
   .hero .subtitle {
       font-family: var(--font-body);
       font-size: 1.1rem;
       font-weight: 300;
       letter-spacing: 3px;
       text-transform: uppercase;
       opacity: 0.9;
   }
   
   .container {
       max-width: 1200px;
       margin: 0 auto;
       padding: 40px 40px;
   }
   
   /* Roulette */
   .roulette-section {
       text-align: center;
       margin-top: 0px;
       margin-bottom: 50px;
       position: relative;
       z-index: 10;
   }
   
   .btn-roulette {
       background: #1d1d1b;
       color: #ffffff;
       border: 2px solid #1d1d1b;
       padding: 15px 40px;
       border-radius: 15px; /* Squadrato */
       font-family: var(--font-body);
       text-transform: uppercase;
       font-size: 1rem;
       font-weight: 600;
       letter-spacing: 2px;
       cursor: pointer;
       transition: all 0.3s ease;
       display: inline-flex;
       flex-direction: column;
       align-items: center;
   }
   
   .btn-roulette:hover {
       background: var(--bg-main);
       color: #1d1d1b;
   }
   
   .roulette-subtitle {
       font-size: 0.7rem;
       font-weight: 400;
       margin-top: 5px;
       opacity: 0.8;
       letter-spacing: 1px;
   }
   
   #roulette-result {
       margin: 20px auto 0;
       padding: 25px;
       background: #ffffff;
       border: 1px solid var(--border-color);
       border-radius: 4px;
       box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
       display: block;
       max-width: 400px;
       text-align: center;
   }
   
   #roulette-result.spinning {
       animation: pulse 0.5s infinite alternate;
   }
   
   /* Profili */
   .section-title {
       font-family: var(--font-heading);
       text-align: center;
       color: var(--text-heading);
       margin-bottom: 30px;
       font-size: 2.2rem;
       font-weight: 400;
   }
   
   .profile-grid {
       display: flex;
       flex-wrap: wrap;
       gap: 15px;
       justify-content: center;
       margin-bottom: 50px;
   }
   
   .profile-btn {
       background: var(--bg-main);
       border: 1px solid var(--border-color);
       color: var(--text-heading);
       padding: 20px;
       border-radius: 0px;
       cursor: pointer;
       display: flex;
       flex-direction: column;
       align-items: center;
       min-width: 140px;
       flex: 1 1 180px;
       max-width: 220px;
       transition: all 0.3s ease;
   }
   
   .profile-btn:hover {
       border-color: var(--primary-brand);
       background: var(--primary-brand-dim);
   }
   
   .profile-btn.active {
       background: var(--primary-brand);
       border-color: var(--primary-brand);
       color: #ffffff;
   }
   
   .profile-btn.active .desc {
       color: rgba(255,255,255,0.8);
   }
   
   .profile-btn .emoji {
       font-size: 2rem;
       margin-bottom: 12px;
   }
   
   .profile-btn .label {
       font-family: var(--font-heading);
       font-size: 1.1rem;
       font-weight: 600;
       margin-bottom: 6px;
   }
   
   .profile-btn .desc {
       font-family: var(--font-body);
       font-size: 0.75rem;
       color: var(--text-muted);
       text-transform: uppercase;
       letter-spacing: 1px;
   }
   
   /* Filtri Rapidi */
   .quick-filters {
       display: flex;
       flex-wrap: wrap;
       gap: 10px;
       justify-content: center;
       margin-bottom: 50px;
   }
   
   .tag-btn {
       background: var(--bg-main);
       border: 1px solid var(--border-color);
       color: var(--text-main);
       padding: 8px 18px;
       border-radius: 20px;
       font-family: var(--font-body);
       font-size: 0.85rem;
       text-transform: uppercase;
       letter-spacing: 1px;
       cursor: pointer;
       transition: all 0.2s ease;
   }
   
   .tag-btn:hover {
       border-color: var(--primary-brand);
       color: var(--primary-brand);
   }
   
   .tag-btn.active {
       background: var(--primary-brand);
       border-color: var(--primary-brand);
       color: white;
   }
   
   .tag-btn.reset-tags {
       border: none;
       background: transparent;
       color: var(--text-muted);
       text-decoration: underline;
   }
   
   .tag-btn.reset-tags:hover {
       color: var(--text-heading);
   }
   
   /* Risultati */
   .results-header {
       display: flex;
       justify-content: space-between;
       align-items: center;
       margin-bottom: 30px;
       border-bottom: 1px solid var(--border-color);
       padding-bottom: 15px;
   }
   
   .results-header h3 {
       font-family: var(--font-heading);
       color: var(--text-heading);
       font-size: 1.8rem;
       font-weight: 400;
   }
   
   .results-header span {
       font-family: var(--font-body);
       color: var(--text-muted);
       font-size: 0.9rem;
       text-transform: uppercase;
       letter-spacing: 1px;
   }
   
   .drink-grid {
       display: grid;
       grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
       gap: 30px;
   }
   
   .drink-card {
       padding: 25px;
       cursor: pointer;
       transition: transform 0.3s ease, box-shadow 0.3s ease;
       display: flex;
       flex-direction: column;
       justify-content: space-between;
       height: 100%;
       background: #ffffff;
       border: 1px solid var(--border-color);
   }
   
   .drink-card:hover {
       transform: translateY(-3px);
       box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
       border-color: var(--primary-brand);
   }
   
   .drink-card h4 {
       font-family: var(--font-heading);
       font-size: 1.3rem;
       color: var(--primary-brand);
       margin-bottom: 10px;
       font-weight: 600;
   }
   
   .drink-card .drink-meta {
       font-family: var(--font-body);
       font-size: 0.75rem;
       color: var(--text-muted);
       margin-bottom: 15px;
       display: block;
       text-transform: uppercase;
       letter-spacing: 1px;
       line-height: 1.8;
   }
   
   .card-category {
       font-weight: 600;
       color: var(--primary-brand);
   }
   
   .drink-card .drink-desc {
       font-family: var(--font-body);
       font-size: 0.9rem;
       color: var(--text-main);
       margin-bottom: 20px;
       display: -webkit-box;
       -webkit-line-clamp: 3;
       -webkit-box-orient: vertical;
       overflow: hidden;
       font-weight: 300;
   }
   
   .drink-card .card-footer {
       display: flex;
       justify-content: space-between;
       align-items: center;
       border-top: 1px solid var(--border-color);
       padding-top: 15px;
       margin-top: auto;
   }
   
   .drink-card .price {
       font-family: var(--font-heading);
       color: var(--text-heading);
       font-weight: 600;
       font-size: 1rem;
   }
   
   .drink-card .read-more {
       color: var(--primary-brand);
       font-size: 0.75rem;
       text-transform: uppercase;
       letter-spacing: 1px;
       font-weight: 600;
   }
   
   /* Modal */
   .modal {
       position: fixed;
       top: 0; left: 0; right: 0; bottom: 0;
       z-index: 1000;
       display: flex;
       align-items: center;
       justify-content: center;
       padding: 20px;
   }
   
   /* Utility */
   .hidden {
       display: none !important;
   }
   
   .modal.hidden {
       display: none !important;
   }
   
   .modal-overlay {
       position: absolute;
       top: 0; left: 0; right: 0; bottom: 0;
       background: rgba(0, 0, 0, 0.6);
       backdrop-filter: blur(3px);
   }
   
   .modal-content {
       position: relative;
       z-index: 1001;
       width: 100%;
       max-width: 500px;
       background: #ffffff;
       padding: 50px 20px;
       text-align: center;
       border-top: 5px solid var(--primary-brand);
       box-shadow: 0 15px 40px rgba(0,0,0,0.2);
       animation: slideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	   margin:20px;
       max-height: 85vh;
       overflow-y: auto;
   }
   
   .close-modal {
       position: absolute;
       top: 15px;
       right: 20px;
       background: none;
       border: none;
       color: var(--text-muted);
       font-size: 1.8rem;
       font-weight: 300;
       cursor: pointer;
       transition: color 0.2s ease;
   }
   
   .close-modal:hover {
       color: var(--primary-brand);
   }
   
   #modal-title {
       font-family: var(--font-heading);
       color: var(--primary-brand);
       font-size: 2.2rem;
       font-weight: 400;
       margin-bottom: 15px;
   }
   
   .category-badge {
       display: inline-block;
       font-family: var(--font-body);
       background: var(--primary-brand);
       border: 1px solid var(--border-color);
       color: #ffffff;
       padding: 6px 15px;
       border-radius: 20px;
       font-size: 0.75rem;
       text-transform: uppercase;
       letter-spacing: 2px;
       margin-bottom: 25px;
   }
   
   .storytelling-text {
       font-family: var(--font-body);
       font-size: 1rem;
       color: var(--text-main);
       font-weight: 300;
       line-height: 1.8;
       margin-bottom: 35px;
   }
   
   .modal-footer {
       border-top: 1px solid var(--border-color);
       padding-top: 25px;
       display: flex;
       justify-content: space-between;
       align-items: center;
   }
   
   .modal-footer .price {
       font-family: var(--font-heading);
       font-size: 1.2rem;
       color: var(--text-heading);
       font-weight: 600;
   }
   
   .btn-share {
       background: var(--primary-brand);
       color: #ffffff;
       border: none;
       padding: 10px 20px;
       border-radius: 25px;
       font-family: var(--font-body);
       font-size: 0.85rem;
       font-weight: 600;
       text-transform: uppercase;
       letter-spacing: 1px;
       cursor: pointer;
       transition: all 0.3s ease;
       display: flex;
       align-items: center;
       gap: 8px;
   }
   
   .btn-share:hover {
       background: #1d1d1b;
       transform: translateY(-2px);
       box-shadow: 0 4px 10px rgba(0,0,0,0.15);
   }
   
   /* Animations */
   @keyframes slideUp {
       from { opacity: 0; transform: translateY(20px); }
       to { opacity: 1; transform: translateY(0); }
   }
   
   @keyframes pulse {
       from { transform: scale(1); opacity: 0.8; border-color: var(--primary-brand); }
       to { transform: scale(1.02); opacity: 1; border-color: #1d1d1b; }
   }
   
   /* Responsive */
   @media (max-width: 768px) {
       .container { padding: 20px 40px; }
       .hero h1 { font-size: 2.2rem; }
       .profile-btn { flex: 1 1 calc(50% - 15px); min-width: 0; }
       .drink-grid { grid-template-columns: 1fr; }
   }
   @media (max-width: 480px) {
       .container { padding: 20px 40px; }
       .profile-grid { gap: 10px; }
       .profile-btn { 
           flex: 1 1 calc(50% - 10px); 
           padding: 15px 5px; 
       }
       .profile-btn .emoji { font-size: 1.5rem; margin-bottom: 8px; }
       .profile-btn .label { font-size: 0.9rem; margin-bottom: 4px; }
       .profile-btn .desc { font-size: 0.65rem; }
   }
