/* stile.css */
body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    background-color: #f0f2f5; 
    margin: 0; 
    padding: 0; 
    color: #333;
}

header { 
    background: linear-gradient(135deg, #004488 0%, #0066cc 100%); 
    color: white; 
    text-align: center; 
    padding: 30px 20px; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

header h1 { margin: 0; font-size: 2em; text-transform: uppercase; letter-spacing: 2px; }
header p { margin: 5px 0 0; opacity: 0.9; font-style: italic; }

#contenitore-preghiere { 
    max-width: 800px; 
    margin: 20px auto; 
    padding: 10px; 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
}

.card-preghiera { 
    background: white; 
    padding: 25px; 
    border-radius: 12px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
    border-left: 6px solid #ffcc00; /* Un tocco di oro Vaticano */
    transition: transform 0.2s;
}

.card-preghiera:hover { transform: translateY(-3px); }

.card-preghiera h3 { 
    margin: 0 0 10px 0; 
    color: #004488; 
    font-size: 1.4em; 
}

.card-preghiera p { 
    color: #555; 
    line-height: 1.6; 
    margin-bottom: 20px; 
}

.bottoni-area { display: flex; align-items: center; gap: 20px; }

button { 
    background: #004488; 
    color: white; 
    border: none; 
    padding: 12px 25px; 
    border-radius: 25px; 
    cursor: pointer; 
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8em;
    transition: background 0.3s;
}

button:hover { background: #002244; }

.card-preghiera a { 
    color: #0066cc; 
    text-decoration: none; 
    font-weight: 600; 
    font-size: 0.9em;
}

.card-preghiera a:hover { text-decoration: underline; }

/* Banner Novità */
#banner-novita { 
    display: none; 
    background: #28a745; 
    color: white; 
    padding: 15px; 
    text-align: center; 
    position: sticky;
    top: 0;
    z-index: 1000;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

#controllo-voce button {
    background-color: #dc3545; /* Rosso Stop */
    font-weight: bold;
    border: none;
    border-radius: 5px;
    padding: 15px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

#controllo-voce button:hover {
    background-color: #a71d2a;
}

/* Contenitore centrato e non troppo largo */
.search-container {
    padding: 15px;
    text-align: center;
    background-color: transparent; /* Non aggiunge blocchi di colore brutti */
}

/* La casella: Tonda e bellissima */
#cercaPreghiera {
    width: 90%;
    max-width: 400px;
    padding: 12px 25px; /* Più respiro interno */
    font-size: 16px;
    border: 1px solid #ccc; 
    border-radius: 30px; /* <--- QUESTO lo rende tondo (stile pillola) */
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1); 
    outline: none;
    font-family: inherit;
    transition: all 0.3s ease; /* Rende il cambio colore fluido */
}

/* Quando ci clicchi, il bordo diventa blu come il tuo header */
#cercaPreghiera:focus {
    border-color: #0066cc;
    box-shadow: 0 0 8px rgba(0, 102, 204, 0.2);
}